Module parse

Source
Expand description

Load and tokenize sources.

In general, you should not need to use this module directly; it is exposed so that it can be used for things like syntax highlighting.

Structs§

FileSystemResolver
An implementation of SourceResolver for the local file system.
ParseTree
A fully parsed feature file, with attached imports and a sourcemap.
SourceLoadError
An error that occurs when trying .to load a source.
TokenSet
A bit-set of Kinds

Traits§

SourceResolver
A trait that abstracts resolving a path.

Functions§

parse_root
Entry point for parsing.
parse_root_file
Attempt to parse a feature file from disk, including its imports.
parse_string
Convenience method to parse a block of FEA from memory.