logo

Module itsy::parser

source · []
Expand description

Sourcecode parsing.

See parse for an example that loads and parses multiple files into a ParsedProgram, ready for type resolution by resolve.

Structs

An error reported by the parser (e.g. syntax error).

Parsed sourcecode of a single Itsy module.

Parsed sourcecode of an Itsy program.

Enums

Represents the various possible parser error-kinds.

Functions

Given the filename to an itsy program main module and an Itsy module path, returns the filename of the Itsy module.

Parses Itsy source files into a program AST structure. The loader receives the fully qualified module name and is expected to return the parsed module.

Parses Itsy source code into a program AST structure.