Module timi::frontend [] [src]

Frontend of the interpreter. Tokenization & Parsing is handled here.

Structs

ParseError

Represents a parse error. Consists of a Range for location of the error and ParseErrorKind for error information.

Point

represents a position in a file, both in terms of (line, col) and in terms of seek index from the file

Range

Represents a range in a file from the start point to the end point. The Range is [start, end].

Enums

CoreToken

Token for the Core language grammar

ParseErrorKind

Kinds of Parse errors that occur during tokenization & Parsing.

Functions

string_to_expr

Try to convert the given string to a CoreExpr

string_to_program

Try to convert the given string to a CoreProgram

string_to_sc_defn

Try to convert the given string to a SupercombDefn