[−][src]Struct spdl::SPDLParser
This represents a SPDL parser.
Fields
root: SyntacticalInstance
The root syntactical instance is a tree of syntactical instances that are parsed in order, to accomplish exhaustive parsing of the file.
vars: &'static [SyntacticalInstance]
This is an array of all variables declared in the parser. This is used for syntactical instances with the type "Search" as a place to search for things in.
Implementations
impl SPDLParser
[src]
pub fn get_syntax_tree(
&self,
input: &'static str,
trace: bool
) -> Result<SyntaxTree, Vec<SPDLError>>
[src]
&self,
input: &'static str,
trace: bool
) -> Result<SyntaxTree, Vec<SPDLError>>
This is a function that gets a syntax tree for input code based on the description of this parser. The trace parameter determines whether or not every step of parsing should be traced and printed out.
Trait Implementations
impl Clone for SPDLParser
[src]
fn clone(&self) -> SPDLParser
[src]
fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl Copy for SPDLParser
[src]
impl Debug for SPDLParser
[src]
Auto Trait Implementations
impl !RefUnwindSafe for SPDLParser
impl Send for SPDLParser
impl Sync for SPDLParser
impl Unpin for SPDLParser
impl !UnwindSafe for SPDLParser
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T
[src]
fn clone_into(&self, target: &mut T)
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,