[−][src]Struct kul_core::Parser
Represents: the ability to parse a string; the characters used to delimit
the nesting form; the method of allocating the Datum
s; and the environment
of bindings of macros.
Fields
classifier: CC
The character classifier. Determines which char
s are the format's
delimiters.
allocator: DA
The Datum
allocator. Determines how and where returned AST nodes are
allocated.
bindings: OB
The operator bindings. Determines which, if any, operator forms are bound to macros.
Methods
impl<CC, DA, OB> Parser<CC, DA, OB> where
CC: CharClassifier,
DA: DatumAllocator,
DA::TT: TextConcat<DA>,
OB: OperatorBindings<DA>,
[src]
CC: CharClassifier,
DA: DatumAllocator,
DA::TT: TextConcat<DA>,
OB: OperatorBindings<DA>,
pub fn parse<S>(&mut self, source: S) -> ParseIter<Self, S> where
S: SourceStream<DA>,
[src]
S: SourceStream<DA>,
The primary method. Parse the given text source, according to the
specific parameterization of our Self
, and return an iterator that
yields each top-level form as a Datum
AST.
Trait Implementations
Auto Trait Implementations
impl<CC, DA, OB> Send for Parser<CC, DA, OB> where
CC: Send,
DA: Send,
OB: Send,
CC: Send,
DA: Send,
OB: Send,
impl<CC, DA, OB> Sync for Parser<CC, DA, OB> where
CC: Sync,
DA: Sync,
OB: Sync,
CC: Sync,
DA: Sync,
OB: Sync,
Blanket Implementations
impl<T> From for T
[src]
impl<T, U> TryFrom 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 for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<T, U> Into for T where
U: From<T>,
[src]
U: From<T>,
impl<T> Borrow for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,