Skip to main content

Module parser

Module parser 

Source
Expand description

Pass 1: Parse

Uses SWC to parse a TypeScript source file and extract the SmartContract subclass into a Rúnar AST.

Structs§

ParseResult
Result of parsing a source file.

Functions§

parse
Parse a TypeScript source string and extract the Rúnar contract AST.
parse_source
Parse a source string, automatically selecting the parser based on file extension.