Struct hime_redist::result::ParseResult
[−]
[src]
pub struct ParseResult { /* fields omitted */ }
Represents the output of a parser
Methods
impl<'a> ParseResult
[src]
pub fn new(
terminals: &'static [Symbol],
variables: &'static [Symbol],
virtuals: &'static [Symbol],
text: Text
) -> ParseResult
[src]
terminals: &'static [Symbol],
variables: &'static [Symbol],
virtuals: &'static [Symbol],
text: Text
) -> ParseResult
Initialize a new parse result
pub fn get_terminals(&self) -> &'static [Symbol]
[src]
Gets the grammar terminals
pub fn get_variables(&self) -> &'static [Symbol]
[src]
Gets the grammar variables
pub fn get_virtuals(&self) -> &'static [Symbol]
[src]
Gets the grammar virtuals
pub fn get_input(&self) -> &Text
[src]
Gets the input text for this result
pub fn is_success(&self) -> bool
[src]
Gets whether this result denotes a successful parsing
pub fn get_errors(&self) -> &ParseErrors
[src]
Gets the collection of errors
pub fn get_tokens(&self) -> TokenRepository
[src]
Gets the token repository associated with this result
pub fn get_ast(&self) -> Ast
[src]
Gets the resulting AST
pub fn get_parsing_data(&mut self) -> (TokenRepository, &mut ParseErrors, Ast)
[src]
Gets the mutable data required for parsing