[−][src]Trait pratt::PrattParser
Associated Types
Loading content...Required methods
fn query(&mut self, input: &Self::Input) -> Result<Affix, Self::Error>
fn primary(&mut self, input: Self::Input) -> Result<Self::Output, Self::Error>
fn infix(
&mut self,
lhs: Self::Output,
op: Self::Input,
rhs: Self::Output
) -> Result<Self::Output, Self::Error>
&mut self,
lhs: Self::Output,
op: Self::Input,
rhs: Self::Output
) -> Result<Self::Output, Self::Error>
fn prefix(
&mut self,
op: Self::Input,
rhs: Self::Output
) -> Result<Self::Output, Self::Error>
&mut self,
op: Self::Input,
rhs: Self::Output
) -> Result<Self::Output, Self::Error>
fn postfix(
&mut self,
lhs: Self::Output,
op: Self::Input
) -> Result<Self::Output, Self::Error>
&mut self,
lhs: Self::Output,
op: Self::Input
) -> Result<Self::Output, Self::Error>
Provided methods
fn parse(
&mut self,
inputs: &mut Inputs
) -> Result<Self::Output, PrattError<Self::Input, Self::Error>>
&mut self,
inputs: &mut Inputs
) -> Result<Self::Output, PrattError<Self::Input, Self::Error>>
fn parse_input(
&mut self,
tail: &mut Peekable<&mut Inputs>,
rbp: Precedence
) -> Result<Self::Output, PrattError<Self::Input, Self::Error>>
&mut self,
tail: &mut Peekable<&mut Inputs>,
rbp: Precedence
) -> Result<Self::Output, PrattError<Self::Input, Self::Error>>
fn nud(
&mut self,
head: Self::Input,
tail: &mut Peekable<&mut Inputs>,
info: Affix
) -> Result<Self::Output, PrattError<Self::Input, Self::Error>>
&mut self,
head: Self::Input,
tail: &mut Peekable<&mut Inputs>,
info: Affix
) -> Result<Self::Output, PrattError<Self::Input, Self::Error>>
Null-Denotation
fn led(
&mut self,
head: Self::Input,
tail: &mut Peekable<&mut Inputs>,
info: Affix,
lhs: Self::Output
) -> Result<Self::Output, PrattError<Self::Input, Self::Error>>
&mut self,
head: Self::Input,
tail: &mut Peekable<&mut Inputs>,
info: Affix,
lhs: Self::Output
) -> Result<Self::Output, PrattError<Self::Input, Self::Error>>
Left-Denotation
fn lbp(&mut self, info: Affix) -> Precedence
Left-Binding-Power
fn nbp(&mut self, info: Affix) -> Precedence
Next-Binding-Power