Enum hime_redist::symbols::SemanticElement [] [src]

pub enum SemanticElement<'a> {
    Token(Token<'a>),
    Terminal(Symbol),
    Variable(Symbol),
    Virtual(Symbol),
}

Represents an element of parsing data

Variants

A token, i.e. a piece of text matched by a lexer

A terminal symbol, defined in the original grammar

A variable symbol defined in the original grammar

A virtual symbol, defined in the original grammar

Methods

impl<'a> SemanticElement<'a>
[src]

[src]

Gets the type of the associated symbol

Trait Implementations

impl<'a> SemanticElementTrait for SemanticElement<'a>
[src]

[src]

Gets the position in the input text of this element

[src]

Gets the span in the input text of this element

[src]

Gets the context of this element in the input

[src]

Gets the grammar symbol associated to this element

[src]

Gets the value of this element, if any

Auto Trait Implementations

impl<'a> Send for SemanticElement<'a>

impl<'a> Sync for SemanticElement<'a>