pub struct LL1Parser<'a, State, Char, Output> { /* private fields */ }
Expand description
LL(1)構文解析器
Implementations§
Source§impl<'a, State, Char, Output> LL1Parser<'a, State, Char, Output>
impl<'a, State, Char, Output> LL1Parser<'a, State, Char, Output>
Sourcepub fn add_rule<F1, FP>(&mut self, state: State, check_first: F1, proc: FP)
pub fn add_rule<F1, FP>(&mut self, state: State, check_first: F1, proc: FP)
規則: $\mathtt{state} \rightarrow \alpha $ を導入する。
$\alpha$はproc
で解析される部分。
$\alpha$の先頭はcheck_first(c)
を満たす。
Sourcepub fn add_rule_empty<FP>(&mut self, state: State, proc: FP)
pub fn add_rule_empty<FP>(&mut self, state: State, proc: FP)
規則: $\mathtt{state} \rightarrow \varepsilon$ を導入する。
Trait Implementations§
Auto Trait Implementations§
impl<'a, State, Char, Output> Freeze for LL1Parser<'a, State, Char, Output>
impl<'a, State, Char, Output> !RefUnwindSafe for LL1Parser<'a, State, Char, Output>
impl<'a, State, Char, Output> !Send for LL1Parser<'a, State, Char, Output>
impl<'a, State, Char, Output> !Sync for LL1Parser<'a, State, Char, Output>
impl<'a, State, Char, Output> Unpin for LL1Parser<'a, State, Char, Output>where
State: Unpin,
impl<'a, State, Char, Output> !UnwindSafe for LL1Parser<'a, State, Char, Output>
Blanket Implementations§
Source§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