pub trait SemanticElementTrait {
    fn get_position(&self) -> Option<TextPosition>;
    fn get_span(&self) -> Option<TextSpan>;
    fn get_context(&self) -> Option<TextContext>;
    fn get_symbol(&self) -> Symbol;
    fn get_value(&self) -> Option<String>;
}
Expand description

A trait for a parsing element

Required Methods§

Gets the position in the input text of this element

Gets the span in the input text of this element

Gets the context of this element in the input

Gets the grammar symbol associated to this element

Gets the value of this element, if any

Implementors§