Expand description
A recursive-descent parser for types files and values files.
It is the parser of constructo check. Generated code reads values through codec::parse, which uses it, and
does not parse types files.
The parser stops at the first syntax error: there is no error recovery.
Structs§
- Experimental
- The experimental features of the syntax, each of which has to be switched on to be accepted.
- Syntax
Error - The first syntax error found in a text.
Enums§
- Parsed
- The contents of a successfully parsed file.
- Source
Kind - The kind of a file, which is decided by its first token.
Functions§
- parse
- Parses the text of a types file into its declarations, with no experimental features.
- parse_
file - Classifies a file by its first token and parses it with the matching grammar.
- parse_
values - Parses the text of a values file into its values, with no experimental features.
- parse_
values_ with - Parses the text of a values file into its values, accepting the experimental features that are switched on.