Skip to main content

Module parse

Module parse 

Source
Expand description

Parser that builds a CST from source text. Hand-written recursive descent parser for .cabal files.

Transforms the token stream from the lexer into a CST. The parser uses indentation levels to determine nesting — sections contain fields that are indented more than the section header, fields contain continuation lines indented more than the field name, etc.

Structs§

ParseResult
The result of parsing a .cabal file.

Functions§

parse
Parse a .cabal source string into a CST with diagnostics.