Struct sixtyfps_compilerlib::parser::DefaultParser[][src]

pub struct DefaultParser<'a> { /* fields omitted */ }

Implementations

Constructor that create a parser from the source code

Consume all the whitespace

Trait Implementations

Peek the n’th token, not including whitespace and comments

Consume the current token

Reports an error at the current token location

Can only be called by Self::start_node

Can only be called by Node::drop

Enter a new node. The node is going to be finished when The return value of this function is dropped Read more

Same as nth(0)

Consume the token if it has the right kind, otherwise report a syntax error. Returns true if the token was consumed. Read more

If the token if of this type, consume it and return true, otherwise return false

consume everything until reaching a token of this kind

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Performs the conversion.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.