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
fn start_node_impl(
&mut self,
kind: SyntaxKind,
checkpoint: Option<Self::Checkpoint>,
_: NodeToken
)
fn start_node_impl(
&mut self,
kind: SyntaxKind,
checkpoint: Option<Self::Checkpoint>,
_: NodeToken
)
Can only be called by Self::start_node
Can only be called by Node::drop
type Checkpoint = Checkpoint
Enter a new node. The node is going to be finished when The return value of this function is dropped Read more
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