Struct lexx::Parser [] [src]

pub struct Parser { /* fields omitted */ }

Parser type

This is a high level object that wraps the file loader/parser.his doesn't do much special. The ParseSess object must be borrowed by the parsing processing. So this class ensures this is happening without much drama or requiring you to peer into the syntex_syntax internals.

There are methods to load external files, and borrow a string. That'll be immediately cloned just fyi.

Methods

impl Parser
[src]

Construct a new parser.

Get a vector of all tokens, or get an error. Loads a file

Get the token tree, or get an error. Loads a file

Get a flat list of tokens, while using pre-loaded code. Does not file IO

Get token tree, while using pre-loaded code. Does not file IO