Struct valkyrie_antlr::ValkyrieProgramParser
source · pub struct ValkyrieProgramParser { /* private fields */ }Implementations§
source§impl ValkyrieProgramParser
impl ValkyrieProgramParser
pub fn parse(input: &str) -> Result<ProgramRoot, ANTLRError>
Trait Implementations§
source§impl Clone for ValkyrieProgramParser
impl Clone for ValkyrieProgramParser
source§fn clone(&self) -> ValkyrieProgramParser
fn clone(&self) -> ValkyrieProgramParser
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moresource§impl Debug for ValkyrieProgramParser
impl Debug for ValkyrieProgramParser
source§impl Default for ValkyrieProgramParser
impl Default for ValkyrieProgramParser
source§fn default() -> ValkyrieProgramParser
fn default() -> ValkyrieProgramParser
Returns the “default value” for a type. Read more
source§impl ParseTreeVisitorCompat<'_> for ValkyrieProgramParser
impl ParseTreeVisitorCompat<'_> for ValkyrieProgramParser
type Node = ValkyrieAntlrParserContextType
type Return = ()
source§fn temp_result(&mut self) -> &mut Self::Return
fn temp_result(&mut self) -> &mut Self::Return
Temporary storage for
ParseTreeVisitor blanket implementation to work Read morefn visit( &mut self, node: &<Self::Node as ParserNodeType<'_>>::Type ) -> Self::Return
source§fn visit_terminal(
&mut self,
_node: &LeafNode<'input, Self::Node, NoError>
) -> Self::Return
fn visit_terminal( &mut self, _node: &LeafNode<'input, Self::Node, NoError> ) -> Self::Return
Called on terminal(leaf) node
source§fn visit_error_node(
&mut self,
_node: &LeafNode<'input, Self::Node, IsError>
) -> Self::Return
fn visit_error_node( &mut self, _node: &LeafNode<'input, Self::Node, IsError> ) -> Self::Return
Called on error node
fn visit_children( &mut self, node: &<Self::Node as ParserNodeType<'input>>::Type ) -> Self::Return
fn aggregate_results( &self, aggregate: Self::Return, next: Self::Return ) -> Self::Return
fn should_visit_next_child( &self, node: &<Self::Node as ParserNodeType<'input>>::Type, current: &Self::Return ) -> bool
Auto Trait Implementations§
impl RefUnwindSafe for ValkyrieProgramParser
impl Send for ValkyrieProgramParser
impl Sync for ValkyrieProgramParser
impl Unpin for ValkyrieProgramParser
impl UnwindSafe for ValkyrieProgramParser
Blanket Implementations§
§impl<T> AnyExt for Twhere
T: Any + ?Sized,
impl<T> AnyExt for Twhere T: Any + ?Sized,
§fn downcast_ref<T>(this: &Self) -> Option<&T>where
T: Any,
fn downcast_ref<T>(this: &Self) -> Option<&T>where T: Any,
Attempts to downcast this to
T behind reference§fn downcast_mut<T>(this: &mut Self) -> Option<&mut T>where
T: Any,
fn downcast_mut<T>(this: &mut Self) -> Option<&mut T>where T: Any,
Attempts to downcast this to
T behind mutable reference§fn downcast_rc<T>(
this: Rc<Self, Global>
) -> Result<Rc<T, Global>, Rc<Self, Global>>where
T: Any,
fn downcast_rc<T>( this: Rc<Self, Global> ) -> Result<Rc<T, Global>, Rc<Self, Global>>where T: Any,
Attempts to downcast this to
T behind Rc pointer§fn downcast_arc<T>(
this: Arc<Self, Global>
) -> Result<Arc<T, Global>, Arc<Self, Global>>where
T: Any,
fn downcast_arc<T>( this: Arc<Self, Global> ) -> Result<Arc<T, Global>, Arc<Self, Global>>where T: Any,
Attempts to downcast this to
T behind Arc pointer§fn downcast_box<T>(
this: Box<Self, Global>
) -> Result<Box<T, Global>, Box<Self, Global>>where
T: Any,
fn downcast_box<T>( this: Box<Self, Global> ) -> Result<Box<T, Global>, Box<Self, Global>>where T: Any,
Attempts to downcast this to
T behind Box pointer§fn downcast_move<T>(this: Self) -> Option<T>where
T: Any,
Self: Sized,
fn downcast_move<T>(this: Self) -> Option<T>where T: Any, Self: Sized,
Attempts to downcast owned
Self to T,
useful only in generic context as a workaround for specializationsource§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more