mirror of
https://github.com/fluencelabs/lalrpop
synced 2025-03-16 17:00:53 +00:00
Port lalrpop-test to use new Configuration
value
Also, start emitting comments again, since they are helpful to ME.
This commit is contained in:
parent
d70cfac7d8
commit
b639c9e88b
@ -1,5 +1,9 @@
|
||||
extern crate lalrpop;
|
||||
|
||||
fn main() {
|
||||
lalrpop::process_root_unconditionally().unwrap();
|
||||
lalrpop::Configuration::new()
|
||||
.emit_comments(true)
|
||||
.force_build(true)
|
||||
.process_current_dir()
|
||||
.unwrap();
|
||||
}
|
||||
|
@ -43,6 +43,23 @@ mod __parse__Items {
|
||||
____Items((usize, Vec<(usize, usize)>, usize)),
|
||||
}
|
||||
|
||||
// State 0
|
||||
// Items = (*) [EOF]
|
||||
// Items = (*) ["+"]
|
||||
// Items = (*) ["-"]
|
||||
// Items = (*) Items "+" [EOF]
|
||||
// Items = (*) Items "+" ["+"]
|
||||
// Items = (*) Items "+" ["-"]
|
||||
// Items = (*) Items "-" [EOF]
|
||||
// Items = (*) Items "-" ["+"]
|
||||
// Items = (*) Items "-" ["-"]
|
||||
// __Items = (*) Items [EOF]
|
||||
//
|
||||
// EOF -> Reduce(Items = => ActionFn(1);)
|
||||
// "+" -> Reduce(Items = => ActionFn(1);)
|
||||
// "-" -> Reduce(Items = => ActionFn(1);)
|
||||
//
|
||||
// Items -> S1
|
||||
pub fn __state0<
|
||||
__TOKENS: Iterator<Item=Result<(usize, Tok, usize),char>>,
|
||||
>(
|
||||
@ -86,6 +103,19 @@ mod __parse__Items {
|
||||
}
|
||||
}
|
||||
|
||||
// State 1
|
||||
// Items = Items (*) "+" [EOF]
|
||||
// Items = Items (*) "+" ["+"]
|
||||
// Items = Items (*) "+" ["-"]
|
||||
// Items = Items (*) "-" [EOF]
|
||||
// Items = Items (*) "-" ["+"]
|
||||
// Items = Items (*) "-" ["-"]
|
||||
// __Items = Items (*) [EOF]
|
||||
//
|
||||
// EOF -> Reduce(__Items = Items => ActionFn(0);)
|
||||
// "+" -> Shift(S2)
|
||||
// "-" -> Shift(S3)
|
||||
//
|
||||
pub fn __state1<
|
||||
__TOKENS: Iterator<Item=Result<(usize, Tok, usize),char>>,
|
||||
>(
|
||||
@ -126,6 +156,15 @@ mod __parse__Items {
|
||||
return Ok(__result);
|
||||
}
|
||||
|
||||
// State 2
|
||||
// Items = Items "+" (*) [EOF]
|
||||
// Items = Items "+" (*) ["+"]
|
||||
// Items = Items "+" (*) ["-"]
|
||||
//
|
||||
// EOF -> Reduce(Items = Items, "+" => ActionFn(2);)
|
||||
// "+" -> Reduce(Items = Items, "+" => ActionFn(2);)
|
||||
// "-" -> Reduce(Items = Items, "+" => ActionFn(2);)
|
||||
//
|
||||
pub fn __state2<
|
||||
__TOKENS: Iterator<Item=Result<(usize, Tok, usize),char>>,
|
||||
>(
|
||||
@ -165,6 +204,15 @@ mod __parse__Items {
|
||||
}
|
||||
}
|
||||
|
||||
// State 3
|
||||
// Items = Items "-" (*) [EOF]
|
||||
// Items = Items "-" (*) ["+"]
|
||||
// Items = Items "-" (*) ["-"]
|
||||
//
|
||||
// EOF -> Reduce(Items = Items, "-" => ActionFn(3);)
|
||||
// "+" -> Reduce(Items = Items, "-" => ActionFn(3);)
|
||||
// "-" -> Reduce(Items = Items, "-" => ActionFn(3);)
|
||||
//
|
||||
pub fn __state3<
|
||||
__TOKENS: Iterator<Item=Result<(usize, Tok, usize),char>>,
|
||||
>(
|
||||
|
@ -45,6 +45,49 @@ mod __parse__Expr {
|
||||
____Expr(((), i32, ())),
|
||||
}
|
||||
|
||||
// State 0
|
||||
// Expr = (*) Expr "+" Factor [EOF]
|
||||
// Expr = (*) Expr "+" Factor ["+"]
|
||||
// Expr = (*) Expr "+" Factor ["-"]
|
||||
// Expr = (*) Expr "-" Factor [EOF]
|
||||
// Expr = (*) Expr "-" Factor ["+"]
|
||||
// Expr = (*) Expr "-" Factor ["-"]
|
||||
// Expr = (*) Factor [EOF]
|
||||
// Expr = (*) Factor ["+"]
|
||||
// Expr = (*) Factor ["-"]
|
||||
// Factor = (*) Factor "*" Term [EOF]
|
||||
// Factor = (*) Factor "*" Term ["*"]
|
||||
// Factor = (*) Factor "*" Term ["+"]
|
||||
// Factor = (*) Factor "*" Term ["-"]
|
||||
// Factor = (*) Factor "*" Term ["/"]
|
||||
// Factor = (*) Factor "/" Term [EOF]
|
||||
// Factor = (*) Factor "/" Term ["*"]
|
||||
// Factor = (*) Factor "/" Term ["+"]
|
||||
// Factor = (*) Factor "/" Term ["-"]
|
||||
// Factor = (*) Factor "/" Term ["/"]
|
||||
// Factor = (*) Term [EOF]
|
||||
// Factor = (*) Term ["*"]
|
||||
// Factor = (*) Term ["+"]
|
||||
// Factor = (*) Term ["-"]
|
||||
// Factor = (*) Term ["/"]
|
||||
// Term = (*) "(" Expr ")" [EOF]
|
||||
// Term = (*) "(" Expr ")" ["*"]
|
||||
// Term = (*) "(" Expr ")" ["+"]
|
||||
// Term = (*) "(" Expr ")" ["-"]
|
||||
// Term = (*) "(" Expr ")" ["/"]
|
||||
// Term = (*) Num [EOF]
|
||||
// Term = (*) Num ["*"]
|
||||
// Term = (*) Num ["+"]
|
||||
// Term = (*) Num ["-"]
|
||||
// Term = (*) Num ["/"]
|
||||
// __Expr = (*) Expr [EOF]
|
||||
//
|
||||
// "(" -> Shift(S4)
|
||||
// Num -> Shift(S5)
|
||||
//
|
||||
// Expr -> S1
|
||||
// Factor -> S2
|
||||
// Term -> S3
|
||||
pub fn __state0<
|
||||
__TOKENS: Iterator<Item=Result<((), Tok, ()),()>>,
|
||||
>(
|
||||
@ -92,6 +135,19 @@ mod __parse__Expr {
|
||||
}
|
||||
}
|
||||
|
||||
// State 1
|
||||
// Expr = Expr (*) "+" Factor [EOF]
|
||||
// Expr = Expr (*) "+" Factor ["+"]
|
||||
// Expr = Expr (*) "+" Factor ["-"]
|
||||
// Expr = Expr (*) "-" Factor [EOF]
|
||||
// Expr = Expr (*) "-" Factor ["+"]
|
||||
// Expr = Expr (*) "-" Factor ["-"]
|
||||
// __Expr = Expr (*) [EOF]
|
||||
//
|
||||
// EOF -> Reduce(__Expr = Expr => ActionFn(0);)
|
||||
// "+" -> Shift(S6)
|
||||
// "-" -> Shift(S7)
|
||||
//
|
||||
pub fn __state1<
|
||||
__TOKENS: Iterator<Item=Result<((), Tok, ()),()>>,
|
||||
>(
|
||||
@ -133,6 +189,27 @@ mod __parse__Expr {
|
||||
return Ok(__result);
|
||||
}
|
||||
|
||||
// State 2
|
||||
// Expr = Factor (*) [EOF]
|
||||
// Expr = Factor (*) ["+"]
|
||||
// Expr = Factor (*) ["-"]
|
||||
// Factor = Factor (*) "*" Term [EOF]
|
||||
// Factor = Factor (*) "*" Term ["*"]
|
||||
// Factor = Factor (*) "*" Term ["+"]
|
||||
// Factor = Factor (*) "*" Term ["-"]
|
||||
// Factor = Factor (*) "*" Term ["/"]
|
||||
// Factor = Factor (*) "/" Term [EOF]
|
||||
// Factor = Factor (*) "/" Term ["*"]
|
||||
// Factor = Factor (*) "/" Term ["+"]
|
||||
// Factor = Factor (*) "/" Term ["-"]
|
||||
// Factor = Factor (*) "/" Term ["/"]
|
||||
//
|
||||
// EOF -> Reduce(Expr = Factor => ActionFn(3);)
|
||||
// "*" -> Shift(S8)
|
||||
// "+" -> Reduce(Expr = Factor => ActionFn(3);)
|
||||
// "-" -> Reduce(Expr = Factor => ActionFn(3);)
|
||||
// "/" -> Shift(S9)
|
||||
//
|
||||
pub fn __state2<
|
||||
__TOKENS: Iterator<Item=Result<((), Tok, ()),()>>,
|
||||
>(
|
||||
@ -176,6 +253,19 @@ mod __parse__Expr {
|
||||
return Ok(__result);
|
||||
}
|
||||
|
||||
// State 3
|
||||
// Factor = Term (*) [EOF]
|
||||
// Factor = Term (*) ["*"]
|
||||
// Factor = Term (*) ["+"]
|
||||
// Factor = Term (*) ["-"]
|
||||
// Factor = Term (*) ["/"]
|
||||
//
|
||||
// EOF -> Reduce(Factor = Term => ActionFn(6);)
|
||||
// "*" -> Reduce(Factor = Term => ActionFn(6);)
|
||||
// "+" -> Reduce(Factor = Term => ActionFn(6);)
|
||||
// "-" -> Reduce(Factor = Term => ActionFn(6);)
|
||||
// "/" -> Reduce(Factor = Term => ActionFn(6);)
|
||||
//
|
||||
pub fn __state3<
|
||||
__TOKENS: Iterator<Item=Result<((), Tok, ()),()>>,
|
||||
>(
|
||||
@ -212,6 +302,53 @@ mod __parse__Expr {
|
||||
}
|
||||
}
|
||||
|
||||
// State 4
|
||||
// Expr = (*) Expr "+" Factor [")"]
|
||||
// Expr = (*) Expr "+" Factor ["+"]
|
||||
// Expr = (*) Expr "+" Factor ["-"]
|
||||
// Expr = (*) Expr "-" Factor [")"]
|
||||
// Expr = (*) Expr "-" Factor ["+"]
|
||||
// Expr = (*) Expr "-" Factor ["-"]
|
||||
// Expr = (*) Factor [")"]
|
||||
// Expr = (*) Factor ["+"]
|
||||
// Expr = (*) Factor ["-"]
|
||||
// Factor = (*) Factor "*" Term [")"]
|
||||
// Factor = (*) Factor "*" Term ["*"]
|
||||
// Factor = (*) Factor "*" Term ["+"]
|
||||
// Factor = (*) Factor "*" Term ["-"]
|
||||
// Factor = (*) Factor "*" Term ["/"]
|
||||
// Factor = (*) Factor "/" Term [")"]
|
||||
// Factor = (*) Factor "/" Term ["*"]
|
||||
// Factor = (*) Factor "/" Term ["+"]
|
||||
// Factor = (*) Factor "/" Term ["-"]
|
||||
// Factor = (*) Factor "/" Term ["/"]
|
||||
// Factor = (*) Term [")"]
|
||||
// Factor = (*) Term ["*"]
|
||||
// Factor = (*) Term ["+"]
|
||||
// Factor = (*) Term ["-"]
|
||||
// Factor = (*) Term ["/"]
|
||||
// Term = (*) "(" Expr ")" [")"]
|
||||
// Term = (*) "(" Expr ")" ["*"]
|
||||
// Term = (*) "(" Expr ")" ["+"]
|
||||
// Term = (*) "(" Expr ")" ["-"]
|
||||
// Term = (*) "(" Expr ")" ["/"]
|
||||
// Term = "(" (*) Expr ")" [EOF]
|
||||
// Term = "(" (*) Expr ")" ["*"]
|
||||
// Term = "(" (*) Expr ")" ["+"]
|
||||
// Term = "(" (*) Expr ")" ["-"]
|
||||
// Term = "(" (*) Expr ")" ["/"]
|
||||
// Term = (*) Num [")"]
|
||||
// Term = (*) Num ["*"]
|
||||
// Term = (*) Num ["+"]
|
||||
// Term = (*) Num ["-"]
|
||||
// Term = (*) Num ["/"]
|
||||
//
|
||||
// "(" -> Shift(S13)
|
||||
// Num -> Shift(S14)
|
||||
//
|
||||
// Expr -> S10
|
||||
// Factor -> S11
|
||||
// Term -> S12
|
||||
pub fn __state4<
|
||||
__TOKENS: Iterator<Item=Result<((), Tok, ()),()>>,
|
||||
>(
|
||||
@ -265,6 +402,19 @@ mod __parse__Expr {
|
||||
return Ok(__result);
|
||||
}
|
||||
|
||||
// State 5
|
||||
// Term = Num (*) [EOF]
|
||||
// Term = Num (*) ["*"]
|
||||
// Term = Num (*) ["+"]
|
||||
// Term = Num (*) ["-"]
|
||||
// Term = Num (*) ["/"]
|
||||
//
|
||||
// EOF -> Reduce(Term = Num => ActionFn(7);)
|
||||
// "*" -> Reduce(Term = Num => ActionFn(7);)
|
||||
// "+" -> Reduce(Term = Num => ActionFn(7);)
|
||||
// "-" -> Reduce(Term = Num => ActionFn(7);)
|
||||
// "/" -> Reduce(Term = Num => ActionFn(7);)
|
||||
//
|
||||
pub fn __state5<
|
||||
__TOKENS: Iterator<Item=Result<((), Tok, ()),()>>,
|
||||
>(
|
||||
@ -305,6 +455,41 @@ mod __parse__Expr {
|
||||
}
|
||||
}
|
||||
|
||||
// State 6
|
||||
// Expr = Expr "+" (*) Factor [EOF]
|
||||
// Expr = Expr "+" (*) Factor ["+"]
|
||||
// Expr = Expr "+" (*) Factor ["-"]
|
||||
// Factor = (*) Factor "*" Term [EOF]
|
||||
// Factor = (*) Factor "*" Term ["*"]
|
||||
// Factor = (*) Factor "*" Term ["+"]
|
||||
// Factor = (*) Factor "*" Term ["-"]
|
||||
// Factor = (*) Factor "*" Term ["/"]
|
||||
// Factor = (*) Factor "/" Term [EOF]
|
||||
// Factor = (*) Factor "/" Term ["*"]
|
||||
// Factor = (*) Factor "/" Term ["+"]
|
||||
// Factor = (*) Factor "/" Term ["-"]
|
||||
// Factor = (*) Factor "/" Term ["/"]
|
||||
// Factor = (*) Term [EOF]
|
||||
// Factor = (*) Term ["*"]
|
||||
// Factor = (*) Term ["+"]
|
||||
// Factor = (*) Term ["-"]
|
||||
// Factor = (*) Term ["/"]
|
||||
// Term = (*) "(" Expr ")" [EOF]
|
||||
// Term = (*) "(" Expr ")" ["*"]
|
||||
// Term = (*) "(" Expr ")" ["+"]
|
||||
// Term = (*) "(" Expr ")" ["-"]
|
||||
// Term = (*) "(" Expr ")" ["/"]
|
||||
// Term = (*) Num [EOF]
|
||||
// Term = (*) Num ["*"]
|
||||
// Term = (*) Num ["+"]
|
||||
// Term = (*) Num ["-"]
|
||||
// Term = (*) Num ["/"]
|
||||
//
|
||||
// "(" -> Shift(S4)
|
||||
// Num -> Shift(S5)
|
||||
//
|
||||
// Factor -> S15
|
||||
// Term -> S3
|
||||
pub fn __state6<
|
||||
__TOKENS: Iterator<Item=Result<((), Tok, ()),()>>,
|
||||
>(
|
||||
@ -355,6 +540,41 @@ mod __parse__Expr {
|
||||
return Ok(__result);
|
||||
}
|
||||
|
||||
// State 7
|
||||
// Expr = Expr "-" (*) Factor [EOF]
|
||||
// Expr = Expr "-" (*) Factor ["+"]
|
||||
// Expr = Expr "-" (*) Factor ["-"]
|
||||
// Factor = (*) Factor "*" Term [EOF]
|
||||
// Factor = (*) Factor "*" Term ["*"]
|
||||
// Factor = (*) Factor "*" Term ["+"]
|
||||
// Factor = (*) Factor "*" Term ["-"]
|
||||
// Factor = (*) Factor "*" Term ["/"]
|
||||
// Factor = (*) Factor "/" Term [EOF]
|
||||
// Factor = (*) Factor "/" Term ["*"]
|
||||
// Factor = (*) Factor "/" Term ["+"]
|
||||
// Factor = (*) Factor "/" Term ["-"]
|
||||
// Factor = (*) Factor "/" Term ["/"]
|
||||
// Factor = (*) Term [EOF]
|
||||
// Factor = (*) Term ["*"]
|
||||
// Factor = (*) Term ["+"]
|
||||
// Factor = (*) Term ["-"]
|
||||
// Factor = (*) Term ["/"]
|
||||
// Term = (*) "(" Expr ")" [EOF]
|
||||
// Term = (*) "(" Expr ")" ["*"]
|
||||
// Term = (*) "(" Expr ")" ["+"]
|
||||
// Term = (*) "(" Expr ")" ["-"]
|
||||
// Term = (*) "(" Expr ")" ["/"]
|
||||
// Term = (*) Num [EOF]
|
||||
// Term = (*) Num ["*"]
|
||||
// Term = (*) Num ["+"]
|
||||
// Term = (*) Num ["-"]
|
||||
// Term = (*) Num ["/"]
|
||||
//
|
||||
// "(" -> Shift(S4)
|
||||
// Num -> Shift(S5)
|
||||
//
|
||||
// Factor -> S16
|
||||
// Term -> S3
|
||||
pub fn __state7<
|
||||
__TOKENS: Iterator<Item=Result<((), Tok, ()),()>>,
|
||||
>(
|
||||
@ -405,6 +625,27 @@ mod __parse__Expr {
|
||||
return Ok(__result);
|
||||
}
|
||||
|
||||
// State 8
|
||||
// Factor = Factor "*" (*) Term [EOF]
|
||||
// Factor = Factor "*" (*) Term ["*"]
|
||||
// Factor = Factor "*" (*) Term ["+"]
|
||||
// Factor = Factor "*" (*) Term ["-"]
|
||||
// Factor = Factor "*" (*) Term ["/"]
|
||||
// Term = (*) "(" Expr ")" [EOF]
|
||||
// Term = (*) "(" Expr ")" ["*"]
|
||||
// Term = (*) "(" Expr ")" ["+"]
|
||||
// Term = (*) "(" Expr ")" ["-"]
|
||||
// Term = (*) "(" Expr ")" ["/"]
|
||||
// Term = (*) Num [EOF]
|
||||
// Term = (*) Num ["*"]
|
||||
// Term = (*) Num ["+"]
|
||||
// Term = (*) Num ["-"]
|
||||
// Term = (*) Num ["/"]
|
||||
//
|
||||
// "(" -> Shift(S4)
|
||||
// Num -> Shift(S5)
|
||||
//
|
||||
// Term -> S17
|
||||
pub fn __state8<
|
||||
__TOKENS: Iterator<Item=Result<((), Tok, ()),()>>,
|
||||
>(
|
||||
@ -451,6 +692,27 @@ mod __parse__Expr {
|
||||
return Ok(__result);
|
||||
}
|
||||
|
||||
// State 9
|
||||
// Factor = Factor "/" (*) Term [EOF]
|
||||
// Factor = Factor "/" (*) Term ["*"]
|
||||
// Factor = Factor "/" (*) Term ["+"]
|
||||
// Factor = Factor "/" (*) Term ["-"]
|
||||
// Factor = Factor "/" (*) Term ["/"]
|
||||
// Term = (*) "(" Expr ")" [EOF]
|
||||
// Term = (*) "(" Expr ")" ["*"]
|
||||
// Term = (*) "(" Expr ")" ["+"]
|
||||
// Term = (*) "(" Expr ")" ["-"]
|
||||
// Term = (*) "(" Expr ")" ["/"]
|
||||
// Term = (*) Num [EOF]
|
||||
// Term = (*) Num ["*"]
|
||||
// Term = (*) Num ["+"]
|
||||
// Term = (*) Num ["-"]
|
||||
// Term = (*) Num ["/"]
|
||||
//
|
||||
// "(" -> Shift(S4)
|
||||
// Num -> Shift(S5)
|
||||
//
|
||||
// Term -> S18
|
||||
pub fn __state9<
|
||||
__TOKENS: Iterator<Item=Result<((), Tok, ()),()>>,
|
||||
>(
|
||||
@ -497,6 +759,23 @@ mod __parse__Expr {
|
||||
return Ok(__result);
|
||||
}
|
||||
|
||||
// State 10
|
||||
// Expr = Expr (*) "+" Factor [")"]
|
||||
// Expr = Expr (*) "+" Factor ["+"]
|
||||
// Expr = Expr (*) "+" Factor ["-"]
|
||||
// Expr = Expr (*) "-" Factor [")"]
|
||||
// Expr = Expr (*) "-" Factor ["+"]
|
||||
// Expr = Expr (*) "-" Factor ["-"]
|
||||
// Term = "(" Expr (*) ")" [EOF]
|
||||
// Term = "(" Expr (*) ")" ["*"]
|
||||
// Term = "(" Expr (*) ")" ["+"]
|
||||
// Term = "(" Expr (*) ")" ["-"]
|
||||
// Term = "(" Expr (*) ")" ["/"]
|
||||
//
|
||||
// ")" -> Shift(S19)
|
||||
// "+" -> Shift(S20)
|
||||
// "-" -> Shift(S21)
|
||||
//
|
||||
pub fn __state10<
|
||||
__TOKENS: Iterator<Item=Result<((), Tok, ()),()>>,
|
||||
>(
|
||||
@ -531,6 +810,27 @@ mod __parse__Expr {
|
||||
return Ok(__result);
|
||||
}
|
||||
|
||||
// State 11
|
||||
// Expr = Factor (*) [")"]
|
||||
// Expr = Factor (*) ["+"]
|
||||
// Expr = Factor (*) ["-"]
|
||||
// Factor = Factor (*) "*" Term [")"]
|
||||
// Factor = Factor (*) "*" Term ["*"]
|
||||
// Factor = Factor (*) "*" Term ["+"]
|
||||
// Factor = Factor (*) "*" Term ["-"]
|
||||
// Factor = Factor (*) "*" Term ["/"]
|
||||
// Factor = Factor (*) "/" Term [")"]
|
||||
// Factor = Factor (*) "/" Term ["*"]
|
||||
// Factor = Factor (*) "/" Term ["+"]
|
||||
// Factor = Factor (*) "/" Term ["-"]
|
||||
// Factor = Factor (*) "/" Term ["/"]
|
||||
//
|
||||
// ")" -> Reduce(Expr = Factor => ActionFn(3);)
|
||||
// "*" -> Shift(S22)
|
||||
// "+" -> Reduce(Expr = Factor => ActionFn(3);)
|
||||
// "-" -> Reduce(Expr = Factor => ActionFn(3);)
|
||||
// "/" -> Shift(S23)
|
||||
//
|
||||
pub fn __state11<
|
||||
__TOKENS: Iterator<Item=Result<((), Tok, ()),()>>,
|
||||
>(
|
||||
@ -574,6 +874,19 @@ mod __parse__Expr {
|
||||
return Ok(__result);
|
||||
}
|
||||
|
||||
// State 12
|
||||
// Factor = Term (*) [")"]
|
||||
// Factor = Term (*) ["*"]
|
||||
// Factor = Term (*) ["+"]
|
||||
// Factor = Term (*) ["-"]
|
||||
// Factor = Term (*) ["/"]
|
||||
//
|
||||
// ")" -> Reduce(Factor = Term => ActionFn(6);)
|
||||
// "*" -> Reduce(Factor = Term => ActionFn(6);)
|
||||
// "+" -> Reduce(Factor = Term => ActionFn(6);)
|
||||
// "-" -> Reduce(Factor = Term => ActionFn(6);)
|
||||
// "/" -> Reduce(Factor = Term => ActionFn(6);)
|
||||
//
|
||||
pub fn __state12<
|
||||
__TOKENS: Iterator<Item=Result<((), Tok, ()),()>>,
|
||||
>(
|
||||
@ -610,6 +923,53 @@ mod __parse__Expr {
|
||||
}
|
||||
}
|
||||
|
||||
// State 13
|
||||
// Expr = (*) Expr "+" Factor [")"]
|
||||
// Expr = (*) Expr "+" Factor ["+"]
|
||||
// Expr = (*) Expr "+" Factor ["-"]
|
||||
// Expr = (*) Expr "-" Factor [")"]
|
||||
// Expr = (*) Expr "-" Factor ["+"]
|
||||
// Expr = (*) Expr "-" Factor ["-"]
|
||||
// Expr = (*) Factor [")"]
|
||||
// Expr = (*) Factor ["+"]
|
||||
// Expr = (*) Factor ["-"]
|
||||
// Factor = (*) Factor "*" Term [")"]
|
||||
// Factor = (*) Factor "*" Term ["*"]
|
||||
// Factor = (*) Factor "*" Term ["+"]
|
||||
// Factor = (*) Factor "*" Term ["-"]
|
||||
// Factor = (*) Factor "*" Term ["/"]
|
||||
// Factor = (*) Factor "/" Term [")"]
|
||||
// Factor = (*) Factor "/" Term ["*"]
|
||||
// Factor = (*) Factor "/" Term ["+"]
|
||||
// Factor = (*) Factor "/" Term ["-"]
|
||||
// Factor = (*) Factor "/" Term ["/"]
|
||||
// Factor = (*) Term [")"]
|
||||
// Factor = (*) Term ["*"]
|
||||
// Factor = (*) Term ["+"]
|
||||
// Factor = (*) Term ["-"]
|
||||
// Factor = (*) Term ["/"]
|
||||
// Term = (*) "(" Expr ")" [")"]
|
||||
// Term = (*) "(" Expr ")" ["*"]
|
||||
// Term = (*) "(" Expr ")" ["+"]
|
||||
// Term = (*) "(" Expr ")" ["-"]
|
||||
// Term = (*) "(" Expr ")" ["/"]
|
||||
// Term = "(" (*) Expr ")" [")"]
|
||||
// Term = "(" (*) Expr ")" ["*"]
|
||||
// Term = "(" (*) Expr ")" ["+"]
|
||||
// Term = "(" (*) Expr ")" ["-"]
|
||||
// Term = "(" (*) Expr ")" ["/"]
|
||||
// Term = (*) Num [")"]
|
||||
// Term = (*) Num ["*"]
|
||||
// Term = (*) Num ["+"]
|
||||
// Term = (*) Num ["-"]
|
||||
// Term = (*) Num ["/"]
|
||||
//
|
||||
// "(" -> Shift(S13)
|
||||
// Num -> Shift(S14)
|
||||
//
|
||||
// Expr -> S24
|
||||
// Factor -> S11
|
||||
// Term -> S12
|
||||
pub fn __state13<
|
||||
__TOKENS: Iterator<Item=Result<((), Tok, ()),()>>,
|
||||
>(
|
||||
@ -663,6 +1023,19 @@ mod __parse__Expr {
|
||||
return Ok(__result);
|
||||
}
|
||||
|
||||
// State 14
|
||||
// Term = Num (*) [")"]
|
||||
// Term = Num (*) ["*"]
|
||||
// Term = Num (*) ["+"]
|
||||
// Term = Num (*) ["-"]
|
||||
// Term = Num (*) ["/"]
|
||||
//
|
||||
// ")" -> Reduce(Term = Num => ActionFn(7);)
|
||||
// "*" -> Reduce(Term = Num => ActionFn(7);)
|
||||
// "+" -> Reduce(Term = Num => ActionFn(7);)
|
||||
// "-" -> Reduce(Term = Num => ActionFn(7);)
|
||||
// "/" -> Reduce(Term = Num => ActionFn(7);)
|
||||
//
|
||||
pub fn __state14<
|
||||
__TOKENS: Iterator<Item=Result<((), Tok, ()),()>>,
|
||||
>(
|
||||
@ -703,6 +1076,27 @@ mod __parse__Expr {
|
||||
}
|
||||
}
|
||||
|
||||
// State 15
|
||||
// Expr = Expr "+" Factor (*) [EOF]
|
||||
// Expr = Expr "+" Factor (*) ["+"]
|
||||
// Expr = Expr "+" Factor (*) ["-"]
|
||||
// Factor = Factor (*) "*" Term [EOF]
|
||||
// Factor = Factor (*) "*" Term ["*"]
|
||||
// Factor = Factor (*) "*" Term ["+"]
|
||||
// Factor = Factor (*) "*" Term ["-"]
|
||||
// Factor = Factor (*) "*" Term ["/"]
|
||||
// Factor = Factor (*) "/" Term [EOF]
|
||||
// Factor = Factor (*) "/" Term ["*"]
|
||||
// Factor = Factor (*) "/" Term ["+"]
|
||||
// Factor = Factor (*) "/" Term ["-"]
|
||||
// Factor = Factor (*) "/" Term ["/"]
|
||||
//
|
||||
// EOF -> Reduce(Expr = Expr, "+", Factor => ActionFn(2);)
|
||||
// "*" -> Shift(S8)
|
||||
// "+" -> Reduce(Expr = Expr, "+", Factor => ActionFn(2);)
|
||||
// "-" -> Reduce(Expr = Expr, "+", Factor => ActionFn(2);)
|
||||
// "/" -> Shift(S9)
|
||||
//
|
||||
pub fn __state15<
|
||||
__TOKENS: Iterator<Item=Result<((), Tok, ()),()>>,
|
||||
>(
|
||||
@ -750,6 +1144,27 @@ mod __parse__Expr {
|
||||
return Ok(__result);
|
||||
}
|
||||
|
||||
// State 16
|
||||
// Expr = Expr "-" Factor (*) [EOF]
|
||||
// Expr = Expr "-" Factor (*) ["+"]
|
||||
// Expr = Expr "-" Factor (*) ["-"]
|
||||
// Factor = Factor (*) "*" Term [EOF]
|
||||
// Factor = Factor (*) "*" Term ["*"]
|
||||
// Factor = Factor (*) "*" Term ["+"]
|
||||
// Factor = Factor (*) "*" Term ["-"]
|
||||
// Factor = Factor (*) "*" Term ["/"]
|
||||
// Factor = Factor (*) "/" Term [EOF]
|
||||
// Factor = Factor (*) "/" Term ["*"]
|
||||
// Factor = Factor (*) "/" Term ["+"]
|
||||
// Factor = Factor (*) "/" Term ["-"]
|
||||
// Factor = Factor (*) "/" Term ["/"]
|
||||
//
|
||||
// EOF -> Reduce(Expr = Expr, "-", Factor => ActionFn(1);)
|
||||
// "*" -> Shift(S8)
|
||||
// "+" -> Reduce(Expr = Expr, "-", Factor => ActionFn(1);)
|
||||
// "-" -> Reduce(Expr = Expr, "-", Factor => ActionFn(1);)
|
||||
// "/" -> Shift(S9)
|
||||
//
|
||||
pub fn __state16<
|
||||
__TOKENS: Iterator<Item=Result<((), Tok, ()),()>>,
|
||||
>(
|
||||
@ -797,6 +1212,19 @@ mod __parse__Expr {
|
||||
return Ok(__result);
|
||||
}
|
||||
|
||||
// State 17
|
||||
// Factor = Factor "*" Term (*) [EOF]
|
||||
// Factor = Factor "*" Term (*) ["*"]
|
||||
// Factor = Factor "*" Term (*) ["+"]
|
||||
// Factor = Factor "*" Term (*) ["-"]
|
||||
// Factor = Factor "*" Term (*) ["/"]
|
||||
//
|
||||
// EOF -> Reduce(Factor = Factor, "*", Term => ActionFn(4);)
|
||||
// "*" -> Reduce(Factor = Factor, "*", Term => ActionFn(4);)
|
||||
// "+" -> Reduce(Factor = Factor, "*", Term => ActionFn(4);)
|
||||
// "-" -> Reduce(Factor = Factor, "*", Term => ActionFn(4);)
|
||||
// "/" -> Reduce(Factor = Factor, "*", Term => ActionFn(4);)
|
||||
//
|
||||
pub fn __state17<
|
||||
__TOKENS: Iterator<Item=Result<((), Tok, ()),()>>,
|
||||
>(
|
||||
@ -837,6 +1265,19 @@ mod __parse__Expr {
|
||||
}
|
||||
}
|
||||
|
||||
// State 18
|
||||
// Factor = Factor "/" Term (*) [EOF]
|
||||
// Factor = Factor "/" Term (*) ["*"]
|
||||
// Factor = Factor "/" Term (*) ["+"]
|
||||
// Factor = Factor "/" Term (*) ["-"]
|
||||
// Factor = Factor "/" Term (*) ["/"]
|
||||
//
|
||||
// EOF -> Reduce(Factor = Factor, "/", Term => ActionFn(5);)
|
||||
// "*" -> Reduce(Factor = Factor, "/", Term => ActionFn(5);)
|
||||
// "+" -> Reduce(Factor = Factor, "/", Term => ActionFn(5);)
|
||||
// "-" -> Reduce(Factor = Factor, "/", Term => ActionFn(5);)
|
||||
// "/" -> Reduce(Factor = Factor, "/", Term => ActionFn(5);)
|
||||
//
|
||||
pub fn __state18<
|
||||
__TOKENS: Iterator<Item=Result<((), Tok, ()),()>>,
|
||||
>(
|
||||
@ -877,6 +1318,19 @@ mod __parse__Expr {
|
||||
}
|
||||
}
|
||||
|
||||
// State 19
|
||||
// Term = "(" Expr ")" (*) [EOF]
|
||||
// Term = "(" Expr ")" (*) ["*"]
|
||||
// Term = "(" Expr ")" (*) ["+"]
|
||||
// Term = "(" Expr ")" (*) ["-"]
|
||||
// Term = "(" Expr ")" (*) ["/"]
|
||||
//
|
||||
// EOF -> Reduce(Term = "(", Expr, ")" => ActionFn(8);)
|
||||
// "*" -> Reduce(Term = "(", Expr, ")" => ActionFn(8);)
|
||||
// "+" -> Reduce(Term = "(", Expr, ")" => ActionFn(8);)
|
||||
// "-" -> Reduce(Term = "(", Expr, ")" => ActionFn(8);)
|
||||
// "/" -> Reduce(Term = "(", Expr, ")" => ActionFn(8);)
|
||||
//
|
||||
pub fn __state19<
|
||||
__TOKENS: Iterator<Item=Result<((), Tok, ()),()>>,
|
||||
>(
|
||||
@ -921,6 +1375,41 @@ mod __parse__Expr {
|
||||
}
|
||||
}
|
||||
|
||||
// State 20
|
||||
// Expr = Expr "+" (*) Factor [")"]
|
||||
// Expr = Expr "+" (*) Factor ["+"]
|
||||
// Expr = Expr "+" (*) Factor ["-"]
|
||||
// Factor = (*) Factor "*" Term [")"]
|
||||
// Factor = (*) Factor "*" Term ["*"]
|
||||
// Factor = (*) Factor "*" Term ["+"]
|
||||
// Factor = (*) Factor "*" Term ["-"]
|
||||
// Factor = (*) Factor "*" Term ["/"]
|
||||
// Factor = (*) Factor "/" Term [")"]
|
||||
// Factor = (*) Factor "/" Term ["*"]
|
||||
// Factor = (*) Factor "/" Term ["+"]
|
||||
// Factor = (*) Factor "/" Term ["-"]
|
||||
// Factor = (*) Factor "/" Term ["/"]
|
||||
// Factor = (*) Term [")"]
|
||||
// Factor = (*) Term ["*"]
|
||||
// Factor = (*) Term ["+"]
|
||||
// Factor = (*) Term ["-"]
|
||||
// Factor = (*) Term ["/"]
|
||||
// Term = (*) "(" Expr ")" [")"]
|
||||
// Term = (*) "(" Expr ")" ["*"]
|
||||
// Term = (*) "(" Expr ")" ["+"]
|
||||
// Term = (*) "(" Expr ")" ["-"]
|
||||
// Term = (*) "(" Expr ")" ["/"]
|
||||
// Term = (*) Num [")"]
|
||||
// Term = (*) Num ["*"]
|
||||
// Term = (*) Num ["+"]
|
||||
// Term = (*) Num ["-"]
|
||||
// Term = (*) Num ["/"]
|
||||
//
|
||||
// "(" -> Shift(S13)
|
||||
// Num -> Shift(S14)
|
||||
//
|
||||
// Factor -> S25
|
||||
// Term -> S12
|
||||
pub fn __state20<
|
||||
__TOKENS: Iterator<Item=Result<((), Tok, ()),()>>,
|
||||
>(
|
||||
@ -971,6 +1460,41 @@ mod __parse__Expr {
|
||||
return Ok(__result);
|
||||
}
|
||||
|
||||
// State 21
|
||||
// Expr = Expr "-" (*) Factor [")"]
|
||||
// Expr = Expr "-" (*) Factor ["+"]
|
||||
// Expr = Expr "-" (*) Factor ["-"]
|
||||
// Factor = (*) Factor "*" Term [")"]
|
||||
// Factor = (*) Factor "*" Term ["*"]
|
||||
// Factor = (*) Factor "*" Term ["+"]
|
||||
// Factor = (*) Factor "*" Term ["-"]
|
||||
// Factor = (*) Factor "*" Term ["/"]
|
||||
// Factor = (*) Factor "/" Term [")"]
|
||||
// Factor = (*) Factor "/" Term ["*"]
|
||||
// Factor = (*) Factor "/" Term ["+"]
|
||||
// Factor = (*) Factor "/" Term ["-"]
|
||||
// Factor = (*) Factor "/" Term ["/"]
|
||||
// Factor = (*) Term [")"]
|
||||
// Factor = (*) Term ["*"]
|
||||
// Factor = (*) Term ["+"]
|
||||
// Factor = (*) Term ["-"]
|
||||
// Factor = (*) Term ["/"]
|
||||
// Term = (*) "(" Expr ")" [")"]
|
||||
// Term = (*) "(" Expr ")" ["*"]
|
||||
// Term = (*) "(" Expr ")" ["+"]
|
||||
// Term = (*) "(" Expr ")" ["-"]
|
||||
// Term = (*) "(" Expr ")" ["/"]
|
||||
// Term = (*) Num [")"]
|
||||
// Term = (*) Num ["*"]
|
||||
// Term = (*) Num ["+"]
|
||||
// Term = (*) Num ["-"]
|
||||
// Term = (*) Num ["/"]
|
||||
//
|
||||
// "(" -> Shift(S13)
|
||||
// Num -> Shift(S14)
|
||||
//
|
||||
// Factor -> S26
|
||||
// Term -> S12
|
||||
pub fn __state21<
|
||||
__TOKENS: Iterator<Item=Result<((), Tok, ()),()>>,
|
||||
>(
|
||||
@ -1021,6 +1545,27 @@ mod __parse__Expr {
|
||||
return Ok(__result);
|
||||
}
|
||||
|
||||
// State 22
|
||||
// Factor = Factor "*" (*) Term [")"]
|
||||
// Factor = Factor "*" (*) Term ["*"]
|
||||
// Factor = Factor "*" (*) Term ["+"]
|
||||
// Factor = Factor "*" (*) Term ["-"]
|
||||
// Factor = Factor "*" (*) Term ["/"]
|
||||
// Term = (*) "(" Expr ")" [")"]
|
||||
// Term = (*) "(" Expr ")" ["*"]
|
||||
// Term = (*) "(" Expr ")" ["+"]
|
||||
// Term = (*) "(" Expr ")" ["-"]
|
||||
// Term = (*) "(" Expr ")" ["/"]
|
||||
// Term = (*) Num [")"]
|
||||
// Term = (*) Num ["*"]
|
||||
// Term = (*) Num ["+"]
|
||||
// Term = (*) Num ["-"]
|
||||
// Term = (*) Num ["/"]
|
||||
//
|
||||
// "(" -> Shift(S13)
|
||||
// Num -> Shift(S14)
|
||||
//
|
||||
// Term -> S27
|
||||
pub fn __state22<
|
||||
__TOKENS: Iterator<Item=Result<((), Tok, ()),()>>,
|
||||
>(
|
||||
@ -1067,6 +1612,27 @@ mod __parse__Expr {
|
||||
return Ok(__result);
|
||||
}
|
||||
|
||||
// State 23
|
||||
// Factor = Factor "/" (*) Term [")"]
|
||||
// Factor = Factor "/" (*) Term ["*"]
|
||||
// Factor = Factor "/" (*) Term ["+"]
|
||||
// Factor = Factor "/" (*) Term ["-"]
|
||||
// Factor = Factor "/" (*) Term ["/"]
|
||||
// Term = (*) "(" Expr ")" [")"]
|
||||
// Term = (*) "(" Expr ")" ["*"]
|
||||
// Term = (*) "(" Expr ")" ["+"]
|
||||
// Term = (*) "(" Expr ")" ["-"]
|
||||
// Term = (*) "(" Expr ")" ["/"]
|
||||
// Term = (*) Num [")"]
|
||||
// Term = (*) Num ["*"]
|
||||
// Term = (*) Num ["+"]
|
||||
// Term = (*) Num ["-"]
|
||||
// Term = (*) Num ["/"]
|
||||
//
|
||||
// "(" -> Shift(S13)
|
||||
// Num -> Shift(S14)
|
||||
//
|
||||
// Term -> S28
|
||||
pub fn __state23<
|
||||
__TOKENS: Iterator<Item=Result<((), Tok, ()),()>>,
|
||||
>(
|
||||
@ -1113,6 +1679,23 @@ mod __parse__Expr {
|
||||
return Ok(__result);
|
||||
}
|
||||
|
||||
// State 24
|
||||
// Expr = Expr (*) "+" Factor [")"]
|
||||
// Expr = Expr (*) "+" Factor ["+"]
|
||||
// Expr = Expr (*) "+" Factor ["-"]
|
||||
// Expr = Expr (*) "-" Factor [")"]
|
||||
// Expr = Expr (*) "-" Factor ["+"]
|
||||
// Expr = Expr (*) "-" Factor ["-"]
|
||||
// Term = "(" Expr (*) ")" [")"]
|
||||
// Term = "(" Expr (*) ")" ["*"]
|
||||
// Term = "(" Expr (*) ")" ["+"]
|
||||
// Term = "(" Expr (*) ")" ["-"]
|
||||
// Term = "(" Expr (*) ")" ["/"]
|
||||
//
|
||||
// ")" -> Shift(S29)
|
||||
// "+" -> Shift(S20)
|
||||
// "-" -> Shift(S21)
|
||||
//
|
||||
pub fn __state24<
|
||||
__TOKENS: Iterator<Item=Result<((), Tok, ()),()>>,
|
||||
>(
|
||||
@ -1147,6 +1730,27 @@ mod __parse__Expr {
|
||||
return Ok(__result);
|
||||
}
|
||||
|
||||
// State 25
|
||||
// Expr = Expr "+" Factor (*) [")"]
|
||||
// Expr = Expr "+" Factor (*) ["+"]
|
||||
// Expr = Expr "+" Factor (*) ["-"]
|
||||
// Factor = Factor (*) "*" Term [")"]
|
||||
// Factor = Factor (*) "*" Term ["*"]
|
||||
// Factor = Factor (*) "*" Term ["+"]
|
||||
// Factor = Factor (*) "*" Term ["-"]
|
||||
// Factor = Factor (*) "*" Term ["/"]
|
||||
// Factor = Factor (*) "/" Term [")"]
|
||||
// Factor = Factor (*) "/" Term ["*"]
|
||||
// Factor = Factor (*) "/" Term ["+"]
|
||||
// Factor = Factor (*) "/" Term ["-"]
|
||||
// Factor = Factor (*) "/" Term ["/"]
|
||||
//
|
||||
// ")" -> Reduce(Expr = Expr, "+", Factor => ActionFn(2);)
|
||||
// "*" -> Shift(S22)
|
||||
// "+" -> Reduce(Expr = Expr, "+", Factor => ActionFn(2);)
|
||||
// "-" -> Reduce(Expr = Expr, "+", Factor => ActionFn(2);)
|
||||
// "/" -> Shift(S23)
|
||||
//
|
||||
pub fn __state25<
|
||||
__TOKENS: Iterator<Item=Result<((), Tok, ()),()>>,
|
||||
>(
|
||||
@ -1194,6 +1798,27 @@ mod __parse__Expr {
|
||||
return Ok(__result);
|
||||
}
|
||||
|
||||
// State 26
|
||||
// Expr = Expr "-" Factor (*) [")"]
|
||||
// Expr = Expr "-" Factor (*) ["+"]
|
||||
// Expr = Expr "-" Factor (*) ["-"]
|
||||
// Factor = Factor (*) "*" Term [")"]
|
||||
// Factor = Factor (*) "*" Term ["*"]
|
||||
// Factor = Factor (*) "*" Term ["+"]
|
||||
// Factor = Factor (*) "*" Term ["-"]
|
||||
// Factor = Factor (*) "*" Term ["/"]
|
||||
// Factor = Factor (*) "/" Term [")"]
|
||||
// Factor = Factor (*) "/" Term ["*"]
|
||||
// Factor = Factor (*) "/" Term ["+"]
|
||||
// Factor = Factor (*) "/" Term ["-"]
|
||||
// Factor = Factor (*) "/" Term ["/"]
|
||||
//
|
||||
// ")" -> Reduce(Expr = Expr, "-", Factor => ActionFn(1);)
|
||||
// "*" -> Shift(S22)
|
||||
// "+" -> Reduce(Expr = Expr, "-", Factor => ActionFn(1);)
|
||||
// "-" -> Reduce(Expr = Expr, "-", Factor => ActionFn(1);)
|
||||
// "/" -> Shift(S23)
|
||||
//
|
||||
pub fn __state26<
|
||||
__TOKENS: Iterator<Item=Result<((), Tok, ()),()>>,
|
||||
>(
|
||||
@ -1241,6 +1866,19 @@ mod __parse__Expr {
|
||||
return Ok(__result);
|
||||
}
|
||||
|
||||
// State 27
|
||||
// Factor = Factor "*" Term (*) [")"]
|
||||
// Factor = Factor "*" Term (*) ["*"]
|
||||
// Factor = Factor "*" Term (*) ["+"]
|
||||
// Factor = Factor "*" Term (*) ["-"]
|
||||
// Factor = Factor "*" Term (*) ["/"]
|
||||
//
|
||||
// ")" -> Reduce(Factor = Factor, "*", Term => ActionFn(4);)
|
||||
// "*" -> Reduce(Factor = Factor, "*", Term => ActionFn(4);)
|
||||
// "+" -> Reduce(Factor = Factor, "*", Term => ActionFn(4);)
|
||||
// "-" -> Reduce(Factor = Factor, "*", Term => ActionFn(4);)
|
||||
// "/" -> Reduce(Factor = Factor, "*", Term => ActionFn(4);)
|
||||
//
|
||||
pub fn __state27<
|
||||
__TOKENS: Iterator<Item=Result<((), Tok, ()),()>>,
|
||||
>(
|
||||
@ -1281,6 +1919,19 @@ mod __parse__Expr {
|
||||
}
|
||||
}
|
||||
|
||||
// State 28
|
||||
// Factor = Factor "/" Term (*) [")"]
|
||||
// Factor = Factor "/" Term (*) ["*"]
|
||||
// Factor = Factor "/" Term (*) ["+"]
|
||||
// Factor = Factor "/" Term (*) ["-"]
|
||||
// Factor = Factor "/" Term (*) ["/"]
|
||||
//
|
||||
// ")" -> Reduce(Factor = Factor, "/", Term => ActionFn(5);)
|
||||
// "*" -> Reduce(Factor = Factor, "/", Term => ActionFn(5);)
|
||||
// "+" -> Reduce(Factor = Factor, "/", Term => ActionFn(5);)
|
||||
// "-" -> Reduce(Factor = Factor, "/", Term => ActionFn(5);)
|
||||
// "/" -> Reduce(Factor = Factor, "/", Term => ActionFn(5);)
|
||||
//
|
||||
pub fn __state28<
|
||||
__TOKENS: Iterator<Item=Result<((), Tok, ()),()>>,
|
||||
>(
|
||||
@ -1321,6 +1972,19 @@ mod __parse__Expr {
|
||||
}
|
||||
}
|
||||
|
||||
// State 29
|
||||
// Term = "(" Expr ")" (*) [")"]
|
||||
// Term = "(" Expr ")" (*) ["*"]
|
||||
// Term = "(" Expr ")" (*) ["+"]
|
||||
// Term = "(" Expr ")" (*) ["-"]
|
||||
// Term = "(" Expr ")" (*) ["/"]
|
||||
//
|
||||
// ")" -> Reduce(Term = "(", Expr, ")" => ActionFn(8);)
|
||||
// "*" -> Reduce(Term = "(", Expr, ")" => ActionFn(8);)
|
||||
// "+" -> Reduce(Term = "(", Expr, ")" => ActionFn(8);)
|
||||
// "-" -> Reduce(Term = "(", Expr, ")" => ActionFn(8);)
|
||||
// "/" -> Reduce(Term = "(", Expr, ")" => ActionFn(8);)
|
||||
//
|
||||
pub fn __state29<
|
||||
__TOKENS: Iterator<Item=Result<((), Tok, ()),()>>,
|
||||
>(
|
||||
|
File diff suppressed because it is too large
Load Diff
@ -49,6 +49,49 @@ mod __parse__Expr {
|
||||
____Expr((usize, F, usize)),
|
||||
}
|
||||
|
||||
// State 0
|
||||
// Expr = (*) Expr "+" Factor [EOF]
|
||||
// Expr = (*) Expr "+" Factor ["+"]
|
||||
// Expr = (*) Expr "+" Factor ["-"]
|
||||
// Expr = (*) Expr "-" Factor [EOF]
|
||||
// Expr = (*) Expr "-" Factor ["+"]
|
||||
// Expr = (*) Expr "-" Factor ["-"]
|
||||
// Expr = (*) Factor [EOF]
|
||||
// Expr = (*) Factor ["+"]
|
||||
// Expr = (*) Factor ["-"]
|
||||
// Factor = (*) Factor "*" Term [EOF]
|
||||
// Factor = (*) Factor "*" Term ["*"]
|
||||
// Factor = (*) Factor "*" Term ["+"]
|
||||
// Factor = (*) Factor "*" Term ["-"]
|
||||
// Factor = (*) Factor "*" Term ["/"]
|
||||
// Factor = (*) Factor "/" Term [EOF]
|
||||
// Factor = (*) Factor "/" Term ["*"]
|
||||
// Factor = (*) Factor "/" Term ["+"]
|
||||
// Factor = (*) Factor "/" Term ["-"]
|
||||
// Factor = (*) Factor "/" Term ["/"]
|
||||
// Factor = (*) Term [EOF]
|
||||
// Factor = (*) Term ["*"]
|
||||
// Factor = (*) Term ["+"]
|
||||
// Factor = (*) Term ["-"]
|
||||
// Factor = (*) Term ["/"]
|
||||
// Term = (*) "(" Expr ")" [EOF]
|
||||
// Term = (*) "(" Expr ")" ["*"]
|
||||
// Term = (*) "(" Expr ")" ["+"]
|
||||
// Term = (*) "(" Expr ")" ["-"]
|
||||
// Term = (*) "(" Expr ")" ["/"]
|
||||
// Term = (*) r#"[0-9]+"# [EOF]
|
||||
// Term = (*) r#"[0-9]+"# ["*"]
|
||||
// Term = (*) r#"[0-9]+"# ["+"]
|
||||
// Term = (*) r#"[0-9]+"# ["-"]
|
||||
// Term = (*) r#"[0-9]+"# ["/"]
|
||||
// __Expr = (*) Expr [EOF]
|
||||
//
|
||||
// "(" -> Shift(S4)
|
||||
// r#"[0-9]+"# -> Shift(S5)
|
||||
//
|
||||
// Expr -> S1
|
||||
// Factor -> S2
|
||||
// Term -> S3
|
||||
pub fn __state0<
|
||||
'input,
|
||||
F,
|
||||
@ -99,6 +142,19 @@ mod __parse__Expr {
|
||||
}
|
||||
}
|
||||
|
||||
// State 1
|
||||
// Expr = Expr (*) "+" Factor [EOF]
|
||||
// Expr = Expr (*) "+" Factor ["+"]
|
||||
// Expr = Expr (*) "+" Factor ["-"]
|
||||
// Expr = Expr (*) "-" Factor [EOF]
|
||||
// Expr = Expr (*) "-" Factor ["+"]
|
||||
// Expr = Expr (*) "-" Factor ["-"]
|
||||
// __Expr = Expr (*) [EOF]
|
||||
//
|
||||
// EOF -> Reduce(__Expr = Expr => ActionFn(0);)
|
||||
// "+" -> Shift(S6)
|
||||
// "-" -> Shift(S7)
|
||||
//
|
||||
pub fn __state1<
|
||||
'input,
|
||||
F,
|
||||
@ -143,6 +199,27 @@ mod __parse__Expr {
|
||||
return Ok(__result);
|
||||
}
|
||||
|
||||
// State 2
|
||||
// Expr = Factor (*) [EOF]
|
||||
// Expr = Factor (*) ["+"]
|
||||
// Expr = Factor (*) ["-"]
|
||||
// Factor = Factor (*) "*" Term [EOF]
|
||||
// Factor = Factor (*) "*" Term ["*"]
|
||||
// Factor = Factor (*) "*" Term ["+"]
|
||||
// Factor = Factor (*) "*" Term ["-"]
|
||||
// Factor = Factor (*) "*" Term ["/"]
|
||||
// Factor = Factor (*) "/" Term [EOF]
|
||||
// Factor = Factor (*) "/" Term ["*"]
|
||||
// Factor = Factor (*) "/" Term ["+"]
|
||||
// Factor = Factor (*) "/" Term ["-"]
|
||||
// Factor = Factor (*) "/" Term ["/"]
|
||||
//
|
||||
// EOF -> Reduce(Expr = Factor => ActionFn(3);)
|
||||
// "*" -> Shift(S8)
|
||||
// "+" -> Reduce(Expr = Factor => ActionFn(3);)
|
||||
// "-" -> Reduce(Expr = Factor => ActionFn(3);)
|
||||
// "/" -> Shift(S9)
|
||||
//
|
||||
pub fn __state2<
|
||||
'input,
|
||||
F,
|
||||
@ -189,6 +266,19 @@ mod __parse__Expr {
|
||||
return Ok(__result);
|
||||
}
|
||||
|
||||
// State 3
|
||||
// Factor = Term (*) [EOF]
|
||||
// Factor = Term (*) ["*"]
|
||||
// Factor = Term (*) ["+"]
|
||||
// Factor = Term (*) ["-"]
|
||||
// Factor = Term (*) ["/"]
|
||||
//
|
||||
// EOF -> Reduce(Factor = Term => ActionFn(6);)
|
||||
// "*" -> Reduce(Factor = Term => ActionFn(6);)
|
||||
// "+" -> Reduce(Factor = Term => ActionFn(6);)
|
||||
// "-" -> Reduce(Factor = Term => ActionFn(6);)
|
||||
// "/" -> Reduce(Factor = Term => ActionFn(6);)
|
||||
//
|
||||
pub fn __state3<
|
||||
'input,
|
||||
F,
|
||||
@ -228,6 +318,53 @@ mod __parse__Expr {
|
||||
}
|
||||
}
|
||||
|
||||
// State 4
|
||||
// Expr = (*) Expr "+" Factor [")"]
|
||||
// Expr = (*) Expr "+" Factor ["+"]
|
||||
// Expr = (*) Expr "+" Factor ["-"]
|
||||
// Expr = (*) Expr "-" Factor [")"]
|
||||
// Expr = (*) Expr "-" Factor ["+"]
|
||||
// Expr = (*) Expr "-" Factor ["-"]
|
||||
// Expr = (*) Factor [")"]
|
||||
// Expr = (*) Factor ["+"]
|
||||
// Expr = (*) Factor ["-"]
|
||||
// Factor = (*) Factor "*" Term [")"]
|
||||
// Factor = (*) Factor "*" Term ["*"]
|
||||
// Factor = (*) Factor "*" Term ["+"]
|
||||
// Factor = (*) Factor "*" Term ["-"]
|
||||
// Factor = (*) Factor "*" Term ["/"]
|
||||
// Factor = (*) Factor "/" Term [")"]
|
||||
// Factor = (*) Factor "/" Term ["*"]
|
||||
// Factor = (*) Factor "/" Term ["+"]
|
||||
// Factor = (*) Factor "/" Term ["-"]
|
||||
// Factor = (*) Factor "/" Term ["/"]
|
||||
// Factor = (*) Term [")"]
|
||||
// Factor = (*) Term ["*"]
|
||||
// Factor = (*) Term ["+"]
|
||||
// Factor = (*) Term ["-"]
|
||||
// Factor = (*) Term ["/"]
|
||||
// Term = (*) "(" Expr ")" [")"]
|
||||
// Term = (*) "(" Expr ")" ["*"]
|
||||
// Term = (*) "(" Expr ")" ["+"]
|
||||
// Term = (*) "(" Expr ")" ["-"]
|
||||
// Term = (*) "(" Expr ")" ["/"]
|
||||
// Term = "(" (*) Expr ")" [EOF]
|
||||
// Term = "(" (*) Expr ")" ["*"]
|
||||
// Term = "(" (*) Expr ")" ["+"]
|
||||
// Term = "(" (*) Expr ")" ["-"]
|
||||
// Term = "(" (*) Expr ")" ["/"]
|
||||
// Term = (*) r#"[0-9]+"# [")"]
|
||||
// Term = (*) r#"[0-9]+"# ["*"]
|
||||
// Term = (*) r#"[0-9]+"# ["+"]
|
||||
// Term = (*) r#"[0-9]+"# ["-"]
|
||||
// Term = (*) r#"[0-9]+"# ["/"]
|
||||
//
|
||||
// "(" -> Shift(S13)
|
||||
// r#"[0-9]+"# -> Shift(S14)
|
||||
//
|
||||
// Expr -> S10
|
||||
// Factor -> S11
|
||||
// Term -> S12
|
||||
pub fn __state4<
|
||||
'input,
|
||||
F,
|
||||
@ -284,6 +421,19 @@ mod __parse__Expr {
|
||||
return Ok(__result);
|
||||
}
|
||||
|
||||
// State 5
|
||||
// Term = r#"[0-9]+"# (*) [EOF]
|
||||
// Term = r#"[0-9]+"# (*) ["*"]
|
||||
// Term = r#"[0-9]+"# (*) ["+"]
|
||||
// Term = r#"[0-9]+"# (*) ["-"]
|
||||
// Term = r#"[0-9]+"# (*) ["/"]
|
||||
//
|
||||
// EOF -> Reduce(Term = r#"[0-9]+"# => ActionFn(7);)
|
||||
// "*" -> Reduce(Term = r#"[0-9]+"# => ActionFn(7);)
|
||||
// "+" -> Reduce(Term = r#"[0-9]+"# => ActionFn(7);)
|
||||
// "-" -> Reduce(Term = r#"[0-9]+"# => ActionFn(7);)
|
||||
// "/" -> Reduce(Term = r#"[0-9]+"# => ActionFn(7);)
|
||||
//
|
||||
pub fn __state5<
|
||||
'input,
|
||||
F,
|
||||
@ -327,6 +477,41 @@ mod __parse__Expr {
|
||||
}
|
||||
}
|
||||
|
||||
// State 6
|
||||
// Expr = Expr "+" (*) Factor [EOF]
|
||||
// Expr = Expr "+" (*) Factor ["+"]
|
||||
// Expr = Expr "+" (*) Factor ["-"]
|
||||
// Factor = (*) Factor "*" Term [EOF]
|
||||
// Factor = (*) Factor "*" Term ["*"]
|
||||
// Factor = (*) Factor "*" Term ["+"]
|
||||
// Factor = (*) Factor "*" Term ["-"]
|
||||
// Factor = (*) Factor "*" Term ["/"]
|
||||
// Factor = (*) Factor "/" Term [EOF]
|
||||
// Factor = (*) Factor "/" Term ["*"]
|
||||
// Factor = (*) Factor "/" Term ["+"]
|
||||
// Factor = (*) Factor "/" Term ["-"]
|
||||
// Factor = (*) Factor "/" Term ["/"]
|
||||
// Factor = (*) Term [EOF]
|
||||
// Factor = (*) Term ["*"]
|
||||
// Factor = (*) Term ["+"]
|
||||
// Factor = (*) Term ["-"]
|
||||
// Factor = (*) Term ["/"]
|
||||
// Term = (*) "(" Expr ")" [EOF]
|
||||
// Term = (*) "(" Expr ")" ["*"]
|
||||
// Term = (*) "(" Expr ")" ["+"]
|
||||
// Term = (*) "(" Expr ")" ["-"]
|
||||
// Term = (*) "(" Expr ")" ["/"]
|
||||
// Term = (*) r#"[0-9]+"# [EOF]
|
||||
// Term = (*) r#"[0-9]+"# ["*"]
|
||||
// Term = (*) r#"[0-9]+"# ["+"]
|
||||
// Term = (*) r#"[0-9]+"# ["-"]
|
||||
// Term = (*) r#"[0-9]+"# ["/"]
|
||||
//
|
||||
// "(" -> Shift(S4)
|
||||
// r#"[0-9]+"# -> Shift(S5)
|
||||
//
|
||||
// Factor -> S15
|
||||
// Term -> S3
|
||||
pub fn __state6<
|
||||
'input,
|
||||
F,
|
||||
@ -380,6 +565,41 @@ mod __parse__Expr {
|
||||
return Ok(__result);
|
||||
}
|
||||
|
||||
// State 7
|
||||
// Expr = Expr "-" (*) Factor [EOF]
|
||||
// Expr = Expr "-" (*) Factor ["+"]
|
||||
// Expr = Expr "-" (*) Factor ["-"]
|
||||
// Factor = (*) Factor "*" Term [EOF]
|
||||
// Factor = (*) Factor "*" Term ["*"]
|
||||
// Factor = (*) Factor "*" Term ["+"]
|
||||
// Factor = (*) Factor "*" Term ["-"]
|
||||
// Factor = (*) Factor "*" Term ["/"]
|
||||
// Factor = (*) Factor "/" Term [EOF]
|
||||
// Factor = (*) Factor "/" Term ["*"]
|
||||
// Factor = (*) Factor "/" Term ["+"]
|
||||
// Factor = (*) Factor "/" Term ["-"]
|
||||
// Factor = (*) Factor "/" Term ["/"]
|
||||
// Factor = (*) Term [EOF]
|
||||
// Factor = (*) Term ["*"]
|
||||
// Factor = (*) Term ["+"]
|
||||
// Factor = (*) Term ["-"]
|
||||
// Factor = (*) Term ["/"]
|
||||
// Term = (*) "(" Expr ")" [EOF]
|
||||
// Term = (*) "(" Expr ")" ["*"]
|
||||
// Term = (*) "(" Expr ")" ["+"]
|
||||
// Term = (*) "(" Expr ")" ["-"]
|
||||
// Term = (*) "(" Expr ")" ["/"]
|
||||
// Term = (*) r#"[0-9]+"# [EOF]
|
||||
// Term = (*) r#"[0-9]+"# ["*"]
|
||||
// Term = (*) r#"[0-9]+"# ["+"]
|
||||
// Term = (*) r#"[0-9]+"# ["-"]
|
||||
// Term = (*) r#"[0-9]+"# ["/"]
|
||||
//
|
||||
// "(" -> Shift(S4)
|
||||
// r#"[0-9]+"# -> Shift(S5)
|
||||
//
|
||||
// Factor -> S16
|
||||
// Term -> S3
|
||||
pub fn __state7<
|
||||
'input,
|
||||
F,
|
||||
@ -433,6 +653,27 @@ mod __parse__Expr {
|
||||
return Ok(__result);
|
||||
}
|
||||
|
||||
// State 8
|
||||
// Factor = Factor "*" (*) Term [EOF]
|
||||
// Factor = Factor "*" (*) Term ["*"]
|
||||
// Factor = Factor "*" (*) Term ["+"]
|
||||
// Factor = Factor "*" (*) Term ["-"]
|
||||
// Factor = Factor "*" (*) Term ["/"]
|
||||
// Term = (*) "(" Expr ")" [EOF]
|
||||
// Term = (*) "(" Expr ")" ["*"]
|
||||
// Term = (*) "(" Expr ")" ["+"]
|
||||
// Term = (*) "(" Expr ")" ["-"]
|
||||
// Term = (*) "(" Expr ")" ["/"]
|
||||
// Term = (*) r#"[0-9]+"# [EOF]
|
||||
// Term = (*) r#"[0-9]+"# ["*"]
|
||||
// Term = (*) r#"[0-9]+"# ["+"]
|
||||
// Term = (*) r#"[0-9]+"# ["-"]
|
||||
// Term = (*) r#"[0-9]+"# ["/"]
|
||||
//
|
||||
// "(" -> Shift(S4)
|
||||
// r#"[0-9]+"# -> Shift(S5)
|
||||
//
|
||||
// Term -> S17
|
||||
pub fn __state8<
|
||||
'input,
|
||||
F,
|
||||
@ -482,6 +723,27 @@ mod __parse__Expr {
|
||||
return Ok(__result);
|
||||
}
|
||||
|
||||
// State 9
|
||||
// Factor = Factor "/" (*) Term [EOF]
|
||||
// Factor = Factor "/" (*) Term ["*"]
|
||||
// Factor = Factor "/" (*) Term ["+"]
|
||||
// Factor = Factor "/" (*) Term ["-"]
|
||||
// Factor = Factor "/" (*) Term ["/"]
|
||||
// Term = (*) "(" Expr ")" [EOF]
|
||||
// Term = (*) "(" Expr ")" ["*"]
|
||||
// Term = (*) "(" Expr ")" ["+"]
|
||||
// Term = (*) "(" Expr ")" ["-"]
|
||||
// Term = (*) "(" Expr ")" ["/"]
|
||||
// Term = (*) r#"[0-9]+"# [EOF]
|
||||
// Term = (*) r#"[0-9]+"# ["*"]
|
||||
// Term = (*) r#"[0-9]+"# ["+"]
|
||||
// Term = (*) r#"[0-9]+"# ["-"]
|
||||
// Term = (*) r#"[0-9]+"# ["/"]
|
||||
//
|
||||
// "(" -> Shift(S4)
|
||||
// r#"[0-9]+"# -> Shift(S5)
|
||||
//
|
||||
// Term -> S18
|
||||
pub fn __state9<
|
||||
'input,
|
||||
F,
|
||||
@ -531,6 +793,23 @@ mod __parse__Expr {
|
||||
return Ok(__result);
|
||||
}
|
||||
|
||||
// State 10
|
||||
// Expr = Expr (*) "+" Factor [")"]
|
||||
// Expr = Expr (*) "+" Factor ["+"]
|
||||
// Expr = Expr (*) "+" Factor ["-"]
|
||||
// Expr = Expr (*) "-" Factor [")"]
|
||||
// Expr = Expr (*) "-" Factor ["+"]
|
||||
// Expr = Expr (*) "-" Factor ["-"]
|
||||
// Term = "(" Expr (*) ")" [EOF]
|
||||
// Term = "(" Expr (*) ")" ["*"]
|
||||
// Term = "(" Expr (*) ")" ["+"]
|
||||
// Term = "(" Expr (*) ")" ["-"]
|
||||
// Term = "(" Expr (*) ")" ["/"]
|
||||
//
|
||||
// ")" -> Shift(S19)
|
||||
// "+" -> Shift(S20)
|
||||
// "-" -> Shift(S21)
|
||||
//
|
||||
pub fn __state10<
|
||||
'input,
|
||||
F,
|
||||
@ -568,6 +847,27 @@ mod __parse__Expr {
|
||||
return Ok(__result);
|
||||
}
|
||||
|
||||
// State 11
|
||||
// Expr = Factor (*) [")"]
|
||||
// Expr = Factor (*) ["+"]
|
||||
// Expr = Factor (*) ["-"]
|
||||
// Factor = Factor (*) "*" Term [")"]
|
||||
// Factor = Factor (*) "*" Term ["*"]
|
||||
// Factor = Factor (*) "*" Term ["+"]
|
||||
// Factor = Factor (*) "*" Term ["-"]
|
||||
// Factor = Factor (*) "*" Term ["/"]
|
||||
// Factor = Factor (*) "/" Term [")"]
|
||||
// Factor = Factor (*) "/" Term ["*"]
|
||||
// Factor = Factor (*) "/" Term ["+"]
|
||||
// Factor = Factor (*) "/" Term ["-"]
|
||||
// Factor = Factor (*) "/" Term ["/"]
|
||||
//
|
||||
// ")" -> Reduce(Expr = Factor => ActionFn(3);)
|
||||
// "*" -> Shift(S22)
|
||||
// "+" -> Reduce(Expr = Factor => ActionFn(3);)
|
||||
// "-" -> Reduce(Expr = Factor => ActionFn(3);)
|
||||
// "/" -> Shift(S23)
|
||||
//
|
||||
pub fn __state11<
|
||||
'input,
|
||||
F,
|
||||
@ -614,6 +914,19 @@ mod __parse__Expr {
|
||||
return Ok(__result);
|
||||
}
|
||||
|
||||
// State 12
|
||||
// Factor = Term (*) [")"]
|
||||
// Factor = Term (*) ["*"]
|
||||
// Factor = Term (*) ["+"]
|
||||
// Factor = Term (*) ["-"]
|
||||
// Factor = Term (*) ["/"]
|
||||
//
|
||||
// ")" -> Reduce(Factor = Term => ActionFn(6);)
|
||||
// "*" -> Reduce(Factor = Term => ActionFn(6);)
|
||||
// "+" -> Reduce(Factor = Term => ActionFn(6);)
|
||||
// "-" -> Reduce(Factor = Term => ActionFn(6);)
|
||||
// "/" -> Reduce(Factor = Term => ActionFn(6);)
|
||||
//
|
||||
pub fn __state12<
|
||||
'input,
|
||||
F,
|
||||
@ -653,6 +966,53 @@ mod __parse__Expr {
|
||||
}
|
||||
}
|
||||
|
||||
// State 13
|
||||
// Expr = (*) Expr "+" Factor [")"]
|
||||
// Expr = (*) Expr "+" Factor ["+"]
|
||||
// Expr = (*) Expr "+" Factor ["-"]
|
||||
// Expr = (*) Expr "-" Factor [")"]
|
||||
// Expr = (*) Expr "-" Factor ["+"]
|
||||
// Expr = (*) Expr "-" Factor ["-"]
|
||||
// Expr = (*) Factor [")"]
|
||||
// Expr = (*) Factor ["+"]
|
||||
// Expr = (*) Factor ["-"]
|
||||
// Factor = (*) Factor "*" Term [")"]
|
||||
// Factor = (*) Factor "*" Term ["*"]
|
||||
// Factor = (*) Factor "*" Term ["+"]
|
||||
// Factor = (*) Factor "*" Term ["-"]
|
||||
// Factor = (*) Factor "*" Term ["/"]
|
||||
// Factor = (*) Factor "/" Term [")"]
|
||||
// Factor = (*) Factor "/" Term ["*"]
|
||||
// Factor = (*) Factor "/" Term ["+"]
|
||||
// Factor = (*) Factor "/" Term ["-"]
|
||||
// Factor = (*) Factor "/" Term ["/"]
|
||||
// Factor = (*) Term [")"]
|
||||
// Factor = (*) Term ["*"]
|
||||
// Factor = (*) Term ["+"]
|
||||
// Factor = (*) Term ["-"]
|
||||
// Factor = (*) Term ["/"]
|
||||
// Term = (*) "(" Expr ")" [")"]
|
||||
// Term = (*) "(" Expr ")" ["*"]
|
||||
// Term = (*) "(" Expr ")" ["+"]
|
||||
// Term = (*) "(" Expr ")" ["-"]
|
||||
// Term = (*) "(" Expr ")" ["/"]
|
||||
// Term = "(" (*) Expr ")" [")"]
|
||||
// Term = "(" (*) Expr ")" ["*"]
|
||||
// Term = "(" (*) Expr ")" ["+"]
|
||||
// Term = "(" (*) Expr ")" ["-"]
|
||||
// Term = "(" (*) Expr ")" ["/"]
|
||||
// Term = (*) r#"[0-9]+"# [")"]
|
||||
// Term = (*) r#"[0-9]+"# ["*"]
|
||||
// Term = (*) r#"[0-9]+"# ["+"]
|
||||
// Term = (*) r#"[0-9]+"# ["-"]
|
||||
// Term = (*) r#"[0-9]+"# ["/"]
|
||||
//
|
||||
// "(" -> Shift(S13)
|
||||
// r#"[0-9]+"# -> Shift(S14)
|
||||
//
|
||||
// Expr -> S24
|
||||
// Factor -> S11
|
||||
// Term -> S12
|
||||
pub fn __state13<
|
||||
'input,
|
||||
F,
|
||||
@ -709,6 +1069,19 @@ mod __parse__Expr {
|
||||
return Ok(__result);
|
||||
}
|
||||
|
||||
// State 14
|
||||
// Term = r#"[0-9]+"# (*) [")"]
|
||||
// Term = r#"[0-9]+"# (*) ["*"]
|
||||
// Term = r#"[0-9]+"# (*) ["+"]
|
||||
// Term = r#"[0-9]+"# (*) ["-"]
|
||||
// Term = r#"[0-9]+"# (*) ["/"]
|
||||
//
|
||||
// ")" -> Reduce(Term = r#"[0-9]+"# => ActionFn(7);)
|
||||
// "*" -> Reduce(Term = r#"[0-9]+"# => ActionFn(7);)
|
||||
// "+" -> Reduce(Term = r#"[0-9]+"# => ActionFn(7);)
|
||||
// "-" -> Reduce(Term = r#"[0-9]+"# => ActionFn(7);)
|
||||
// "/" -> Reduce(Term = r#"[0-9]+"# => ActionFn(7);)
|
||||
//
|
||||
pub fn __state14<
|
||||
'input,
|
||||
F,
|
||||
@ -752,6 +1125,27 @@ mod __parse__Expr {
|
||||
}
|
||||
}
|
||||
|
||||
// State 15
|
||||
// Expr = Expr "+" Factor (*) [EOF]
|
||||
// Expr = Expr "+" Factor (*) ["+"]
|
||||
// Expr = Expr "+" Factor (*) ["-"]
|
||||
// Factor = Factor (*) "*" Term [EOF]
|
||||
// Factor = Factor (*) "*" Term ["*"]
|
||||
// Factor = Factor (*) "*" Term ["+"]
|
||||
// Factor = Factor (*) "*" Term ["-"]
|
||||
// Factor = Factor (*) "*" Term ["/"]
|
||||
// Factor = Factor (*) "/" Term [EOF]
|
||||
// Factor = Factor (*) "/" Term ["*"]
|
||||
// Factor = Factor (*) "/" Term ["+"]
|
||||
// Factor = Factor (*) "/" Term ["-"]
|
||||
// Factor = Factor (*) "/" Term ["/"]
|
||||
//
|
||||
// EOF -> Reduce(Expr = Expr, "+", Factor => ActionFn(2);)
|
||||
// "*" -> Shift(S8)
|
||||
// "+" -> Reduce(Expr = Expr, "+", Factor => ActionFn(2);)
|
||||
// "-" -> Reduce(Expr = Expr, "+", Factor => ActionFn(2);)
|
||||
// "/" -> Shift(S9)
|
||||
//
|
||||
pub fn __state15<
|
||||
'input,
|
||||
F,
|
||||
@ -802,6 +1196,27 @@ mod __parse__Expr {
|
||||
return Ok(__result);
|
||||
}
|
||||
|
||||
// State 16
|
||||
// Expr = Expr "-" Factor (*) [EOF]
|
||||
// Expr = Expr "-" Factor (*) ["+"]
|
||||
// Expr = Expr "-" Factor (*) ["-"]
|
||||
// Factor = Factor (*) "*" Term [EOF]
|
||||
// Factor = Factor (*) "*" Term ["*"]
|
||||
// Factor = Factor (*) "*" Term ["+"]
|
||||
// Factor = Factor (*) "*" Term ["-"]
|
||||
// Factor = Factor (*) "*" Term ["/"]
|
||||
// Factor = Factor (*) "/" Term [EOF]
|
||||
// Factor = Factor (*) "/" Term ["*"]
|
||||
// Factor = Factor (*) "/" Term ["+"]
|
||||
// Factor = Factor (*) "/" Term ["-"]
|
||||
// Factor = Factor (*) "/" Term ["/"]
|
||||
//
|
||||
// EOF -> Reduce(Expr = Expr, "-", Factor => ActionFn(1);)
|
||||
// "*" -> Shift(S8)
|
||||
// "+" -> Reduce(Expr = Expr, "-", Factor => ActionFn(1);)
|
||||
// "-" -> Reduce(Expr = Expr, "-", Factor => ActionFn(1);)
|
||||
// "/" -> Shift(S9)
|
||||
//
|
||||
pub fn __state16<
|
||||
'input,
|
||||
F,
|
||||
@ -852,6 +1267,19 @@ mod __parse__Expr {
|
||||
return Ok(__result);
|
||||
}
|
||||
|
||||
// State 17
|
||||
// Factor = Factor "*" Term (*) [EOF]
|
||||
// Factor = Factor "*" Term (*) ["*"]
|
||||
// Factor = Factor "*" Term (*) ["+"]
|
||||
// Factor = Factor "*" Term (*) ["-"]
|
||||
// Factor = Factor "*" Term (*) ["/"]
|
||||
//
|
||||
// EOF -> Reduce(Factor = Factor, "*", Term => ActionFn(4);)
|
||||
// "*" -> Reduce(Factor = Factor, "*", Term => ActionFn(4);)
|
||||
// "+" -> Reduce(Factor = Factor, "*", Term => ActionFn(4);)
|
||||
// "-" -> Reduce(Factor = Factor, "*", Term => ActionFn(4);)
|
||||
// "/" -> Reduce(Factor = Factor, "*", Term => ActionFn(4);)
|
||||
//
|
||||
pub fn __state17<
|
||||
'input,
|
||||
F,
|
||||
@ -895,6 +1323,19 @@ mod __parse__Expr {
|
||||
}
|
||||
}
|
||||
|
||||
// State 18
|
||||
// Factor = Factor "/" Term (*) [EOF]
|
||||
// Factor = Factor "/" Term (*) ["*"]
|
||||
// Factor = Factor "/" Term (*) ["+"]
|
||||
// Factor = Factor "/" Term (*) ["-"]
|
||||
// Factor = Factor "/" Term (*) ["/"]
|
||||
//
|
||||
// EOF -> Reduce(Factor = Factor, "/", Term => ActionFn(5);)
|
||||
// "*" -> Reduce(Factor = Factor, "/", Term => ActionFn(5);)
|
||||
// "+" -> Reduce(Factor = Factor, "/", Term => ActionFn(5);)
|
||||
// "-" -> Reduce(Factor = Factor, "/", Term => ActionFn(5);)
|
||||
// "/" -> Reduce(Factor = Factor, "/", Term => ActionFn(5);)
|
||||
//
|
||||
pub fn __state18<
|
||||
'input,
|
||||
F,
|
||||
@ -938,6 +1379,19 @@ mod __parse__Expr {
|
||||
}
|
||||
}
|
||||
|
||||
// State 19
|
||||
// Term = "(" Expr ")" (*) [EOF]
|
||||
// Term = "(" Expr ")" (*) ["*"]
|
||||
// Term = "(" Expr ")" (*) ["+"]
|
||||
// Term = "(" Expr ")" (*) ["-"]
|
||||
// Term = "(" Expr ")" (*) ["/"]
|
||||
//
|
||||
// EOF -> Reduce(Term = "(", Expr, ")" => ActionFn(8);)
|
||||
// "*" -> Reduce(Term = "(", Expr, ")" => ActionFn(8);)
|
||||
// "+" -> Reduce(Term = "(", Expr, ")" => ActionFn(8);)
|
||||
// "-" -> Reduce(Term = "(", Expr, ")" => ActionFn(8);)
|
||||
// "/" -> Reduce(Term = "(", Expr, ")" => ActionFn(8);)
|
||||
//
|
||||
pub fn __state19<
|
||||
'input,
|
||||
F,
|
||||
@ -985,6 +1439,41 @@ mod __parse__Expr {
|
||||
}
|
||||
}
|
||||
|
||||
// State 20
|
||||
// Expr = Expr "+" (*) Factor [")"]
|
||||
// Expr = Expr "+" (*) Factor ["+"]
|
||||
// Expr = Expr "+" (*) Factor ["-"]
|
||||
// Factor = (*) Factor "*" Term [")"]
|
||||
// Factor = (*) Factor "*" Term ["*"]
|
||||
// Factor = (*) Factor "*" Term ["+"]
|
||||
// Factor = (*) Factor "*" Term ["-"]
|
||||
// Factor = (*) Factor "*" Term ["/"]
|
||||
// Factor = (*) Factor "/" Term [")"]
|
||||
// Factor = (*) Factor "/" Term ["*"]
|
||||
// Factor = (*) Factor "/" Term ["+"]
|
||||
// Factor = (*) Factor "/" Term ["-"]
|
||||
// Factor = (*) Factor "/" Term ["/"]
|
||||
// Factor = (*) Term [")"]
|
||||
// Factor = (*) Term ["*"]
|
||||
// Factor = (*) Term ["+"]
|
||||
// Factor = (*) Term ["-"]
|
||||
// Factor = (*) Term ["/"]
|
||||
// Term = (*) "(" Expr ")" [")"]
|
||||
// Term = (*) "(" Expr ")" ["*"]
|
||||
// Term = (*) "(" Expr ")" ["+"]
|
||||
// Term = (*) "(" Expr ")" ["-"]
|
||||
// Term = (*) "(" Expr ")" ["/"]
|
||||
// Term = (*) r#"[0-9]+"# [")"]
|
||||
// Term = (*) r#"[0-9]+"# ["*"]
|
||||
// Term = (*) r#"[0-9]+"# ["+"]
|
||||
// Term = (*) r#"[0-9]+"# ["-"]
|
||||
// Term = (*) r#"[0-9]+"# ["/"]
|
||||
//
|
||||
// "(" -> Shift(S13)
|
||||
// r#"[0-9]+"# -> Shift(S14)
|
||||
//
|
||||
// Factor -> S25
|
||||
// Term -> S12
|
||||
pub fn __state20<
|
||||
'input,
|
||||
F,
|
||||
@ -1038,6 +1527,41 @@ mod __parse__Expr {
|
||||
return Ok(__result);
|
||||
}
|
||||
|
||||
// State 21
|
||||
// Expr = Expr "-" (*) Factor [")"]
|
||||
// Expr = Expr "-" (*) Factor ["+"]
|
||||
// Expr = Expr "-" (*) Factor ["-"]
|
||||
// Factor = (*) Factor "*" Term [")"]
|
||||
// Factor = (*) Factor "*" Term ["*"]
|
||||
// Factor = (*) Factor "*" Term ["+"]
|
||||
// Factor = (*) Factor "*" Term ["-"]
|
||||
// Factor = (*) Factor "*" Term ["/"]
|
||||
// Factor = (*) Factor "/" Term [")"]
|
||||
// Factor = (*) Factor "/" Term ["*"]
|
||||
// Factor = (*) Factor "/" Term ["+"]
|
||||
// Factor = (*) Factor "/" Term ["-"]
|
||||
// Factor = (*) Factor "/" Term ["/"]
|
||||
// Factor = (*) Term [")"]
|
||||
// Factor = (*) Term ["*"]
|
||||
// Factor = (*) Term ["+"]
|
||||
// Factor = (*) Term ["-"]
|
||||
// Factor = (*) Term ["/"]
|
||||
// Term = (*) "(" Expr ")" [")"]
|
||||
// Term = (*) "(" Expr ")" ["*"]
|
||||
// Term = (*) "(" Expr ")" ["+"]
|
||||
// Term = (*) "(" Expr ")" ["-"]
|
||||
// Term = (*) "(" Expr ")" ["/"]
|
||||
// Term = (*) r#"[0-9]+"# [")"]
|
||||
// Term = (*) r#"[0-9]+"# ["*"]
|
||||
// Term = (*) r#"[0-9]+"# ["+"]
|
||||
// Term = (*) r#"[0-9]+"# ["-"]
|
||||
// Term = (*) r#"[0-9]+"# ["/"]
|
||||
//
|
||||
// "(" -> Shift(S13)
|
||||
// r#"[0-9]+"# -> Shift(S14)
|
||||
//
|
||||
// Factor -> S26
|
||||
// Term -> S12
|
||||
pub fn __state21<
|
||||
'input,
|
||||
F,
|
||||
@ -1091,6 +1615,27 @@ mod __parse__Expr {
|
||||
return Ok(__result);
|
||||
}
|
||||
|
||||
// State 22
|
||||
// Factor = Factor "*" (*) Term [")"]
|
||||
// Factor = Factor "*" (*) Term ["*"]
|
||||
// Factor = Factor "*" (*) Term ["+"]
|
||||
// Factor = Factor "*" (*) Term ["-"]
|
||||
// Factor = Factor "*" (*) Term ["/"]
|
||||
// Term = (*) "(" Expr ")" [")"]
|
||||
// Term = (*) "(" Expr ")" ["*"]
|
||||
// Term = (*) "(" Expr ")" ["+"]
|
||||
// Term = (*) "(" Expr ")" ["-"]
|
||||
// Term = (*) "(" Expr ")" ["/"]
|
||||
// Term = (*) r#"[0-9]+"# [")"]
|
||||
// Term = (*) r#"[0-9]+"# ["*"]
|
||||
// Term = (*) r#"[0-9]+"# ["+"]
|
||||
// Term = (*) r#"[0-9]+"# ["-"]
|
||||
// Term = (*) r#"[0-9]+"# ["/"]
|
||||
//
|
||||
// "(" -> Shift(S13)
|
||||
// r#"[0-9]+"# -> Shift(S14)
|
||||
//
|
||||
// Term -> S27
|
||||
pub fn __state22<
|
||||
'input,
|
||||
F,
|
||||
@ -1140,6 +1685,27 @@ mod __parse__Expr {
|
||||
return Ok(__result);
|
||||
}
|
||||
|
||||
// State 23
|
||||
// Factor = Factor "/" (*) Term [")"]
|
||||
// Factor = Factor "/" (*) Term ["*"]
|
||||
// Factor = Factor "/" (*) Term ["+"]
|
||||
// Factor = Factor "/" (*) Term ["-"]
|
||||
// Factor = Factor "/" (*) Term ["/"]
|
||||
// Term = (*) "(" Expr ")" [")"]
|
||||
// Term = (*) "(" Expr ")" ["*"]
|
||||
// Term = (*) "(" Expr ")" ["+"]
|
||||
// Term = (*) "(" Expr ")" ["-"]
|
||||
// Term = (*) "(" Expr ")" ["/"]
|
||||
// Term = (*) r#"[0-9]+"# [")"]
|
||||
// Term = (*) r#"[0-9]+"# ["*"]
|
||||
// Term = (*) r#"[0-9]+"# ["+"]
|
||||
// Term = (*) r#"[0-9]+"# ["-"]
|
||||
// Term = (*) r#"[0-9]+"# ["/"]
|
||||
//
|
||||
// "(" -> Shift(S13)
|
||||
// r#"[0-9]+"# -> Shift(S14)
|
||||
//
|
||||
// Term -> S28
|
||||
pub fn __state23<
|
||||
'input,
|
||||
F,
|
||||
@ -1189,6 +1755,23 @@ mod __parse__Expr {
|
||||
return Ok(__result);
|
||||
}
|
||||
|
||||
// State 24
|
||||
// Expr = Expr (*) "+" Factor [")"]
|
||||
// Expr = Expr (*) "+" Factor ["+"]
|
||||
// Expr = Expr (*) "+" Factor ["-"]
|
||||
// Expr = Expr (*) "-" Factor [")"]
|
||||
// Expr = Expr (*) "-" Factor ["+"]
|
||||
// Expr = Expr (*) "-" Factor ["-"]
|
||||
// Term = "(" Expr (*) ")" [")"]
|
||||
// Term = "(" Expr (*) ")" ["*"]
|
||||
// Term = "(" Expr (*) ")" ["+"]
|
||||
// Term = "(" Expr (*) ")" ["-"]
|
||||
// Term = "(" Expr (*) ")" ["/"]
|
||||
//
|
||||
// ")" -> Shift(S29)
|
||||
// "+" -> Shift(S20)
|
||||
// "-" -> Shift(S21)
|
||||
//
|
||||
pub fn __state24<
|
||||
'input,
|
||||
F,
|
||||
@ -1226,6 +1809,27 @@ mod __parse__Expr {
|
||||
return Ok(__result);
|
||||
}
|
||||
|
||||
// State 25
|
||||
// Expr = Expr "+" Factor (*) [")"]
|
||||
// Expr = Expr "+" Factor (*) ["+"]
|
||||
// Expr = Expr "+" Factor (*) ["-"]
|
||||
// Factor = Factor (*) "*" Term [")"]
|
||||
// Factor = Factor (*) "*" Term ["*"]
|
||||
// Factor = Factor (*) "*" Term ["+"]
|
||||
// Factor = Factor (*) "*" Term ["-"]
|
||||
// Factor = Factor (*) "*" Term ["/"]
|
||||
// Factor = Factor (*) "/" Term [")"]
|
||||
// Factor = Factor (*) "/" Term ["*"]
|
||||
// Factor = Factor (*) "/" Term ["+"]
|
||||
// Factor = Factor (*) "/" Term ["-"]
|
||||
// Factor = Factor (*) "/" Term ["/"]
|
||||
//
|
||||
// ")" -> Reduce(Expr = Expr, "+", Factor => ActionFn(2);)
|
||||
// "*" -> Shift(S22)
|
||||
// "+" -> Reduce(Expr = Expr, "+", Factor => ActionFn(2);)
|
||||
// "-" -> Reduce(Expr = Expr, "+", Factor => ActionFn(2);)
|
||||
// "/" -> Shift(S23)
|
||||
//
|
||||
pub fn __state25<
|
||||
'input,
|
||||
F,
|
||||
@ -1276,6 +1880,27 @@ mod __parse__Expr {
|
||||
return Ok(__result);
|
||||
}
|
||||
|
||||
// State 26
|
||||
// Expr = Expr "-" Factor (*) [")"]
|
||||
// Expr = Expr "-" Factor (*) ["+"]
|
||||
// Expr = Expr "-" Factor (*) ["-"]
|
||||
// Factor = Factor (*) "*" Term [")"]
|
||||
// Factor = Factor (*) "*" Term ["*"]
|
||||
// Factor = Factor (*) "*" Term ["+"]
|
||||
// Factor = Factor (*) "*" Term ["-"]
|
||||
// Factor = Factor (*) "*" Term ["/"]
|
||||
// Factor = Factor (*) "/" Term [")"]
|
||||
// Factor = Factor (*) "/" Term ["*"]
|
||||
// Factor = Factor (*) "/" Term ["+"]
|
||||
// Factor = Factor (*) "/" Term ["-"]
|
||||
// Factor = Factor (*) "/" Term ["/"]
|
||||
//
|
||||
// ")" -> Reduce(Expr = Expr, "-", Factor => ActionFn(1);)
|
||||
// "*" -> Shift(S22)
|
||||
// "+" -> Reduce(Expr = Expr, "-", Factor => ActionFn(1);)
|
||||
// "-" -> Reduce(Expr = Expr, "-", Factor => ActionFn(1);)
|
||||
// "/" -> Shift(S23)
|
||||
//
|
||||
pub fn __state26<
|
||||
'input,
|
||||
F,
|
||||
@ -1326,6 +1951,19 @@ mod __parse__Expr {
|
||||
return Ok(__result);
|
||||
}
|
||||
|
||||
// State 27
|
||||
// Factor = Factor "*" Term (*) [")"]
|
||||
// Factor = Factor "*" Term (*) ["*"]
|
||||
// Factor = Factor "*" Term (*) ["+"]
|
||||
// Factor = Factor "*" Term (*) ["-"]
|
||||
// Factor = Factor "*" Term (*) ["/"]
|
||||
//
|
||||
// ")" -> Reduce(Factor = Factor, "*", Term => ActionFn(4);)
|
||||
// "*" -> Reduce(Factor = Factor, "*", Term => ActionFn(4);)
|
||||
// "+" -> Reduce(Factor = Factor, "*", Term => ActionFn(4);)
|
||||
// "-" -> Reduce(Factor = Factor, "*", Term => ActionFn(4);)
|
||||
// "/" -> Reduce(Factor = Factor, "*", Term => ActionFn(4);)
|
||||
//
|
||||
pub fn __state27<
|
||||
'input,
|
||||
F,
|
||||
@ -1369,6 +2007,19 @@ mod __parse__Expr {
|
||||
}
|
||||
}
|
||||
|
||||
// State 28
|
||||
// Factor = Factor "/" Term (*) [")"]
|
||||
// Factor = Factor "/" Term (*) ["*"]
|
||||
// Factor = Factor "/" Term (*) ["+"]
|
||||
// Factor = Factor "/" Term (*) ["-"]
|
||||
// Factor = Factor "/" Term (*) ["/"]
|
||||
//
|
||||
// ")" -> Reduce(Factor = Factor, "/", Term => ActionFn(5);)
|
||||
// "*" -> Reduce(Factor = Factor, "/", Term => ActionFn(5);)
|
||||
// "+" -> Reduce(Factor = Factor, "/", Term => ActionFn(5);)
|
||||
// "-" -> Reduce(Factor = Factor, "/", Term => ActionFn(5);)
|
||||
// "/" -> Reduce(Factor = Factor, "/", Term => ActionFn(5);)
|
||||
//
|
||||
pub fn __state28<
|
||||
'input,
|
||||
F,
|
||||
@ -1412,6 +2063,19 @@ mod __parse__Expr {
|
||||
}
|
||||
}
|
||||
|
||||
// State 29
|
||||
// Term = "(" Expr ")" (*) [")"]
|
||||
// Term = "(" Expr ")" (*) ["*"]
|
||||
// Term = "(" Expr ")" (*) ["+"]
|
||||
// Term = "(" Expr ")" (*) ["-"]
|
||||
// Term = "(" Expr ")" (*) ["/"]
|
||||
//
|
||||
// ")" -> Reduce(Term = "(", Expr, ")" => ActionFn(8);)
|
||||
// "*" -> Reduce(Term = "(", Expr, ")" => ActionFn(8);)
|
||||
// "+" -> Reduce(Term = "(", Expr, ")" => ActionFn(8);)
|
||||
// "-" -> Reduce(Term = "(", Expr, ")" => ActionFn(8);)
|
||||
// "/" -> Reduce(Term = "(", Expr, ")" => ActionFn(8);)
|
||||
//
|
||||
pub fn __state29<
|
||||
'input,
|
||||
F,
|
||||
|
@ -45,6 +45,55 @@ mod __parse__Expr {
|
||||
____Expr((usize, i32, usize)),
|
||||
}
|
||||
|
||||
// State 0
|
||||
// Expr = (*) Expr "+" Factor [EOF]
|
||||
// Expr = (*) Expr "+" Factor ["+"]
|
||||
// Expr = (*) Expr "+" Factor ["-"]
|
||||
// Expr = (*) Expr "-" Factor [EOF]
|
||||
// Expr = (*) Expr "-" Factor ["+"]
|
||||
// Expr = (*) Expr "-" Factor ["-"]
|
||||
// Expr = (*) Factor [EOF]
|
||||
// Expr = (*) Factor ["+"]
|
||||
// Expr = (*) Factor ["-"]
|
||||
// Factor = (*) Factor "*" Term [EOF]
|
||||
// Factor = (*) Factor "*" Term ["*"]
|
||||
// Factor = (*) Factor "*" Term ["+"]
|
||||
// Factor = (*) Factor "*" Term ["-"]
|
||||
// Factor = (*) Factor "*" Term ["/"]
|
||||
// Factor = (*) Factor "/" Term [EOF]
|
||||
// Factor = (*) Factor "/" Term ["*"]
|
||||
// Factor = (*) Factor "/" Term ["+"]
|
||||
// Factor = (*) Factor "/" Term ["-"]
|
||||
// Factor = (*) Factor "/" Term ["/"]
|
||||
// Factor = (*) Term [EOF]
|
||||
// Factor = (*) Term ["*"]
|
||||
// Factor = (*) Term ["+"]
|
||||
// Factor = (*) Term ["-"]
|
||||
// Factor = (*) Term ["/"]
|
||||
// Num = (*) r#"[0-9]+"# [EOF]
|
||||
// Num = (*) r#"[0-9]+"# ["*"]
|
||||
// Num = (*) r#"[0-9]+"# ["+"]
|
||||
// Num = (*) r#"[0-9]+"# ["-"]
|
||||
// Num = (*) r#"[0-9]+"# ["/"]
|
||||
// Term = (*) Num [EOF]
|
||||
// Term = (*) Num ["*"]
|
||||
// Term = (*) Num ["+"]
|
||||
// Term = (*) Num ["-"]
|
||||
// Term = (*) Num ["/"]
|
||||
// Term = (*) "(" Expr ")" [EOF]
|
||||
// Term = (*) "(" Expr ")" ["*"]
|
||||
// Term = (*) "(" Expr ")" ["+"]
|
||||
// Term = (*) "(" Expr ")" ["-"]
|
||||
// Term = (*) "(" Expr ")" ["/"]
|
||||
// __Expr = (*) Expr [EOF]
|
||||
//
|
||||
// "(" -> Shift(S5)
|
||||
// r#"[0-9]+"# -> Shift(S6)
|
||||
//
|
||||
// Expr -> S1
|
||||
// Factor -> S2
|
||||
// Num -> S3
|
||||
// Term -> S4
|
||||
pub fn __state0<
|
||||
'input,
|
||||
__TOKENS: Iterator<Item=Result<(usize, (usize, &'input str), usize),__ParseError<usize,(usize, &'input str),()>>>,
|
||||
@ -98,6 +147,19 @@ mod __parse__Expr {
|
||||
}
|
||||
}
|
||||
|
||||
// State 1
|
||||
// Expr = Expr (*) "+" Factor [EOF]
|
||||
// Expr = Expr (*) "+" Factor ["+"]
|
||||
// Expr = Expr (*) "+" Factor ["-"]
|
||||
// Expr = Expr (*) "-" Factor [EOF]
|
||||
// Expr = Expr (*) "-" Factor ["+"]
|
||||
// Expr = Expr (*) "-" Factor ["-"]
|
||||
// __Expr = Expr (*) [EOF]
|
||||
//
|
||||
// EOF -> Reduce(__Expr = Expr => ActionFn(0);)
|
||||
// "+" -> Shift(S7)
|
||||
// "-" -> Shift(S8)
|
||||
//
|
||||
pub fn __state1<
|
||||
'input,
|
||||
__TOKENS: Iterator<Item=Result<(usize, (usize, &'input str), usize),__ParseError<usize,(usize, &'input str),()>>>,
|
||||
@ -141,6 +203,27 @@ mod __parse__Expr {
|
||||
return Ok(__result);
|
||||
}
|
||||
|
||||
// State 2
|
||||
// Expr = Factor (*) [EOF]
|
||||
// Expr = Factor (*) ["+"]
|
||||
// Expr = Factor (*) ["-"]
|
||||
// Factor = Factor (*) "*" Term [EOF]
|
||||
// Factor = Factor (*) "*" Term ["*"]
|
||||
// Factor = Factor (*) "*" Term ["+"]
|
||||
// Factor = Factor (*) "*" Term ["-"]
|
||||
// Factor = Factor (*) "*" Term ["/"]
|
||||
// Factor = Factor (*) "/" Term [EOF]
|
||||
// Factor = Factor (*) "/" Term ["*"]
|
||||
// Factor = Factor (*) "/" Term ["+"]
|
||||
// Factor = Factor (*) "/" Term ["-"]
|
||||
// Factor = Factor (*) "/" Term ["/"]
|
||||
//
|
||||
// EOF -> Reduce(Expr = Factor => ActionFn(3);)
|
||||
// "*" -> Shift(S9)
|
||||
// "+" -> Reduce(Expr = Factor => ActionFn(3);)
|
||||
// "-" -> Reduce(Expr = Factor => ActionFn(3);)
|
||||
// "/" -> Shift(S10)
|
||||
//
|
||||
pub fn __state2<
|
||||
'input,
|
||||
__TOKENS: Iterator<Item=Result<(usize, (usize, &'input str), usize),__ParseError<usize,(usize, &'input str),()>>>,
|
||||
@ -186,6 +269,19 @@ mod __parse__Expr {
|
||||
return Ok(__result);
|
||||
}
|
||||
|
||||
// State 3
|
||||
// Term = Num (*) [EOF]
|
||||
// Term = Num (*) ["*"]
|
||||
// Term = Num (*) ["+"]
|
||||
// Term = Num (*) ["-"]
|
||||
// Term = Num (*) ["/"]
|
||||
//
|
||||
// EOF -> Reduce(Term = Num => ActionFn(7);)
|
||||
// "*" -> Reduce(Term = Num => ActionFn(7);)
|
||||
// "+" -> Reduce(Term = Num => ActionFn(7);)
|
||||
// "-" -> Reduce(Term = Num => ActionFn(7);)
|
||||
// "/" -> Reduce(Term = Num => ActionFn(7);)
|
||||
//
|
||||
pub fn __state3<
|
||||
'input,
|
||||
__TOKENS: Iterator<Item=Result<(usize, (usize, &'input str), usize),__ParseError<usize,(usize, &'input str),()>>>,
|
||||
@ -224,6 +320,19 @@ mod __parse__Expr {
|
||||
}
|
||||
}
|
||||
|
||||
// State 4
|
||||
// Factor = Term (*) [EOF]
|
||||
// Factor = Term (*) ["*"]
|
||||
// Factor = Term (*) ["+"]
|
||||
// Factor = Term (*) ["-"]
|
||||
// Factor = Term (*) ["/"]
|
||||
//
|
||||
// EOF -> Reduce(Factor = Term => ActionFn(6);)
|
||||
// "*" -> Reduce(Factor = Term => ActionFn(6);)
|
||||
// "+" -> Reduce(Factor = Term => ActionFn(6);)
|
||||
// "-" -> Reduce(Factor = Term => ActionFn(6);)
|
||||
// "/" -> Reduce(Factor = Term => ActionFn(6);)
|
||||
//
|
||||
pub fn __state4<
|
||||
'input,
|
||||
__TOKENS: Iterator<Item=Result<(usize, (usize, &'input str), usize),__ParseError<usize,(usize, &'input str),()>>>,
|
||||
@ -262,6 +371,59 @@ mod __parse__Expr {
|
||||
}
|
||||
}
|
||||
|
||||
// State 5
|
||||
// Expr = (*) Expr "+" Factor [")"]
|
||||
// Expr = (*) Expr "+" Factor ["+"]
|
||||
// Expr = (*) Expr "+" Factor ["-"]
|
||||
// Expr = (*) Expr "-" Factor [")"]
|
||||
// Expr = (*) Expr "-" Factor ["+"]
|
||||
// Expr = (*) Expr "-" Factor ["-"]
|
||||
// Expr = (*) Factor [")"]
|
||||
// Expr = (*) Factor ["+"]
|
||||
// Expr = (*) Factor ["-"]
|
||||
// Factor = (*) Factor "*" Term [")"]
|
||||
// Factor = (*) Factor "*" Term ["*"]
|
||||
// Factor = (*) Factor "*" Term ["+"]
|
||||
// Factor = (*) Factor "*" Term ["-"]
|
||||
// Factor = (*) Factor "*" Term ["/"]
|
||||
// Factor = (*) Factor "/" Term [")"]
|
||||
// Factor = (*) Factor "/" Term ["*"]
|
||||
// Factor = (*) Factor "/" Term ["+"]
|
||||
// Factor = (*) Factor "/" Term ["-"]
|
||||
// Factor = (*) Factor "/" Term ["/"]
|
||||
// Factor = (*) Term [")"]
|
||||
// Factor = (*) Term ["*"]
|
||||
// Factor = (*) Term ["+"]
|
||||
// Factor = (*) Term ["-"]
|
||||
// Factor = (*) Term ["/"]
|
||||
// Num = (*) r#"[0-9]+"# [")"]
|
||||
// Num = (*) r#"[0-9]+"# ["*"]
|
||||
// Num = (*) r#"[0-9]+"# ["+"]
|
||||
// Num = (*) r#"[0-9]+"# ["-"]
|
||||
// Num = (*) r#"[0-9]+"# ["/"]
|
||||
// Term = (*) Num [")"]
|
||||
// Term = (*) Num ["*"]
|
||||
// Term = (*) Num ["+"]
|
||||
// Term = (*) Num ["-"]
|
||||
// Term = (*) Num ["/"]
|
||||
// Term = (*) "(" Expr ")" [")"]
|
||||
// Term = (*) "(" Expr ")" ["*"]
|
||||
// Term = (*) "(" Expr ")" ["+"]
|
||||
// Term = (*) "(" Expr ")" ["-"]
|
||||
// Term = (*) "(" Expr ")" ["/"]
|
||||
// Term = "(" (*) Expr ")" [EOF]
|
||||
// Term = "(" (*) Expr ")" ["*"]
|
||||
// Term = "(" (*) Expr ")" ["+"]
|
||||
// Term = "(" (*) Expr ")" ["-"]
|
||||
// Term = "(" (*) Expr ")" ["/"]
|
||||
//
|
||||
// "(" -> Shift(S15)
|
||||
// r#"[0-9]+"# -> Shift(S16)
|
||||
//
|
||||
// Expr -> S11
|
||||
// Factor -> S12
|
||||
// Num -> S13
|
||||
// Term -> S14
|
||||
pub fn __state5<
|
||||
'input,
|
||||
__TOKENS: Iterator<Item=Result<(usize, (usize, &'input str), usize),__ParseError<usize,(usize, &'input str),()>>>,
|
||||
@ -321,6 +483,19 @@ mod __parse__Expr {
|
||||
return Ok(__result);
|
||||
}
|
||||
|
||||
// State 6
|
||||
// Num = r#"[0-9]+"# (*) [EOF]
|
||||
// Num = r#"[0-9]+"# (*) ["*"]
|
||||
// Num = r#"[0-9]+"# (*) ["+"]
|
||||
// Num = r#"[0-9]+"# (*) ["-"]
|
||||
// Num = r#"[0-9]+"# (*) ["/"]
|
||||
//
|
||||
// EOF -> Reduce(Num = r#"[0-9]+"# => ActionFn(9);)
|
||||
// "*" -> Reduce(Num = r#"[0-9]+"# => ActionFn(9);)
|
||||
// "+" -> Reduce(Num = r#"[0-9]+"# => ActionFn(9);)
|
||||
// "-" -> Reduce(Num = r#"[0-9]+"# => ActionFn(9);)
|
||||
// "/" -> Reduce(Num = r#"[0-9]+"# => ActionFn(9);)
|
||||
//
|
||||
pub fn __state6<
|
||||
'input,
|
||||
__TOKENS: Iterator<Item=Result<(usize, (usize, &'input str), usize),__ParseError<usize,(usize, &'input str),()>>>,
|
||||
@ -363,6 +538,47 @@ mod __parse__Expr {
|
||||
}
|
||||
}
|
||||
|
||||
// State 7
|
||||
// Expr = Expr "+" (*) Factor [EOF]
|
||||
// Expr = Expr "+" (*) Factor ["+"]
|
||||
// Expr = Expr "+" (*) Factor ["-"]
|
||||
// Factor = (*) Factor "*" Term [EOF]
|
||||
// Factor = (*) Factor "*" Term ["*"]
|
||||
// Factor = (*) Factor "*" Term ["+"]
|
||||
// Factor = (*) Factor "*" Term ["-"]
|
||||
// Factor = (*) Factor "*" Term ["/"]
|
||||
// Factor = (*) Factor "/" Term [EOF]
|
||||
// Factor = (*) Factor "/" Term ["*"]
|
||||
// Factor = (*) Factor "/" Term ["+"]
|
||||
// Factor = (*) Factor "/" Term ["-"]
|
||||
// Factor = (*) Factor "/" Term ["/"]
|
||||
// Factor = (*) Term [EOF]
|
||||
// Factor = (*) Term ["*"]
|
||||
// Factor = (*) Term ["+"]
|
||||
// Factor = (*) Term ["-"]
|
||||
// Factor = (*) Term ["/"]
|
||||
// Num = (*) r#"[0-9]+"# [EOF]
|
||||
// Num = (*) r#"[0-9]+"# ["*"]
|
||||
// Num = (*) r#"[0-9]+"# ["+"]
|
||||
// Num = (*) r#"[0-9]+"# ["-"]
|
||||
// Num = (*) r#"[0-9]+"# ["/"]
|
||||
// Term = (*) Num [EOF]
|
||||
// Term = (*) Num ["*"]
|
||||
// Term = (*) Num ["+"]
|
||||
// Term = (*) Num ["-"]
|
||||
// Term = (*) Num ["/"]
|
||||
// Term = (*) "(" Expr ")" [EOF]
|
||||
// Term = (*) "(" Expr ")" ["*"]
|
||||
// Term = (*) "(" Expr ")" ["+"]
|
||||
// Term = (*) "(" Expr ")" ["-"]
|
||||
// Term = (*) "(" Expr ")" ["/"]
|
||||
//
|
||||
// "(" -> Shift(S5)
|
||||
// r#"[0-9]+"# -> Shift(S6)
|
||||
//
|
||||
// Factor -> S17
|
||||
// Num -> S3
|
||||
// Term -> S4
|
||||
pub fn __state7<
|
||||
'input,
|
||||
__TOKENS: Iterator<Item=Result<(usize, (usize, &'input str), usize),__ParseError<usize,(usize, &'input str),()>>>,
|
||||
@ -419,6 +635,47 @@ mod __parse__Expr {
|
||||
return Ok(__result);
|
||||
}
|
||||
|
||||
// State 8
|
||||
// Expr = Expr "-" (*) Factor [EOF]
|
||||
// Expr = Expr "-" (*) Factor ["+"]
|
||||
// Expr = Expr "-" (*) Factor ["-"]
|
||||
// Factor = (*) Factor "*" Term [EOF]
|
||||
// Factor = (*) Factor "*" Term ["*"]
|
||||
// Factor = (*) Factor "*" Term ["+"]
|
||||
// Factor = (*) Factor "*" Term ["-"]
|
||||
// Factor = (*) Factor "*" Term ["/"]
|
||||
// Factor = (*) Factor "/" Term [EOF]
|
||||
// Factor = (*) Factor "/" Term ["*"]
|
||||
// Factor = (*) Factor "/" Term ["+"]
|
||||
// Factor = (*) Factor "/" Term ["-"]
|
||||
// Factor = (*) Factor "/" Term ["/"]
|
||||
// Factor = (*) Term [EOF]
|
||||
// Factor = (*) Term ["*"]
|
||||
// Factor = (*) Term ["+"]
|
||||
// Factor = (*) Term ["-"]
|
||||
// Factor = (*) Term ["/"]
|
||||
// Num = (*) r#"[0-9]+"# [EOF]
|
||||
// Num = (*) r#"[0-9]+"# ["*"]
|
||||
// Num = (*) r#"[0-9]+"# ["+"]
|
||||
// Num = (*) r#"[0-9]+"# ["-"]
|
||||
// Num = (*) r#"[0-9]+"# ["/"]
|
||||
// Term = (*) Num [EOF]
|
||||
// Term = (*) Num ["*"]
|
||||
// Term = (*) Num ["+"]
|
||||
// Term = (*) Num ["-"]
|
||||
// Term = (*) Num ["/"]
|
||||
// Term = (*) "(" Expr ")" [EOF]
|
||||
// Term = (*) "(" Expr ")" ["*"]
|
||||
// Term = (*) "(" Expr ")" ["+"]
|
||||
// Term = (*) "(" Expr ")" ["-"]
|
||||
// Term = (*) "(" Expr ")" ["/"]
|
||||
//
|
||||
// "(" -> Shift(S5)
|
||||
// r#"[0-9]+"# -> Shift(S6)
|
||||
//
|
||||
// Factor -> S18
|
||||
// Num -> S3
|
||||
// Term -> S4
|
||||
pub fn __state8<
|
||||
'input,
|
||||
__TOKENS: Iterator<Item=Result<(usize, (usize, &'input str), usize),__ParseError<usize,(usize, &'input str),()>>>,
|
||||
@ -475,6 +732,33 @@ mod __parse__Expr {
|
||||
return Ok(__result);
|
||||
}
|
||||
|
||||
// State 9
|
||||
// Factor = Factor "*" (*) Term [EOF]
|
||||
// Factor = Factor "*" (*) Term ["*"]
|
||||
// Factor = Factor "*" (*) Term ["+"]
|
||||
// Factor = Factor "*" (*) Term ["-"]
|
||||
// Factor = Factor "*" (*) Term ["/"]
|
||||
// Num = (*) r#"[0-9]+"# [EOF]
|
||||
// Num = (*) r#"[0-9]+"# ["*"]
|
||||
// Num = (*) r#"[0-9]+"# ["+"]
|
||||
// Num = (*) r#"[0-9]+"# ["-"]
|
||||
// Num = (*) r#"[0-9]+"# ["/"]
|
||||
// Term = (*) Num [EOF]
|
||||
// Term = (*) Num ["*"]
|
||||
// Term = (*) Num ["+"]
|
||||
// Term = (*) Num ["-"]
|
||||
// Term = (*) Num ["/"]
|
||||
// Term = (*) "(" Expr ")" [EOF]
|
||||
// Term = (*) "(" Expr ")" ["*"]
|
||||
// Term = (*) "(" Expr ")" ["+"]
|
||||
// Term = (*) "(" Expr ")" ["-"]
|
||||
// Term = (*) "(" Expr ")" ["/"]
|
||||
//
|
||||
// "(" -> Shift(S5)
|
||||
// r#"[0-9]+"# -> Shift(S6)
|
||||
//
|
||||
// Num -> S3
|
||||
// Term -> S19
|
||||
pub fn __state9<
|
||||
'input,
|
||||
__TOKENS: Iterator<Item=Result<(usize, (usize, &'input str), usize),__ParseError<usize,(usize, &'input str),()>>>,
|
||||
@ -527,6 +811,33 @@ mod __parse__Expr {
|
||||
return Ok(__result);
|
||||
}
|
||||
|
||||
// State 10
|
||||
// Factor = Factor "/" (*) Term [EOF]
|
||||
// Factor = Factor "/" (*) Term ["*"]
|
||||
// Factor = Factor "/" (*) Term ["+"]
|
||||
// Factor = Factor "/" (*) Term ["-"]
|
||||
// Factor = Factor "/" (*) Term ["/"]
|
||||
// Num = (*) r#"[0-9]+"# [EOF]
|
||||
// Num = (*) r#"[0-9]+"# ["*"]
|
||||
// Num = (*) r#"[0-9]+"# ["+"]
|
||||
// Num = (*) r#"[0-9]+"# ["-"]
|
||||
// Num = (*) r#"[0-9]+"# ["/"]
|
||||
// Term = (*) Num [EOF]
|
||||
// Term = (*) Num ["*"]
|
||||
// Term = (*) Num ["+"]
|
||||
// Term = (*) Num ["-"]
|
||||
// Term = (*) Num ["/"]
|
||||
// Term = (*) "(" Expr ")" [EOF]
|
||||
// Term = (*) "(" Expr ")" ["*"]
|
||||
// Term = (*) "(" Expr ")" ["+"]
|
||||
// Term = (*) "(" Expr ")" ["-"]
|
||||
// Term = (*) "(" Expr ")" ["/"]
|
||||
//
|
||||
// "(" -> Shift(S5)
|
||||
// r#"[0-9]+"# -> Shift(S6)
|
||||
//
|
||||
// Num -> S3
|
||||
// Term -> S20
|
||||
pub fn __state10<
|
||||
'input,
|
||||
__TOKENS: Iterator<Item=Result<(usize, (usize, &'input str), usize),__ParseError<usize,(usize, &'input str),()>>>,
|
||||
@ -579,6 +890,23 @@ mod __parse__Expr {
|
||||
return Ok(__result);
|
||||
}
|
||||
|
||||
// State 11
|
||||
// Expr = Expr (*) "+" Factor [")"]
|
||||
// Expr = Expr (*) "+" Factor ["+"]
|
||||
// Expr = Expr (*) "+" Factor ["-"]
|
||||
// Expr = Expr (*) "-" Factor [")"]
|
||||
// Expr = Expr (*) "-" Factor ["+"]
|
||||
// Expr = Expr (*) "-" Factor ["-"]
|
||||
// Term = "(" Expr (*) ")" [EOF]
|
||||
// Term = "(" Expr (*) ")" ["*"]
|
||||
// Term = "(" Expr (*) ")" ["+"]
|
||||
// Term = "(" Expr (*) ")" ["-"]
|
||||
// Term = "(" Expr (*) ")" ["/"]
|
||||
//
|
||||
// ")" -> Shift(S21)
|
||||
// "+" -> Shift(S22)
|
||||
// "-" -> Shift(S23)
|
||||
//
|
||||
pub fn __state11<
|
||||
'input,
|
||||
__TOKENS: Iterator<Item=Result<(usize, (usize, &'input str), usize),__ParseError<usize,(usize, &'input str),()>>>,
|
||||
@ -615,6 +943,27 @@ mod __parse__Expr {
|
||||
return Ok(__result);
|
||||
}
|
||||
|
||||
// State 12
|
||||
// Expr = Factor (*) [")"]
|
||||
// Expr = Factor (*) ["+"]
|
||||
// Expr = Factor (*) ["-"]
|
||||
// Factor = Factor (*) "*" Term [")"]
|
||||
// Factor = Factor (*) "*" Term ["*"]
|
||||
// Factor = Factor (*) "*" Term ["+"]
|
||||
// Factor = Factor (*) "*" Term ["-"]
|
||||
// Factor = Factor (*) "*" Term ["/"]
|
||||
// Factor = Factor (*) "/" Term [")"]
|
||||
// Factor = Factor (*) "/" Term ["*"]
|
||||
// Factor = Factor (*) "/" Term ["+"]
|
||||
// Factor = Factor (*) "/" Term ["-"]
|
||||
// Factor = Factor (*) "/" Term ["/"]
|
||||
//
|
||||
// ")" -> Reduce(Expr = Factor => ActionFn(3);)
|
||||
// "*" -> Shift(S24)
|
||||
// "+" -> Reduce(Expr = Factor => ActionFn(3);)
|
||||
// "-" -> Reduce(Expr = Factor => ActionFn(3);)
|
||||
// "/" -> Shift(S25)
|
||||
//
|
||||
pub fn __state12<
|
||||
'input,
|
||||
__TOKENS: Iterator<Item=Result<(usize, (usize, &'input str), usize),__ParseError<usize,(usize, &'input str),()>>>,
|
||||
@ -660,6 +1009,19 @@ mod __parse__Expr {
|
||||
return Ok(__result);
|
||||
}
|
||||
|
||||
// State 13
|
||||
// Term = Num (*) [")"]
|
||||
// Term = Num (*) ["*"]
|
||||
// Term = Num (*) ["+"]
|
||||
// Term = Num (*) ["-"]
|
||||
// Term = Num (*) ["/"]
|
||||
//
|
||||
// ")" -> Reduce(Term = Num => ActionFn(7);)
|
||||
// "*" -> Reduce(Term = Num => ActionFn(7);)
|
||||
// "+" -> Reduce(Term = Num => ActionFn(7);)
|
||||
// "-" -> Reduce(Term = Num => ActionFn(7);)
|
||||
// "/" -> Reduce(Term = Num => ActionFn(7);)
|
||||
//
|
||||
pub fn __state13<
|
||||
'input,
|
||||
__TOKENS: Iterator<Item=Result<(usize, (usize, &'input str), usize),__ParseError<usize,(usize, &'input str),()>>>,
|
||||
@ -698,6 +1060,19 @@ mod __parse__Expr {
|
||||
}
|
||||
}
|
||||
|
||||
// State 14
|
||||
// Factor = Term (*) [")"]
|
||||
// Factor = Term (*) ["*"]
|
||||
// Factor = Term (*) ["+"]
|
||||
// Factor = Term (*) ["-"]
|
||||
// Factor = Term (*) ["/"]
|
||||
//
|
||||
// ")" -> Reduce(Factor = Term => ActionFn(6);)
|
||||
// "*" -> Reduce(Factor = Term => ActionFn(6);)
|
||||
// "+" -> Reduce(Factor = Term => ActionFn(6);)
|
||||
// "-" -> Reduce(Factor = Term => ActionFn(6);)
|
||||
// "/" -> Reduce(Factor = Term => ActionFn(6);)
|
||||
//
|
||||
pub fn __state14<
|
||||
'input,
|
||||
__TOKENS: Iterator<Item=Result<(usize, (usize, &'input str), usize),__ParseError<usize,(usize, &'input str),()>>>,
|
||||
@ -736,6 +1111,59 @@ mod __parse__Expr {
|
||||
}
|
||||
}
|
||||
|
||||
// State 15
|
||||
// Expr = (*) Expr "+" Factor [")"]
|
||||
// Expr = (*) Expr "+" Factor ["+"]
|
||||
// Expr = (*) Expr "+" Factor ["-"]
|
||||
// Expr = (*) Expr "-" Factor [")"]
|
||||
// Expr = (*) Expr "-" Factor ["+"]
|
||||
// Expr = (*) Expr "-" Factor ["-"]
|
||||
// Expr = (*) Factor [")"]
|
||||
// Expr = (*) Factor ["+"]
|
||||
// Expr = (*) Factor ["-"]
|
||||
// Factor = (*) Factor "*" Term [")"]
|
||||
// Factor = (*) Factor "*" Term ["*"]
|
||||
// Factor = (*) Factor "*" Term ["+"]
|
||||
// Factor = (*) Factor "*" Term ["-"]
|
||||
// Factor = (*) Factor "*" Term ["/"]
|
||||
// Factor = (*) Factor "/" Term [")"]
|
||||
// Factor = (*) Factor "/" Term ["*"]
|
||||
// Factor = (*) Factor "/" Term ["+"]
|
||||
// Factor = (*) Factor "/" Term ["-"]
|
||||
// Factor = (*) Factor "/" Term ["/"]
|
||||
// Factor = (*) Term [")"]
|
||||
// Factor = (*) Term ["*"]
|
||||
// Factor = (*) Term ["+"]
|
||||
// Factor = (*) Term ["-"]
|
||||
// Factor = (*) Term ["/"]
|
||||
// Num = (*) r#"[0-9]+"# [")"]
|
||||
// Num = (*) r#"[0-9]+"# ["*"]
|
||||
// Num = (*) r#"[0-9]+"# ["+"]
|
||||
// Num = (*) r#"[0-9]+"# ["-"]
|
||||
// Num = (*) r#"[0-9]+"# ["/"]
|
||||
// Term = (*) Num [")"]
|
||||
// Term = (*) Num ["*"]
|
||||
// Term = (*) Num ["+"]
|
||||
// Term = (*) Num ["-"]
|
||||
// Term = (*) Num ["/"]
|
||||
// Term = (*) "(" Expr ")" [")"]
|
||||
// Term = (*) "(" Expr ")" ["*"]
|
||||
// Term = (*) "(" Expr ")" ["+"]
|
||||
// Term = (*) "(" Expr ")" ["-"]
|
||||
// Term = (*) "(" Expr ")" ["/"]
|
||||
// Term = "(" (*) Expr ")" [")"]
|
||||
// Term = "(" (*) Expr ")" ["*"]
|
||||
// Term = "(" (*) Expr ")" ["+"]
|
||||
// Term = "(" (*) Expr ")" ["-"]
|
||||
// Term = "(" (*) Expr ")" ["/"]
|
||||
//
|
||||
// "(" -> Shift(S15)
|
||||
// r#"[0-9]+"# -> Shift(S16)
|
||||
//
|
||||
// Expr -> S26
|
||||
// Factor -> S12
|
||||
// Num -> S13
|
||||
// Term -> S14
|
||||
pub fn __state15<
|
||||
'input,
|
||||
__TOKENS: Iterator<Item=Result<(usize, (usize, &'input str), usize),__ParseError<usize,(usize, &'input str),()>>>,
|
||||
@ -795,6 +1223,19 @@ mod __parse__Expr {
|
||||
return Ok(__result);
|
||||
}
|
||||
|
||||
// State 16
|
||||
// Num = r#"[0-9]+"# (*) [")"]
|
||||
// Num = r#"[0-9]+"# (*) ["*"]
|
||||
// Num = r#"[0-9]+"# (*) ["+"]
|
||||
// Num = r#"[0-9]+"# (*) ["-"]
|
||||
// Num = r#"[0-9]+"# (*) ["/"]
|
||||
//
|
||||
// ")" -> Reduce(Num = r#"[0-9]+"# => ActionFn(9);)
|
||||
// "*" -> Reduce(Num = r#"[0-9]+"# => ActionFn(9);)
|
||||
// "+" -> Reduce(Num = r#"[0-9]+"# => ActionFn(9);)
|
||||
// "-" -> Reduce(Num = r#"[0-9]+"# => ActionFn(9);)
|
||||
// "/" -> Reduce(Num = r#"[0-9]+"# => ActionFn(9);)
|
||||
//
|
||||
pub fn __state16<
|
||||
'input,
|
||||
__TOKENS: Iterator<Item=Result<(usize, (usize, &'input str), usize),__ParseError<usize,(usize, &'input str),()>>>,
|
||||
@ -837,6 +1278,27 @@ mod __parse__Expr {
|
||||
}
|
||||
}
|
||||
|
||||
// State 17
|
||||
// Expr = Expr "+" Factor (*) [EOF]
|
||||
// Expr = Expr "+" Factor (*) ["+"]
|
||||
// Expr = Expr "+" Factor (*) ["-"]
|
||||
// Factor = Factor (*) "*" Term [EOF]
|
||||
// Factor = Factor (*) "*" Term ["*"]
|
||||
// Factor = Factor (*) "*" Term ["+"]
|
||||
// Factor = Factor (*) "*" Term ["-"]
|
||||
// Factor = Factor (*) "*" Term ["/"]
|
||||
// Factor = Factor (*) "/" Term [EOF]
|
||||
// Factor = Factor (*) "/" Term ["*"]
|
||||
// Factor = Factor (*) "/" Term ["+"]
|
||||
// Factor = Factor (*) "/" Term ["-"]
|
||||
// Factor = Factor (*) "/" Term ["/"]
|
||||
//
|
||||
// EOF -> Reduce(Expr = Expr, "+", Factor => ActionFn(2);)
|
||||
// "*" -> Shift(S9)
|
||||
// "+" -> Reduce(Expr = Expr, "+", Factor => ActionFn(2);)
|
||||
// "-" -> Reduce(Expr = Expr, "+", Factor => ActionFn(2);)
|
||||
// "/" -> Shift(S10)
|
||||
//
|
||||
pub fn __state17<
|
||||
'input,
|
||||
__TOKENS: Iterator<Item=Result<(usize, (usize, &'input str), usize),__ParseError<usize,(usize, &'input str),()>>>,
|
||||
@ -886,6 +1348,27 @@ mod __parse__Expr {
|
||||
return Ok(__result);
|
||||
}
|
||||
|
||||
// State 18
|
||||
// Expr = Expr "-" Factor (*) [EOF]
|
||||
// Expr = Expr "-" Factor (*) ["+"]
|
||||
// Expr = Expr "-" Factor (*) ["-"]
|
||||
// Factor = Factor (*) "*" Term [EOF]
|
||||
// Factor = Factor (*) "*" Term ["*"]
|
||||
// Factor = Factor (*) "*" Term ["+"]
|
||||
// Factor = Factor (*) "*" Term ["-"]
|
||||
// Factor = Factor (*) "*" Term ["/"]
|
||||
// Factor = Factor (*) "/" Term [EOF]
|
||||
// Factor = Factor (*) "/" Term ["*"]
|
||||
// Factor = Factor (*) "/" Term ["+"]
|
||||
// Factor = Factor (*) "/" Term ["-"]
|
||||
// Factor = Factor (*) "/" Term ["/"]
|
||||
//
|
||||
// EOF -> Reduce(Expr = Expr, "-", Factor => ActionFn(1);)
|
||||
// "*" -> Shift(S9)
|
||||
// "+" -> Reduce(Expr = Expr, "-", Factor => ActionFn(1);)
|
||||
// "-" -> Reduce(Expr = Expr, "-", Factor => ActionFn(1);)
|
||||
// "/" -> Shift(S10)
|
||||
//
|
||||
pub fn __state18<
|
||||
'input,
|
||||
__TOKENS: Iterator<Item=Result<(usize, (usize, &'input str), usize),__ParseError<usize,(usize, &'input str),()>>>,
|
||||
@ -935,6 +1418,19 @@ mod __parse__Expr {
|
||||
return Ok(__result);
|
||||
}
|
||||
|
||||
// State 19
|
||||
// Factor = Factor "*" Term (*) [EOF]
|
||||
// Factor = Factor "*" Term (*) ["*"]
|
||||
// Factor = Factor "*" Term (*) ["+"]
|
||||
// Factor = Factor "*" Term (*) ["-"]
|
||||
// Factor = Factor "*" Term (*) ["/"]
|
||||
//
|
||||
// EOF -> Reduce(Factor = Factor, "*", Term => ActionFn(4);)
|
||||
// "*" -> Reduce(Factor = Factor, "*", Term => ActionFn(4);)
|
||||
// "+" -> Reduce(Factor = Factor, "*", Term => ActionFn(4);)
|
||||
// "-" -> Reduce(Factor = Factor, "*", Term => ActionFn(4);)
|
||||
// "/" -> Reduce(Factor = Factor, "*", Term => ActionFn(4);)
|
||||
//
|
||||
pub fn __state19<
|
||||
'input,
|
||||
__TOKENS: Iterator<Item=Result<(usize, (usize, &'input str), usize),__ParseError<usize,(usize, &'input str),()>>>,
|
||||
@ -977,6 +1473,19 @@ mod __parse__Expr {
|
||||
}
|
||||
}
|
||||
|
||||
// State 20
|
||||
// Factor = Factor "/" Term (*) [EOF]
|
||||
// Factor = Factor "/" Term (*) ["*"]
|
||||
// Factor = Factor "/" Term (*) ["+"]
|
||||
// Factor = Factor "/" Term (*) ["-"]
|
||||
// Factor = Factor "/" Term (*) ["/"]
|
||||
//
|
||||
// EOF -> Reduce(Factor = Factor, "/", Term => ActionFn(5);)
|
||||
// "*" -> Reduce(Factor = Factor, "/", Term => ActionFn(5);)
|
||||
// "+" -> Reduce(Factor = Factor, "/", Term => ActionFn(5);)
|
||||
// "-" -> Reduce(Factor = Factor, "/", Term => ActionFn(5);)
|
||||
// "/" -> Reduce(Factor = Factor, "/", Term => ActionFn(5);)
|
||||
//
|
||||
pub fn __state20<
|
||||
'input,
|
||||
__TOKENS: Iterator<Item=Result<(usize, (usize, &'input str), usize),__ParseError<usize,(usize, &'input str),()>>>,
|
||||
@ -1019,6 +1528,19 @@ mod __parse__Expr {
|
||||
}
|
||||
}
|
||||
|
||||
// State 21
|
||||
// Term = "(" Expr ")" (*) [EOF]
|
||||
// Term = "(" Expr ")" (*) ["*"]
|
||||
// Term = "(" Expr ")" (*) ["+"]
|
||||
// Term = "(" Expr ")" (*) ["-"]
|
||||
// Term = "(" Expr ")" (*) ["/"]
|
||||
//
|
||||
// EOF -> Reduce(Term = "(", Expr, ")" => ActionFn(8);)
|
||||
// "*" -> Reduce(Term = "(", Expr, ")" => ActionFn(8);)
|
||||
// "+" -> Reduce(Term = "(", Expr, ")" => ActionFn(8);)
|
||||
// "-" -> Reduce(Term = "(", Expr, ")" => ActionFn(8);)
|
||||
// "/" -> Reduce(Term = "(", Expr, ")" => ActionFn(8);)
|
||||
//
|
||||
pub fn __state21<
|
||||
'input,
|
||||
__TOKENS: Iterator<Item=Result<(usize, (usize, &'input str), usize),__ParseError<usize,(usize, &'input str),()>>>,
|
||||
@ -1065,6 +1587,47 @@ mod __parse__Expr {
|
||||
}
|
||||
}
|
||||
|
||||
// State 22
|
||||
// Expr = Expr "+" (*) Factor [")"]
|
||||
// Expr = Expr "+" (*) Factor ["+"]
|
||||
// Expr = Expr "+" (*) Factor ["-"]
|
||||
// Factor = (*) Factor "*" Term [")"]
|
||||
// Factor = (*) Factor "*" Term ["*"]
|
||||
// Factor = (*) Factor "*" Term ["+"]
|
||||
// Factor = (*) Factor "*" Term ["-"]
|
||||
// Factor = (*) Factor "*" Term ["/"]
|
||||
// Factor = (*) Factor "/" Term [")"]
|
||||
// Factor = (*) Factor "/" Term ["*"]
|
||||
// Factor = (*) Factor "/" Term ["+"]
|
||||
// Factor = (*) Factor "/" Term ["-"]
|
||||
// Factor = (*) Factor "/" Term ["/"]
|
||||
// Factor = (*) Term [")"]
|
||||
// Factor = (*) Term ["*"]
|
||||
// Factor = (*) Term ["+"]
|
||||
// Factor = (*) Term ["-"]
|
||||
// Factor = (*) Term ["/"]
|
||||
// Num = (*) r#"[0-9]+"# [")"]
|
||||
// Num = (*) r#"[0-9]+"# ["*"]
|
||||
// Num = (*) r#"[0-9]+"# ["+"]
|
||||
// Num = (*) r#"[0-9]+"# ["-"]
|
||||
// Num = (*) r#"[0-9]+"# ["/"]
|
||||
// Term = (*) Num [")"]
|
||||
// Term = (*) Num ["*"]
|
||||
// Term = (*) Num ["+"]
|
||||
// Term = (*) Num ["-"]
|
||||
// Term = (*) Num ["/"]
|
||||
// Term = (*) "(" Expr ")" [")"]
|
||||
// Term = (*) "(" Expr ")" ["*"]
|
||||
// Term = (*) "(" Expr ")" ["+"]
|
||||
// Term = (*) "(" Expr ")" ["-"]
|
||||
// Term = (*) "(" Expr ")" ["/"]
|
||||
//
|
||||
// "(" -> Shift(S15)
|
||||
// r#"[0-9]+"# -> Shift(S16)
|
||||
//
|
||||
// Factor -> S27
|
||||
// Num -> S13
|
||||
// Term -> S14
|
||||
pub fn __state22<
|
||||
'input,
|
||||
__TOKENS: Iterator<Item=Result<(usize, (usize, &'input str), usize),__ParseError<usize,(usize, &'input str),()>>>,
|
||||
@ -1121,6 +1684,47 @@ mod __parse__Expr {
|
||||
return Ok(__result);
|
||||
}
|
||||
|
||||
// State 23
|
||||
// Expr = Expr "-" (*) Factor [")"]
|
||||
// Expr = Expr "-" (*) Factor ["+"]
|
||||
// Expr = Expr "-" (*) Factor ["-"]
|
||||
// Factor = (*) Factor "*" Term [")"]
|
||||
// Factor = (*) Factor "*" Term ["*"]
|
||||
// Factor = (*) Factor "*" Term ["+"]
|
||||
// Factor = (*) Factor "*" Term ["-"]
|
||||
// Factor = (*) Factor "*" Term ["/"]
|
||||
// Factor = (*) Factor "/" Term [")"]
|
||||
// Factor = (*) Factor "/" Term ["*"]
|
||||
// Factor = (*) Factor "/" Term ["+"]
|
||||
// Factor = (*) Factor "/" Term ["-"]
|
||||
// Factor = (*) Factor "/" Term ["/"]
|
||||
// Factor = (*) Term [")"]
|
||||
// Factor = (*) Term ["*"]
|
||||
// Factor = (*) Term ["+"]
|
||||
// Factor = (*) Term ["-"]
|
||||
// Factor = (*) Term ["/"]
|
||||
// Num = (*) r#"[0-9]+"# [")"]
|
||||
// Num = (*) r#"[0-9]+"# ["*"]
|
||||
// Num = (*) r#"[0-9]+"# ["+"]
|
||||
// Num = (*) r#"[0-9]+"# ["-"]
|
||||
// Num = (*) r#"[0-9]+"# ["/"]
|
||||
// Term = (*) Num [")"]
|
||||
// Term = (*) Num ["*"]
|
||||
// Term = (*) Num ["+"]
|
||||
// Term = (*) Num ["-"]
|
||||
// Term = (*) Num ["/"]
|
||||
// Term = (*) "(" Expr ")" [")"]
|
||||
// Term = (*) "(" Expr ")" ["*"]
|
||||
// Term = (*) "(" Expr ")" ["+"]
|
||||
// Term = (*) "(" Expr ")" ["-"]
|
||||
// Term = (*) "(" Expr ")" ["/"]
|
||||
//
|
||||
// "(" -> Shift(S15)
|
||||
// r#"[0-9]+"# -> Shift(S16)
|
||||
//
|
||||
// Factor -> S28
|
||||
// Num -> S13
|
||||
// Term -> S14
|
||||
pub fn __state23<
|
||||
'input,
|
||||
__TOKENS: Iterator<Item=Result<(usize, (usize, &'input str), usize),__ParseError<usize,(usize, &'input str),()>>>,
|
||||
@ -1177,6 +1781,33 @@ mod __parse__Expr {
|
||||
return Ok(__result);
|
||||
}
|
||||
|
||||
// State 24
|
||||
// Factor = Factor "*" (*) Term [")"]
|
||||
// Factor = Factor "*" (*) Term ["*"]
|
||||
// Factor = Factor "*" (*) Term ["+"]
|
||||
// Factor = Factor "*" (*) Term ["-"]
|
||||
// Factor = Factor "*" (*) Term ["/"]
|
||||
// Num = (*) r#"[0-9]+"# [")"]
|
||||
// Num = (*) r#"[0-9]+"# ["*"]
|
||||
// Num = (*) r#"[0-9]+"# ["+"]
|
||||
// Num = (*) r#"[0-9]+"# ["-"]
|
||||
// Num = (*) r#"[0-9]+"# ["/"]
|
||||
// Term = (*) Num [")"]
|
||||
// Term = (*) Num ["*"]
|
||||
// Term = (*) Num ["+"]
|
||||
// Term = (*) Num ["-"]
|
||||
// Term = (*) Num ["/"]
|
||||
// Term = (*) "(" Expr ")" [")"]
|
||||
// Term = (*) "(" Expr ")" ["*"]
|
||||
// Term = (*) "(" Expr ")" ["+"]
|
||||
// Term = (*) "(" Expr ")" ["-"]
|
||||
// Term = (*) "(" Expr ")" ["/"]
|
||||
//
|
||||
// "(" -> Shift(S15)
|
||||
// r#"[0-9]+"# -> Shift(S16)
|
||||
//
|
||||
// Num -> S13
|
||||
// Term -> S29
|
||||
pub fn __state24<
|
||||
'input,
|
||||
__TOKENS: Iterator<Item=Result<(usize, (usize, &'input str), usize),__ParseError<usize,(usize, &'input str),()>>>,
|
||||
@ -1229,6 +1860,33 @@ mod __parse__Expr {
|
||||
return Ok(__result);
|
||||
}
|
||||
|
||||
// State 25
|
||||
// Factor = Factor "/" (*) Term [")"]
|
||||
// Factor = Factor "/" (*) Term ["*"]
|
||||
// Factor = Factor "/" (*) Term ["+"]
|
||||
// Factor = Factor "/" (*) Term ["-"]
|
||||
// Factor = Factor "/" (*) Term ["/"]
|
||||
// Num = (*) r#"[0-9]+"# [")"]
|
||||
// Num = (*) r#"[0-9]+"# ["*"]
|
||||
// Num = (*) r#"[0-9]+"# ["+"]
|
||||
// Num = (*) r#"[0-9]+"# ["-"]
|
||||
// Num = (*) r#"[0-9]+"# ["/"]
|
||||
// Term = (*) Num [")"]
|
||||
// Term = (*) Num ["*"]
|
||||
// Term = (*) Num ["+"]
|
||||
// Term = (*) Num ["-"]
|
||||
// Term = (*) Num ["/"]
|
||||
// Term = (*) "(" Expr ")" [")"]
|
||||
// Term = (*) "(" Expr ")" ["*"]
|
||||
// Term = (*) "(" Expr ")" ["+"]
|
||||
// Term = (*) "(" Expr ")" ["-"]
|
||||
// Term = (*) "(" Expr ")" ["/"]
|
||||
//
|
||||
// "(" -> Shift(S15)
|
||||
// r#"[0-9]+"# -> Shift(S16)
|
||||
//
|
||||
// Num -> S13
|
||||
// Term -> S30
|
||||
pub fn __state25<
|
||||
'input,
|
||||
__TOKENS: Iterator<Item=Result<(usize, (usize, &'input str), usize),__ParseError<usize,(usize, &'input str),()>>>,
|
||||
@ -1281,6 +1939,23 @@ mod __parse__Expr {
|
||||
return Ok(__result);
|
||||
}
|
||||
|
||||
// State 26
|
||||
// Expr = Expr (*) "+" Factor [")"]
|
||||
// Expr = Expr (*) "+" Factor ["+"]
|
||||
// Expr = Expr (*) "+" Factor ["-"]
|
||||
// Expr = Expr (*) "-" Factor [")"]
|
||||
// Expr = Expr (*) "-" Factor ["+"]
|
||||
// Expr = Expr (*) "-" Factor ["-"]
|
||||
// Term = "(" Expr (*) ")" [")"]
|
||||
// Term = "(" Expr (*) ")" ["*"]
|
||||
// Term = "(" Expr (*) ")" ["+"]
|
||||
// Term = "(" Expr (*) ")" ["-"]
|
||||
// Term = "(" Expr (*) ")" ["/"]
|
||||
//
|
||||
// ")" -> Shift(S31)
|
||||
// "+" -> Shift(S22)
|
||||
// "-" -> Shift(S23)
|
||||
//
|
||||
pub fn __state26<
|
||||
'input,
|
||||
__TOKENS: Iterator<Item=Result<(usize, (usize, &'input str), usize),__ParseError<usize,(usize, &'input str),()>>>,
|
||||
@ -1317,6 +1992,27 @@ mod __parse__Expr {
|
||||
return Ok(__result);
|
||||
}
|
||||
|
||||
// State 27
|
||||
// Expr = Expr "+" Factor (*) [")"]
|
||||
// Expr = Expr "+" Factor (*) ["+"]
|
||||
// Expr = Expr "+" Factor (*) ["-"]
|
||||
// Factor = Factor (*) "*" Term [")"]
|
||||
// Factor = Factor (*) "*" Term ["*"]
|
||||
// Factor = Factor (*) "*" Term ["+"]
|
||||
// Factor = Factor (*) "*" Term ["-"]
|
||||
// Factor = Factor (*) "*" Term ["/"]
|
||||
// Factor = Factor (*) "/" Term [")"]
|
||||
// Factor = Factor (*) "/" Term ["*"]
|
||||
// Factor = Factor (*) "/" Term ["+"]
|
||||
// Factor = Factor (*) "/" Term ["-"]
|
||||
// Factor = Factor (*) "/" Term ["/"]
|
||||
//
|
||||
// ")" -> Reduce(Expr = Expr, "+", Factor => ActionFn(2);)
|
||||
// "*" -> Shift(S24)
|
||||
// "+" -> Reduce(Expr = Expr, "+", Factor => ActionFn(2);)
|
||||
// "-" -> Reduce(Expr = Expr, "+", Factor => ActionFn(2);)
|
||||
// "/" -> Shift(S25)
|
||||
//
|
||||
pub fn __state27<
|
||||
'input,
|
||||
__TOKENS: Iterator<Item=Result<(usize, (usize, &'input str), usize),__ParseError<usize,(usize, &'input str),()>>>,
|
||||
@ -1366,6 +2062,27 @@ mod __parse__Expr {
|
||||
return Ok(__result);
|
||||
}
|
||||
|
||||
// State 28
|
||||
// Expr = Expr "-" Factor (*) [")"]
|
||||
// Expr = Expr "-" Factor (*) ["+"]
|
||||
// Expr = Expr "-" Factor (*) ["-"]
|
||||
// Factor = Factor (*) "*" Term [")"]
|
||||
// Factor = Factor (*) "*" Term ["*"]
|
||||
// Factor = Factor (*) "*" Term ["+"]
|
||||
// Factor = Factor (*) "*" Term ["-"]
|
||||
// Factor = Factor (*) "*" Term ["/"]
|
||||
// Factor = Factor (*) "/" Term [")"]
|
||||
// Factor = Factor (*) "/" Term ["*"]
|
||||
// Factor = Factor (*) "/" Term ["+"]
|
||||
// Factor = Factor (*) "/" Term ["-"]
|
||||
// Factor = Factor (*) "/" Term ["/"]
|
||||
//
|
||||
// ")" -> Reduce(Expr = Expr, "-", Factor => ActionFn(1);)
|
||||
// "*" -> Shift(S24)
|
||||
// "+" -> Reduce(Expr = Expr, "-", Factor => ActionFn(1);)
|
||||
// "-" -> Reduce(Expr = Expr, "-", Factor => ActionFn(1);)
|
||||
// "/" -> Shift(S25)
|
||||
//
|
||||
pub fn __state28<
|
||||
'input,
|
||||
__TOKENS: Iterator<Item=Result<(usize, (usize, &'input str), usize),__ParseError<usize,(usize, &'input str),()>>>,
|
||||
@ -1415,6 +2132,19 @@ mod __parse__Expr {
|
||||
return Ok(__result);
|
||||
}
|
||||
|
||||
// State 29
|
||||
// Factor = Factor "*" Term (*) [")"]
|
||||
// Factor = Factor "*" Term (*) ["*"]
|
||||
// Factor = Factor "*" Term (*) ["+"]
|
||||
// Factor = Factor "*" Term (*) ["-"]
|
||||
// Factor = Factor "*" Term (*) ["/"]
|
||||
//
|
||||
// ")" -> Reduce(Factor = Factor, "*", Term => ActionFn(4);)
|
||||
// "*" -> Reduce(Factor = Factor, "*", Term => ActionFn(4);)
|
||||
// "+" -> Reduce(Factor = Factor, "*", Term => ActionFn(4);)
|
||||
// "-" -> Reduce(Factor = Factor, "*", Term => ActionFn(4);)
|
||||
// "/" -> Reduce(Factor = Factor, "*", Term => ActionFn(4);)
|
||||
//
|
||||
pub fn __state29<
|
||||
'input,
|
||||
__TOKENS: Iterator<Item=Result<(usize, (usize, &'input str), usize),__ParseError<usize,(usize, &'input str),()>>>,
|
||||
@ -1457,6 +2187,19 @@ mod __parse__Expr {
|
||||
}
|
||||
}
|
||||
|
||||
// State 30
|
||||
// Factor = Factor "/" Term (*) [")"]
|
||||
// Factor = Factor "/" Term (*) ["*"]
|
||||
// Factor = Factor "/" Term (*) ["+"]
|
||||
// Factor = Factor "/" Term (*) ["-"]
|
||||
// Factor = Factor "/" Term (*) ["/"]
|
||||
//
|
||||
// ")" -> Reduce(Factor = Factor, "/", Term => ActionFn(5);)
|
||||
// "*" -> Reduce(Factor = Factor, "/", Term => ActionFn(5);)
|
||||
// "+" -> Reduce(Factor = Factor, "/", Term => ActionFn(5);)
|
||||
// "-" -> Reduce(Factor = Factor, "/", Term => ActionFn(5);)
|
||||
// "/" -> Reduce(Factor = Factor, "/", Term => ActionFn(5);)
|
||||
//
|
||||
pub fn __state30<
|
||||
'input,
|
||||
__TOKENS: Iterator<Item=Result<(usize, (usize, &'input str), usize),__ParseError<usize,(usize, &'input str),()>>>,
|
||||
@ -1499,6 +2242,19 @@ mod __parse__Expr {
|
||||
}
|
||||
}
|
||||
|
||||
// State 31
|
||||
// Term = "(" Expr ")" (*) [")"]
|
||||
// Term = "(" Expr ")" (*) ["*"]
|
||||
// Term = "(" Expr ")" (*) ["+"]
|
||||
// Term = "(" Expr ")" (*) ["-"]
|
||||
// Term = "(" Expr ")" (*) ["/"]
|
||||
//
|
||||
// ")" -> Reduce(Term = "(", Expr, ")" => ActionFn(8);)
|
||||
// "*" -> Reduce(Term = "(", Expr, ")" => ActionFn(8);)
|
||||
// "+" -> Reduce(Term = "(", Expr, ")" => ActionFn(8);)
|
||||
// "-" -> Reduce(Term = "(", Expr, ")" => ActionFn(8);)
|
||||
// "/" -> Reduce(Term = "(", Expr, ")" => ActionFn(8);)
|
||||
//
|
||||
pub fn __state31<
|
||||
'input,
|
||||
__TOKENS: Iterator<Item=Result<(usize, (usize, &'input str), usize),__ParseError<usize,(usize, &'input str),()>>>,
|
||||
|
@ -45,6 +45,49 @@ mod __parse__Expr {
|
||||
____Expr(((), i32, ())),
|
||||
}
|
||||
|
||||
// State 0
|
||||
// Expr = (*) Expr "+" Factor [EOF]
|
||||
// Expr = (*) Expr "+" Factor ["+"]
|
||||
// Expr = (*) Expr "+" Factor ["-"]
|
||||
// Expr = (*) Expr "-" Factor [EOF]
|
||||
// Expr = (*) Expr "-" Factor ["+"]
|
||||
// Expr = (*) Expr "-" Factor ["-"]
|
||||
// Expr = (*) Factor [EOF]
|
||||
// Expr = (*) Factor ["+"]
|
||||
// Expr = (*) Factor ["-"]
|
||||
// Factor = (*) Factor "*" Term [EOF]
|
||||
// Factor = (*) Factor "*" Term ["*"]
|
||||
// Factor = (*) Factor "*" Term ["+"]
|
||||
// Factor = (*) Factor "*" Term ["-"]
|
||||
// Factor = (*) Factor "*" Term ["/"]
|
||||
// Factor = (*) Factor "/" Term [EOF]
|
||||
// Factor = (*) Factor "/" Term ["*"]
|
||||
// Factor = (*) Factor "/" Term ["+"]
|
||||
// Factor = (*) Factor "/" Term ["-"]
|
||||
// Factor = (*) Factor "/" Term ["/"]
|
||||
// Factor = (*) Term [EOF]
|
||||
// Factor = (*) Term ["*"]
|
||||
// Factor = (*) Term ["+"]
|
||||
// Factor = (*) Term ["-"]
|
||||
// Factor = (*) Term ["/"]
|
||||
// Term = (*) "(" Expr ")" [EOF]
|
||||
// Term = (*) "(" Expr ")" ["*"]
|
||||
// Term = (*) "(" Expr ")" ["+"]
|
||||
// Term = (*) "(" Expr ")" ["-"]
|
||||
// Term = (*) "(" Expr ")" ["/"]
|
||||
// Term = (*) Num [EOF]
|
||||
// Term = (*) Num ["*"]
|
||||
// Term = (*) Num ["+"]
|
||||
// Term = (*) Num ["-"]
|
||||
// Term = (*) Num ["/"]
|
||||
// __Expr = (*) Expr [EOF]
|
||||
//
|
||||
// "(" -> Shift(S4)
|
||||
// Num -> Shift(S5)
|
||||
//
|
||||
// Expr -> S1
|
||||
// Factor -> S2
|
||||
// Term -> S3
|
||||
pub fn __state0<
|
||||
__TOKENS: Iterator<Item=Result<((), Tok, ()),()>>,
|
||||
>(
|
||||
@ -92,6 +135,19 @@ mod __parse__Expr {
|
||||
}
|
||||
}
|
||||
|
||||
// State 1
|
||||
// Expr = Expr (*) "+" Factor [EOF]
|
||||
// Expr = Expr (*) "+" Factor ["+"]
|
||||
// Expr = Expr (*) "+" Factor ["-"]
|
||||
// Expr = Expr (*) "-" Factor [EOF]
|
||||
// Expr = Expr (*) "-" Factor ["+"]
|
||||
// Expr = Expr (*) "-" Factor ["-"]
|
||||
// __Expr = Expr (*) [EOF]
|
||||
//
|
||||
// EOF -> Reduce(__Expr = Expr => ActionFn(0);)
|
||||
// "+" -> Shift(S6)
|
||||
// "-" -> Shift(S7)
|
||||
//
|
||||
pub fn __state1<
|
||||
__TOKENS: Iterator<Item=Result<((), Tok, ()),()>>,
|
||||
>(
|
||||
@ -133,6 +189,41 @@ mod __parse__Expr {
|
||||
return Ok(__result);
|
||||
}
|
||||
|
||||
// State 2
|
||||
// Expr = Factor (*) [EOF]
|
||||
// Expr = Factor (*) ["+"]
|
||||
// Expr = Factor (*) ["-"]
|
||||
// Factor = Factor (*) "*" Term [EOF]
|
||||
// Factor = Factor (*) "*" Term ["*"]
|
||||
// Factor = Factor (*) "*" Term ["+"]
|
||||
// Factor = Factor (*) "*" Term ["-"]
|
||||
// Factor = Factor (*) "*" Term ["/"]
|
||||
// Factor = Factor (*) "/" Term [EOF]
|
||||
// Factor = Factor (*) "/" Term ["*"]
|
||||
// Factor = Factor (*) "/" Term ["+"]
|
||||
// Factor = Factor (*) "/" Term ["-"]
|
||||
// Factor = Factor (*) "/" Term ["/"]
|
||||
// Expr = Factor (*) [")"]
|
||||
// Expr = Factor (*) ["+"]
|
||||
// Expr = Factor (*) ["-"]
|
||||
// Factor = Factor (*) "*" Term [")"]
|
||||
// Factor = Factor (*) "*" Term ["*"]
|
||||
// Factor = Factor (*) "*" Term ["+"]
|
||||
// Factor = Factor (*) "*" Term ["-"]
|
||||
// Factor = Factor (*) "*" Term ["/"]
|
||||
// Factor = Factor (*) "/" Term [")"]
|
||||
// Factor = Factor (*) "/" Term ["*"]
|
||||
// Factor = Factor (*) "/" Term ["+"]
|
||||
// Factor = Factor (*) "/" Term ["-"]
|
||||
// Factor = Factor (*) "/" Term ["/"]
|
||||
//
|
||||
// EOF -> Reduce(Expr = Factor => ActionFn(3);)
|
||||
// ")" -> Reduce(Expr = Factor => ActionFn(3);)
|
||||
// "*" -> Shift(S8)
|
||||
// "+" -> Reduce(Expr = Factor => ActionFn(3);)
|
||||
// "-" -> Reduce(Expr = Factor => ActionFn(3);)
|
||||
// "/" -> Shift(S9)
|
||||
//
|
||||
pub fn __state2<
|
||||
__TOKENS: Iterator<Item=Result<((), Tok, ()),()>>,
|
||||
>(
|
||||
@ -177,6 +268,25 @@ mod __parse__Expr {
|
||||
return Ok(__result);
|
||||
}
|
||||
|
||||
// State 3
|
||||
// Factor = Term (*) [EOF]
|
||||
// Factor = Term (*) ["*"]
|
||||
// Factor = Term (*) ["+"]
|
||||
// Factor = Term (*) ["-"]
|
||||
// Factor = Term (*) ["/"]
|
||||
// Factor = Term (*) [")"]
|
||||
// Factor = Term (*) ["*"]
|
||||
// Factor = Term (*) ["+"]
|
||||
// Factor = Term (*) ["-"]
|
||||
// Factor = Term (*) ["/"]
|
||||
//
|
||||
// EOF -> Reduce(Factor = Term => ActionFn(6);)
|
||||
// ")" -> Reduce(Factor = Term => ActionFn(6);)
|
||||
// "*" -> Reduce(Factor = Term => ActionFn(6);)
|
||||
// "+" -> Reduce(Factor = Term => ActionFn(6);)
|
||||
// "-" -> Reduce(Factor = Term => ActionFn(6);)
|
||||
// "/" -> Reduce(Factor = Term => ActionFn(6);)
|
||||
//
|
||||
pub fn __state3<
|
||||
__TOKENS: Iterator<Item=Result<((), Tok, ()),()>>,
|
||||
>(
|
||||
@ -214,6 +324,92 @@ mod __parse__Expr {
|
||||
}
|
||||
}
|
||||
|
||||
// State 4
|
||||
// Expr = (*) Expr "+" Factor [")"]
|
||||
// Expr = (*) Expr "+" Factor ["+"]
|
||||
// Expr = (*) Expr "+" Factor ["-"]
|
||||
// Expr = (*) Expr "-" Factor [")"]
|
||||
// Expr = (*) Expr "-" Factor ["+"]
|
||||
// Expr = (*) Expr "-" Factor ["-"]
|
||||
// Expr = (*) Factor [")"]
|
||||
// Expr = (*) Factor ["+"]
|
||||
// Expr = (*) Factor ["-"]
|
||||
// Factor = (*) Factor "*" Term [")"]
|
||||
// Factor = (*) Factor "*" Term ["*"]
|
||||
// Factor = (*) Factor "*" Term ["+"]
|
||||
// Factor = (*) Factor "*" Term ["-"]
|
||||
// Factor = (*) Factor "*" Term ["/"]
|
||||
// Factor = (*) Factor "/" Term [")"]
|
||||
// Factor = (*) Factor "/" Term ["*"]
|
||||
// Factor = (*) Factor "/" Term ["+"]
|
||||
// Factor = (*) Factor "/" Term ["-"]
|
||||
// Factor = (*) Factor "/" Term ["/"]
|
||||
// Factor = (*) Term [")"]
|
||||
// Factor = (*) Term ["*"]
|
||||
// Factor = (*) Term ["+"]
|
||||
// Factor = (*) Term ["-"]
|
||||
// Factor = (*) Term ["/"]
|
||||
// Term = (*) "(" Expr ")" [")"]
|
||||
// Term = (*) "(" Expr ")" ["*"]
|
||||
// Term = (*) "(" Expr ")" ["+"]
|
||||
// Term = (*) "(" Expr ")" ["-"]
|
||||
// Term = (*) "(" Expr ")" ["/"]
|
||||
// Term = "(" (*) Expr ")" [EOF]
|
||||
// Term = "(" (*) Expr ")" ["*"]
|
||||
// Term = "(" (*) Expr ")" ["+"]
|
||||
// Term = "(" (*) Expr ")" ["-"]
|
||||
// Term = "(" (*) Expr ")" ["/"]
|
||||
// Term = (*) Num [")"]
|
||||
// Term = (*) Num ["*"]
|
||||
// Term = (*) Num ["+"]
|
||||
// Term = (*) Num ["-"]
|
||||
// Term = (*) Num ["/"]
|
||||
// Expr = (*) Expr "+" Factor [")"]
|
||||
// Expr = (*) Expr "+" Factor ["+"]
|
||||
// Expr = (*) Expr "+" Factor ["-"]
|
||||
// Expr = (*) Expr "-" Factor [")"]
|
||||
// Expr = (*) Expr "-" Factor ["+"]
|
||||
// Expr = (*) Expr "-" Factor ["-"]
|
||||
// Expr = (*) Factor [")"]
|
||||
// Expr = (*) Factor ["+"]
|
||||
// Expr = (*) Factor ["-"]
|
||||
// Factor = (*) Factor "*" Term [")"]
|
||||
// Factor = (*) Factor "*" Term ["*"]
|
||||
// Factor = (*) Factor "*" Term ["+"]
|
||||
// Factor = (*) Factor "*" Term ["-"]
|
||||
// Factor = (*) Factor "*" Term ["/"]
|
||||
// Factor = (*) Factor "/" Term [")"]
|
||||
// Factor = (*) Factor "/" Term ["*"]
|
||||
// Factor = (*) Factor "/" Term ["+"]
|
||||
// Factor = (*) Factor "/" Term ["-"]
|
||||
// Factor = (*) Factor "/" Term ["/"]
|
||||
// Factor = (*) Term [")"]
|
||||
// Factor = (*) Term ["*"]
|
||||
// Factor = (*) Term ["+"]
|
||||
// Factor = (*) Term ["-"]
|
||||
// Factor = (*) Term ["/"]
|
||||
// Term = (*) "(" Expr ")" [")"]
|
||||
// Term = (*) "(" Expr ")" ["*"]
|
||||
// Term = (*) "(" Expr ")" ["+"]
|
||||
// Term = (*) "(" Expr ")" ["-"]
|
||||
// Term = (*) "(" Expr ")" ["/"]
|
||||
// Term = "(" (*) Expr ")" [")"]
|
||||
// Term = "(" (*) Expr ")" ["*"]
|
||||
// Term = "(" (*) Expr ")" ["+"]
|
||||
// Term = "(" (*) Expr ")" ["-"]
|
||||
// Term = "(" (*) Expr ")" ["/"]
|
||||
// Term = (*) Num [")"]
|
||||
// Term = (*) Num ["*"]
|
||||
// Term = (*) Num ["+"]
|
||||
// Term = (*) Num ["-"]
|
||||
// Term = (*) Num ["/"]
|
||||
//
|
||||
// "(" -> Shift(S4)
|
||||
// Num -> Shift(S5)
|
||||
//
|
||||
// Expr -> S10
|
||||
// Factor -> S2
|
||||
// Term -> S3
|
||||
pub fn __state4<
|
||||
__TOKENS: Iterator<Item=Result<((), Tok, ()),()>>,
|
||||
>(
|
||||
@ -267,6 +463,25 @@ mod __parse__Expr {
|
||||
return Ok(__result);
|
||||
}
|
||||
|
||||
// State 5
|
||||
// Term = Num (*) [EOF]
|
||||
// Term = Num (*) ["*"]
|
||||
// Term = Num (*) ["+"]
|
||||
// Term = Num (*) ["-"]
|
||||
// Term = Num (*) ["/"]
|
||||
// Term = Num (*) [")"]
|
||||
// Term = Num (*) ["*"]
|
||||
// Term = Num (*) ["+"]
|
||||
// Term = Num (*) ["-"]
|
||||
// Term = Num (*) ["/"]
|
||||
//
|
||||
// EOF -> Reduce(Term = Num => ActionFn(7);)
|
||||
// ")" -> Reduce(Term = Num => ActionFn(7);)
|
||||
// "*" -> Reduce(Term = Num => ActionFn(7);)
|
||||
// "+" -> Reduce(Term = Num => ActionFn(7);)
|
||||
// "-" -> Reduce(Term = Num => ActionFn(7);)
|
||||
// "/" -> Reduce(Term = Num => ActionFn(7);)
|
||||
//
|
||||
pub fn __state5<
|
||||
__TOKENS: Iterator<Item=Result<((), Tok, ()),()>>,
|
||||
>(
|
||||
@ -308,6 +523,69 @@ mod __parse__Expr {
|
||||
}
|
||||
}
|
||||
|
||||
// State 6
|
||||
// Expr = Expr "+" (*) Factor [EOF]
|
||||
// Expr = Expr "+" (*) Factor ["+"]
|
||||
// Expr = Expr "+" (*) Factor ["-"]
|
||||
// Factor = (*) Factor "*" Term [EOF]
|
||||
// Factor = (*) Factor "*" Term ["*"]
|
||||
// Factor = (*) Factor "*" Term ["+"]
|
||||
// Factor = (*) Factor "*" Term ["-"]
|
||||
// Factor = (*) Factor "*" Term ["/"]
|
||||
// Factor = (*) Factor "/" Term [EOF]
|
||||
// Factor = (*) Factor "/" Term ["*"]
|
||||
// Factor = (*) Factor "/" Term ["+"]
|
||||
// Factor = (*) Factor "/" Term ["-"]
|
||||
// Factor = (*) Factor "/" Term ["/"]
|
||||
// Factor = (*) Term [EOF]
|
||||
// Factor = (*) Term ["*"]
|
||||
// Factor = (*) Term ["+"]
|
||||
// Factor = (*) Term ["-"]
|
||||
// Factor = (*) Term ["/"]
|
||||
// Term = (*) "(" Expr ")" [EOF]
|
||||
// Term = (*) "(" Expr ")" ["*"]
|
||||
// Term = (*) "(" Expr ")" ["+"]
|
||||
// Term = (*) "(" Expr ")" ["-"]
|
||||
// Term = (*) "(" Expr ")" ["/"]
|
||||
// Term = (*) Num [EOF]
|
||||
// Term = (*) Num ["*"]
|
||||
// Term = (*) Num ["+"]
|
||||
// Term = (*) Num ["-"]
|
||||
// Term = (*) Num ["/"]
|
||||
// Expr = Expr "+" (*) Factor [")"]
|
||||
// Expr = Expr "+" (*) Factor ["+"]
|
||||
// Expr = Expr "+" (*) Factor ["-"]
|
||||
// Factor = (*) Factor "*" Term [")"]
|
||||
// Factor = (*) Factor "*" Term ["*"]
|
||||
// Factor = (*) Factor "*" Term ["+"]
|
||||
// Factor = (*) Factor "*" Term ["-"]
|
||||
// Factor = (*) Factor "*" Term ["/"]
|
||||
// Factor = (*) Factor "/" Term [")"]
|
||||
// Factor = (*) Factor "/" Term ["*"]
|
||||
// Factor = (*) Factor "/" Term ["+"]
|
||||
// Factor = (*) Factor "/" Term ["-"]
|
||||
// Factor = (*) Factor "/" Term ["/"]
|
||||
// Factor = (*) Term [")"]
|
||||
// Factor = (*) Term ["*"]
|
||||
// Factor = (*) Term ["+"]
|
||||
// Factor = (*) Term ["-"]
|
||||
// Factor = (*) Term ["/"]
|
||||
// Term = (*) "(" Expr ")" [")"]
|
||||
// Term = (*) "(" Expr ")" ["*"]
|
||||
// Term = (*) "(" Expr ")" ["+"]
|
||||
// Term = (*) "(" Expr ")" ["-"]
|
||||
// Term = (*) "(" Expr ")" ["/"]
|
||||
// Term = (*) Num [")"]
|
||||
// Term = (*) Num ["*"]
|
||||
// Term = (*) Num ["+"]
|
||||
// Term = (*) Num ["-"]
|
||||
// Term = (*) Num ["/"]
|
||||
//
|
||||
// "(" -> Shift(S4)
|
||||
// Num -> Shift(S5)
|
||||
//
|
||||
// Factor -> S11
|
||||
// Term -> S3
|
||||
pub fn __state6<
|
||||
__TOKENS: Iterator<Item=Result<((), Tok, ()),()>>,
|
||||
>(
|
||||
@ -358,6 +636,69 @@ mod __parse__Expr {
|
||||
return Ok(__result);
|
||||
}
|
||||
|
||||
// State 7
|
||||
// Expr = Expr "-" (*) Factor [EOF]
|
||||
// Expr = Expr "-" (*) Factor ["+"]
|
||||
// Expr = Expr "-" (*) Factor ["-"]
|
||||
// Factor = (*) Factor "*" Term [EOF]
|
||||
// Factor = (*) Factor "*" Term ["*"]
|
||||
// Factor = (*) Factor "*" Term ["+"]
|
||||
// Factor = (*) Factor "*" Term ["-"]
|
||||
// Factor = (*) Factor "*" Term ["/"]
|
||||
// Factor = (*) Factor "/" Term [EOF]
|
||||
// Factor = (*) Factor "/" Term ["*"]
|
||||
// Factor = (*) Factor "/" Term ["+"]
|
||||
// Factor = (*) Factor "/" Term ["-"]
|
||||
// Factor = (*) Factor "/" Term ["/"]
|
||||
// Factor = (*) Term [EOF]
|
||||
// Factor = (*) Term ["*"]
|
||||
// Factor = (*) Term ["+"]
|
||||
// Factor = (*) Term ["-"]
|
||||
// Factor = (*) Term ["/"]
|
||||
// Term = (*) "(" Expr ")" [EOF]
|
||||
// Term = (*) "(" Expr ")" ["*"]
|
||||
// Term = (*) "(" Expr ")" ["+"]
|
||||
// Term = (*) "(" Expr ")" ["-"]
|
||||
// Term = (*) "(" Expr ")" ["/"]
|
||||
// Term = (*) Num [EOF]
|
||||
// Term = (*) Num ["*"]
|
||||
// Term = (*) Num ["+"]
|
||||
// Term = (*) Num ["-"]
|
||||
// Term = (*) Num ["/"]
|
||||
// Expr = Expr "-" (*) Factor [")"]
|
||||
// Expr = Expr "-" (*) Factor ["+"]
|
||||
// Expr = Expr "-" (*) Factor ["-"]
|
||||
// Factor = (*) Factor "*" Term [")"]
|
||||
// Factor = (*) Factor "*" Term ["*"]
|
||||
// Factor = (*) Factor "*" Term ["+"]
|
||||
// Factor = (*) Factor "*" Term ["-"]
|
||||
// Factor = (*) Factor "*" Term ["/"]
|
||||
// Factor = (*) Factor "/" Term [")"]
|
||||
// Factor = (*) Factor "/" Term ["*"]
|
||||
// Factor = (*) Factor "/" Term ["+"]
|
||||
// Factor = (*) Factor "/" Term ["-"]
|
||||
// Factor = (*) Factor "/" Term ["/"]
|
||||
// Factor = (*) Term [")"]
|
||||
// Factor = (*) Term ["*"]
|
||||
// Factor = (*) Term ["+"]
|
||||
// Factor = (*) Term ["-"]
|
||||
// Factor = (*) Term ["/"]
|
||||
// Term = (*) "(" Expr ")" [")"]
|
||||
// Term = (*) "(" Expr ")" ["*"]
|
||||
// Term = (*) "(" Expr ")" ["+"]
|
||||
// Term = (*) "(" Expr ")" ["-"]
|
||||
// Term = (*) "(" Expr ")" ["/"]
|
||||
// Term = (*) Num [")"]
|
||||
// Term = (*) Num ["*"]
|
||||
// Term = (*) Num ["+"]
|
||||
// Term = (*) Num ["-"]
|
||||
// Term = (*) Num ["/"]
|
||||
//
|
||||
// "(" -> Shift(S4)
|
||||
// Num -> Shift(S5)
|
||||
//
|
||||
// Factor -> S12
|
||||
// Term -> S3
|
||||
pub fn __state7<
|
||||
__TOKENS: Iterator<Item=Result<((), Tok, ()),()>>,
|
||||
>(
|
||||
@ -408,6 +749,42 @@ mod __parse__Expr {
|
||||
return Ok(__result);
|
||||
}
|
||||
|
||||
// State 8
|
||||
// Factor = Factor "*" (*) Term [EOF]
|
||||
// Factor = Factor "*" (*) Term ["*"]
|
||||
// Factor = Factor "*" (*) Term ["+"]
|
||||
// Factor = Factor "*" (*) Term ["-"]
|
||||
// Factor = Factor "*" (*) Term ["/"]
|
||||
// Term = (*) "(" Expr ")" [EOF]
|
||||
// Term = (*) "(" Expr ")" ["*"]
|
||||
// Term = (*) "(" Expr ")" ["+"]
|
||||
// Term = (*) "(" Expr ")" ["-"]
|
||||
// Term = (*) "(" Expr ")" ["/"]
|
||||
// Term = (*) Num [EOF]
|
||||
// Term = (*) Num ["*"]
|
||||
// Term = (*) Num ["+"]
|
||||
// Term = (*) Num ["-"]
|
||||
// Term = (*) Num ["/"]
|
||||
// Factor = Factor "*" (*) Term [")"]
|
||||
// Factor = Factor "*" (*) Term ["*"]
|
||||
// Factor = Factor "*" (*) Term ["+"]
|
||||
// Factor = Factor "*" (*) Term ["-"]
|
||||
// Factor = Factor "*" (*) Term ["/"]
|
||||
// Term = (*) "(" Expr ")" [")"]
|
||||
// Term = (*) "(" Expr ")" ["*"]
|
||||
// Term = (*) "(" Expr ")" ["+"]
|
||||
// Term = (*) "(" Expr ")" ["-"]
|
||||
// Term = (*) "(" Expr ")" ["/"]
|
||||
// Term = (*) Num [")"]
|
||||
// Term = (*) Num ["*"]
|
||||
// Term = (*) Num ["+"]
|
||||
// Term = (*) Num ["-"]
|
||||
// Term = (*) Num ["/"]
|
||||
//
|
||||
// "(" -> Shift(S4)
|
||||
// Num -> Shift(S5)
|
||||
//
|
||||
// Term -> S13
|
||||
pub fn __state8<
|
||||
__TOKENS: Iterator<Item=Result<((), Tok, ()),()>>,
|
||||
>(
|
||||
@ -454,6 +831,42 @@ mod __parse__Expr {
|
||||
return Ok(__result);
|
||||
}
|
||||
|
||||
// State 9
|
||||
// Factor = Factor "/" (*) Term [EOF]
|
||||
// Factor = Factor "/" (*) Term ["*"]
|
||||
// Factor = Factor "/" (*) Term ["+"]
|
||||
// Factor = Factor "/" (*) Term ["-"]
|
||||
// Factor = Factor "/" (*) Term ["/"]
|
||||
// Term = (*) "(" Expr ")" [EOF]
|
||||
// Term = (*) "(" Expr ")" ["*"]
|
||||
// Term = (*) "(" Expr ")" ["+"]
|
||||
// Term = (*) "(" Expr ")" ["-"]
|
||||
// Term = (*) "(" Expr ")" ["/"]
|
||||
// Term = (*) Num [EOF]
|
||||
// Term = (*) Num ["*"]
|
||||
// Term = (*) Num ["+"]
|
||||
// Term = (*) Num ["-"]
|
||||
// Term = (*) Num ["/"]
|
||||
// Factor = Factor "/" (*) Term [")"]
|
||||
// Factor = Factor "/" (*) Term ["*"]
|
||||
// Factor = Factor "/" (*) Term ["+"]
|
||||
// Factor = Factor "/" (*) Term ["-"]
|
||||
// Factor = Factor "/" (*) Term ["/"]
|
||||
// Term = (*) "(" Expr ")" [")"]
|
||||
// Term = (*) "(" Expr ")" ["*"]
|
||||
// Term = (*) "(" Expr ")" ["+"]
|
||||
// Term = (*) "(" Expr ")" ["-"]
|
||||
// Term = (*) "(" Expr ")" ["/"]
|
||||
// Term = (*) Num [")"]
|
||||
// Term = (*) Num ["*"]
|
||||
// Term = (*) Num ["+"]
|
||||
// Term = (*) Num ["-"]
|
||||
// Term = (*) Num ["/"]
|
||||
//
|
||||
// "(" -> Shift(S4)
|
||||
// Num -> Shift(S5)
|
||||
//
|
||||
// Term -> S14
|
||||
pub fn __state9<
|
||||
__TOKENS: Iterator<Item=Result<((), Tok, ()),()>>,
|
||||
>(
|
||||
@ -500,6 +913,34 @@ mod __parse__Expr {
|
||||
return Ok(__result);
|
||||
}
|
||||
|
||||
// State 10
|
||||
// Expr = Expr (*) "+" Factor [")"]
|
||||
// Expr = Expr (*) "+" Factor ["+"]
|
||||
// Expr = Expr (*) "+" Factor ["-"]
|
||||
// Expr = Expr (*) "-" Factor [")"]
|
||||
// Expr = Expr (*) "-" Factor ["+"]
|
||||
// Expr = Expr (*) "-" Factor ["-"]
|
||||
// Term = "(" Expr (*) ")" [EOF]
|
||||
// Term = "(" Expr (*) ")" ["*"]
|
||||
// Term = "(" Expr (*) ")" ["+"]
|
||||
// Term = "(" Expr (*) ")" ["-"]
|
||||
// Term = "(" Expr (*) ")" ["/"]
|
||||
// Expr = Expr (*) "+" Factor [")"]
|
||||
// Expr = Expr (*) "+" Factor ["+"]
|
||||
// Expr = Expr (*) "+" Factor ["-"]
|
||||
// Expr = Expr (*) "-" Factor [")"]
|
||||
// Expr = Expr (*) "-" Factor ["+"]
|
||||
// Expr = Expr (*) "-" Factor ["-"]
|
||||
// Term = "(" Expr (*) ")" [")"]
|
||||
// Term = "(" Expr (*) ")" ["*"]
|
||||
// Term = "(" Expr (*) ")" ["+"]
|
||||
// Term = "(" Expr (*) ")" ["-"]
|
||||
// Term = "(" Expr (*) ")" ["/"]
|
||||
//
|
||||
// ")" -> Shift(S15)
|
||||
// "+" -> Shift(S6)
|
||||
// "-" -> Shift(S7)
|
||||
//
|
||||
pub fn __state10<
|
||||
__TOKENS: Iterator<Item=Result<((), Tok, ()),()>>,
|
||||
>(
|
||||
@ -534,6 +975,41 @@ mod __parse__Expr {
|
||||
return Ok(__result);
|
||||
}
|
||||
|
||||
// State 11
|
||||
// Expr = Expr "+" Factor (*) [EOF]
|
||||
// Expr = Expr "+" Factor (*) ["+"]
|
||||
// Expr = Expr "+" Factor (*) ["-"]
|
||||
// Factor = Factor (*) "*" Term [EOF]
|
||||
// Factor = Factor (*) "*" Term ["*"]
|
||||
// Factor = Factor (*) "*" Term ["+"]
|
||||
// Factor = Factor (*) "*" Term ["-"]
|
||||
// Factor = Factor (*) "*" Term ["/"]
|
||||
// Factor = Factor (*) "/" Term [EOF]
|
||||
// Factor = Factor (*) "/" Term ["*"]
|
||||
// Factor = Factor (*) "/" Term ["+"]
|
||||
// Factor = Factor (*) "/" Term ["-"]
|
||||
// Factor = Factor (*) "/" Term ["/"]
|
||||
// Expr = Expr "+" Factor (*) [")"]
|
||||
// Expr = Expr "+" Factor (*) ["+"]
|
||||
// Expr = Expr "+" Factor (*) ["-"]
|
||||
// Factor = Factor (*) "*" Term [")"]
|
||||
// Factor = Factor (*) "*" Term ["*"]
|
||||
// Factor = Factor (*) "*" Term ["+"]
|
||||
// Factor = Factor (*) "*" Term ["-"]
|
||||
// Factor = Factor (*) "*" Term ["/"]
|
||||
// Factor = Factor (*) "/" Term [")"]
|
||||
// Factor = Factor (*) "/" Term ["*"]
|
||||
// Factor = Factor (*) "/" Term ["+"]
|
||||
// Factor = Factor (*) "/" Term ["-"]
|
||||
// Factor = Factor (*) "/" Term ["/"]
|
||||
//
|
||||
// EOF -> Reduce(Expr = Expr, "+", Factor => ActionFn(2);)
|
||||
// ")" -> Reduce(Expr = Expr, "+", Factor => ActionFn(2);)
|
||||
// "*" -> Shift(S8)
|
||||
// "+" -> Reduce(Expr = Expr, "+", Factor => ActionFn(2);)
|
||||
// "-" -> Reduce(Expr = Expr, "+", Factor => ActionFn(2);)
|
||||
// "/" -> Shift(S9)
|
||||
//
|
||||
pub fn __state11<
|
||||
__TOKENS: Iterator<Item=Result<((), Tok, ()),()>>,
|
||||
>(
|
||||
@ -582,6 +1058,41 @@ mod __parse__Expr {
|
||||
return Ok(__result);
|
||||
}
|
||||
|
||||
// State 12
|
||||
// Expr = Expr "-" Factor (*) [EOF]
|
||||
// Expr = Expr "-" Factor (*) ["+"]
|
||||
// Expr = Expr "-" Factor (*) ["-"]
|
||||
// Factor = Factor (*) "*" Term [EOF]
|
||||
// Factor = Factor (*) "*" Term ["*"]
|
||||
// Factor = Factor (*) "*" Term ["+"]
|
||||
// Factor = Factor (*) "*" Term ["-"]
|
||||
// Factor = Factor (*) "*" Term ["/"]
|
||||
// Factor = Factor (*) "/" Term [EOF]
|
||||
// Factor = Factor (*) "/" Term ["*"]
|
||||
// Factor = Factor (*) "/" Term ["+"]
|
||||
// Factor = Factor (*) "/" Term ["-"]
|
||||
// Factor = Factor (*) "/" Term ["/"]
|
||||
// Expr = Expr "-" Factor (*) [")"]
|
||||
// Expr = Expr "-" Factor (*) ["+"]
|
||||
// Expr = Expr "-" Factor (*) ["-"]
|
||||
// Factor = Factor (*) "*" Term [")"]
|
||||
// Factor = Factor (*) "*" Term ["*"]
|
||||
// Factor = Factor (*) "*" Term ["+"]
|
||||
// Factor = Factor (*) "*" Term ["-"]
|
||||
// Factor = Factor (*) "*" Term ["/"]
|
||||
// Factor = Factor (*) "/" Term [")"]
|
||||
// Factor = Factor (*) "/" Term ["*"]
|
||||
// Factor = Factor (*) "/" Term ["+"]
|
||||
// Factor = Factor (*) "/" Term ["-"]
|
||||
// Factor = Factor (*) "/" Term ["/"]
|
||||
//
|
||||
// EOF -> Reduce(Expr = Expr, "-", Factor => ActionFn(1);)
|
||||
// ")" -> Reduce(Expr = Expr, "-", Factor => ActionFn(1);)
|
||||
// "*" -> Shift(S8)
|
||||
// "+" -> Reduce(Expr = Expr, "-", Factor => ActionFn(1);)
|
||||
// "-" -> Reduce(Expr = Expr, "-", Factor => ActionFn(1);)
|
||||
// "/" -> Shift(S9)
|
||||
//
|
||||
pub fn __state12<
|
||||
__TOKENS: Iterator<Item=Result<((), Tok, ()),()>>,
|
||||
>(
|
||||
@ -630,6 +1141,25 @@ mod __parse__Expr {
|
||||
return Ok(__result);
|
||||
}
|
||||
|
||||
// State 13
|
||||
// Factor = Factor "*" Term (*) [EOF]
|
||||
// Factor = Factor "*" Term (*) ["*"]
|
||||
// Factor = Factor "*" Term (*) ["+"]
|
||||
// Factor = Factor "*" Term (*) ["-"]
|
||||
// Factor = Factor "*" Term (*) ["/"]
|
||||
// Factor = Factor "*" Term (*) [")"]
|
||||
// Factor = Factor "*" Term (*) ["*"]
|
||||
// Factor = Factor "*" Term (*) ["+"]
|
||||
// Factor = Factor "*" Term (*) ["-"]
|
||||
// Factor = Factor "*" Term (*) ["/"]
|
||||
//
|
||||
// EOF -> Reduce(Factor = Factor, "*", Term => ActionFn(4);)
|
||||
// ")" -> Reduce(Factor = Factor, "*", Term => ActionFn(4);)
|
||||
// "*" -> Reduce(Factor = Factor, "*", Term => ActionFn(4);)
|
||||
// "+" -> Reduce(Factor = Factor, "*", Term => ActionFn(4);)
|
||||
// "-" -> Reduce(Factor = Factor, "*", Term => ActionFn(4);)
|
||||
// "/" -> Reduce(Factor = Factor, "*", Term => ActionFn(4);)
|
||||
//
|
||||
pub fn __state13<
|
||||
__TOKENS: Iterator<Item=Result<((), Tok, ()),()>>,
|
||||
>(
|
||||
@ -671,6 +1201,25 @@ mod __parse__Expr {
|
||||
}
|
||||
}
|
||||
|
||||
// State 14
|
||||
// Factor = Factor "/" Term (*) [EOF]
|
||||
// Factor = Factor "/" Term (*) ["*"]
|
||||
// Factor = Factor "/" Term (*) ["+"]
|
||||
// Factor = Factor "/" Term (*) ["-"]
|
||||
// Factor = Factor "/" Term (*) ["/"]
|
||||
// Factor = Factor "/" Term (*) [")"]
|
||||
// Factor = Factor "/" Term (*) ["*"]
|
||||
// Factor = Factor "/" Term (*) ["+"]
|
||||
// Factor = Factor "/" Term (*) ["-"]
|
||||
// Factor = Factor "/" Term (*) ["/"]
|
||||
//
|
||||
// EOF -> Reduce(Factor = Factor, "/", Term => ActionFn(5);)
|
||||
// ")" -> Reduce(Factor = Factor, "/", Term => ActionFn(5);)
|
||||
// "*" -> Reduce(Factor = Factor, "/", Term => ActionFn(5);)
|
||||
// "+" -> Reduce(Factor = Factor, "/", Term => ActionFn(5);)
|
||||
// "-" -> Reduce(Factor = Factor, "/", Term => ActionFn(5);)
|
||||
// "/" -> Reduce(Factor = Factor, "/", Term => ActionFn(5);)
|
||||
//
|
||||
pub fn __state14<
|
||||
__TOKENS: Iterator<Item=Result<((), Tok, ()),()>>,
|
||||
>(
|
||||
@ -712,6 +1261,25 @@ mod __parse__Expr {
|
||||
}
|
||||
}
|
||||
|
||||
// State 15
|
||||
// Term = "(" Expr ")" (*) [EOF]
|
||||
// Term = "(" Expr ")" (*) ["*"]
|
||||
// Term = "(" Expr ")" (*) ["+"]
|
||||
// Term = "(" Expr ")" (*) ["-"]
|
||||
// Term = "(" Expr ")" (*) ["/"]
|
||||
// Term = "(" Expr ")" (*) [")"]
|
||||
// Term = "(" Expr ")" (*) ["*"]
|
||||
// Term = "(" Expr ")" (*) ["+"]
|
||||
// Term = "(" Expr ")" (*) ["-"]
|
||||
// Term = "(" Expr ")" (*) ["/"]
|
||||
//
|
||||
// EOF -> Reduce(Term = "(", Expr, ")" => ActionFn(8);)
|
||||
// ")" -> Reduce(Term = "(", Expr, ")" => ActionFn(8);)
|
||||
// "*" -> Reduce(Term = "(", Expr, ")" => ActionFn(8);)
|
||||
// "+" -> Reduce(Term = "(", Expr, ")" => ActionFn(8);)
|
||||
// "-" -> Reduce(Term = "(", Expr, ")" => ActionFn(8);)
|
||||
// "/" -> Reduce(Term = "(", Expr, ")" => ActionFn(8);)
|
||||
//
|
||||
pub fn __state15<
|
||||
__TOKENS: Iterator<Item=Result<((), Tok, ()),()>>,
|
||||
>(
|
||||
|
@ -39,6 +39,16 @@ mod __parse__E {
|
||||
____E((usize, String, usize)),
|
||||
}
|
||||
|
||||
// State 0
|
||||
// E = (*) "&" E [EOF]
|
||||
// E = (*) "&" "L" E [EOF]
|
||||
// E = (*) "L" [EOF]
|
||||
// __E = (*) E [EOF]
|
||||
//
|
||||
// "&" -> Shift(S2)
|
||||
// "L" -> Shift(S3)
|
||||
//
|
||||
// E -> S1
|
||||
pub fn __state0<
|
||||
'input,
|
||||
__TOKENS: Iterator<Item=Result<(usize, (usize, &'input str), usize),__ParseError<usize,(usize, &'input str),()>>>,
|
||||
@ -79,6 +89,11 @@ mod __parse__E {
|
||||
}
|
||||
}
|
||||
|
||||
// State 1
|
||||
// __E = E (*) [EOF]
|
||||
//
|
||||
// EOF -> Reduce(__E = E => ActionFn(0);)
|
||||
//
|
||||
pub fn __state1<
|
||||
'input,
|
||||
__TOKENS: Iterator<Item=Result<(usize, (usize, &'input str), usize),__ParseError<usize,(usize, &'input str),()>>>,
|
||||
@ -112,6 +127,17 @@ mod __parse__E {
|
||||
}
|
||||
}
|
||||
|
||||
// State 2
|
||||
// E = (*) "&" E [EOF]
|
||||
// E = "&" (*) E [EOF]
|
||||
// E = (*) "&" "L" E [EOF]
|
||||
// E = "&" (*) "L" E [EOF]
|
||||
// E = (*) "L" [EOF]
|
||||
//
|
||||
// "&" -> Shift(S2)
|
||||
// "L" -> Shift(S5)
|
||||
//
|
||||
// E -> S4
|
||||
pub fn __state2<
|
||||
'input,
|
||||
__TOKENS: Iterator<Item=Result<(usize, (usize, &'input str), usize),__ParseError<usize,(usize, &'input str),()>>>,
|
||||
@ -158,6 +184,11 @@ mod __parse__E {
|
||||
return Ok(__result);
|
||||
}
|
||||
|
||||
// State 3
|
||||
// E = "L" (*) [EOF]
|
||||
//
|
||||
// EOF -> Reduce(E = "L" => ActionFn(1);)
|
||||
//
|
||||
pub fn __state3<
|
||||
'input,
|
||||
__TOKENS: Iterator<Item=Result<(usize, (usize, &'input str), usize),__ParseError<usize,(usize, &'input str),()>>>,
|
||||
@ -195,6 +226,11 @@ mod __parse__E {
|
||||
}
|
||||
}
|
||||
|
||||
// State 4
|
||||
// E = "&" E (*) [EOF]
|
||||
//
|
||||
// EOF -> Reduce(E = "&", E => ActionFn(7);)
|
||||
//
|
||||
pub fn __state4<
|
||||
'input,
|
||||
__TOKENS: Iterator<Item=Result<(usize, (usize, &'input str), usize),__ParseError<usize,(usize, &'input str),()>>>,
|
||||
@ -230,6 +266,18 @@ mod __parse__E {
|
||||
}
|
||||
}
|
||||
|
||||
// State 5
|
||||
// E = (*) "&" E [EOF]
|
||||
// E = (*) "&" "L" E [EOF]
|
||||
// E = "&" "L" (*) E [EOF]
|
||||
// E = (*) "L" [EOF]
|
||||
// E = "L" (*) [EOF]
|
||||
//
|
||||
// EOF -> Reduce(E = "L" => ActionFn(1);)
|
||||
// "&" -> Shift(S2)
|
||||
// "L" -> Shift(S3)
|
||||
//
|
||||
// E -> S6
|
||||
pub fn __state5<
|
||||
'input,
|
||||
__TOKENS: Iterator<Item=Result<(usize, (usize, &'input str), usize),__ParseError<usize,(usize, &'input str),()>>>,
|
||||
@ -289,6 +337,11 @@ mod __parse__E {
|
||||
return Ok(__result);
|
||||
}
|
||||
|
||||
// State 6
|
||||
// E = "&" "L" E (*) [EOF]
|
||||
//
|
||||
// EOF -> Reduce(E = "&", "L", E => ActionFn(8);)
|
||||
//
|
||||
pub fn __state6<
|
||||
'input,
|
||||
__TOKENS: Iterator<Item=Result<(usize, (usize, &'input str), usize),__ParseError<usize,(usize, &'input str),()>>>,
|
||||
|
@ -42,6 +42,23 @@ mod __parse__Items {
|
||||
____Items((usize, Vec<(usize, usize)>, usize)),
|
||||
}
|
||||
|
||||
// State 0
|
||||
// Items = (*) [EOF]
|
||||
// Items = (*) ["+"]
|
||||
// Items = (*) ["-"]
|
||||
// Items = (*) Items Spanned<"+"> [EOF]
|
||||
// Items = (*) Items Spanned<"+"> ["+"]
|
||||
// Items = (*) Items Spanned<"+"> ["-"]
|
||||
// Items = (*) Items "-" [EOF]
|
||||
// Items = (*) Items "-" ["+"]
|
||||
// Items = (*) Items "-" ["-"]
|
||||
// __Items = (*) Items [EOF]
|
||||
//
|
||||
// EOF -> Reduce(Items = => ActionFn(9);)
|
||||
// "+" -> Reduce(Items = => ActionFn(9);)
|
||||
// "-" -> Reduce(Items = => ActionFn(9);)
|
||||
//
|
||||
// Items -> S1
|
||||
pub fn __state0<
|
||||
'input,
|
||||
__TOKENS: Iterator<Item=Result<(usize, (usize, &'input str), usize),__ParseError<usize,(usize, &'input str),()>>>,
|
||||
@ -87,6 +104,23 @@ mod __parse__Items {
|
||||
}
|
||||
}
|
||||
|
||||
// State 1
|
||||
// Items = Items (*) Spanned<"+"> [EOF]
|
||||
// Items = Items (*) Spanned<"+"> ["+"]
|
||||
// Items = Items (*) Spanned<"+"> ["-"]
|
||||
// Items = Items (*) "-" [EOF]
|
||||
// Items = Items (*) "-" ["+"]
|
||||
// Items = Items (*) "-" ["-"]
|
||||
// Spanned<"+"> = (*) "+" [EOF]
|
||||
// Spanned<"+"> = (*) "+" ["+"]
|
||||
// Spanned<"+"> = (*) "+" ["-"]
|
||||
// __Items = Items (*) [EOF]
|
||||
//
|
||||
// EOF -> Reduce(__Items = Items => ActionFn(0);)
|
||||
// "+" -> Shift(S3)
|
||||
// "-" -> Shift(S4)
|
||||
//
|
||||
// Spanned<"+"> -> S2
|
||||
pub fn __state1<
|
||||
'input,
|
||||
__TOKENS: Iterator<Item=Result<(usize, (usize, &'input str), usize),__ParseError<usize,(usize, &'input str),()>>>,
|
||||
@ -141,6 +175,15 @@ mod __parse__Items {
|
||||
return Ok(__result);
|
||||
}
|
||||
|
||||
// State 2
|
||||
// Items = Items Spanned<"+"> (*) [EOF]
|
||||
// Items = Items Spanned<"+"> (*) ["+"]
|
||||
// Items = Items Spanned<"+"> (*) ["-"]
|
||||
//
|
||||
// EOF -> Reduce(Items = Items, Spanned<"+"> => ActionFn(2);)
|
||||
// "+" -> Reduce(Items = Items, Spanned<"+"> => ActionFn(2);)
|
||||
// "-" -> Reduce(Items = Items, Spanned<"+"> => ActionFn(2);)
|
||||
//
|
||||
pub fn __state2<
|
||||
'input,
|
||||
__TOKENS: Iterator<Item=Result<(usize, (usize, &'input str), usize),__ParseError<usize,(usize, &'input str),()>>>,
|
||||
@ -178,6 +221,15 @@ mod __parse__Items {
|
||||
}
|
||||
}
|
||||
|
||||
// State 3
|
||||
// Spanned<"+"> = "+" (*) [EOF]
|
||||
// Spanned<"+"> = "+" (*) ["+"]
|
||||
// Spanned<"+"> = "+" (*) ["-"]
|
||||
//
|
||||
// EOF -> Reduce(Spanned<"+"> = "+" => ActionFn(10);)
|
||||
// "+" -> Reduce(Spanned<"+"> = "+" => ActionFn(10);)
|
||||
// "-" -> Reduce(Spanned<"+"> = "+" => ActionFn(10);)
|
||||
//
|
||||
pub fn __state3<
|
||||
'input,
|
||||
__TOKENS: Iterator<Item=Result<(usize, (usize, &'input str), usize),__ParseError<usize,(usize, &'input str),()>>>,
|
||||
@ -217,6 +269,15 @@ mod __parse__Items {
|
||||
}
|
||||
}
|
||||
|
||||
// State 4
|
||||
// Items = Items "-" (*) [EOF]
|
||||
// Items = Items "-" (*) ["+"]
|
||||
// Items = Items "-" (*) ["-"]
|
||||
//
|
||||
// EOF -> Reduce(Items = Items, "-" => ActionFn(3);)
|
||||
// "+" -> Reduce(Items = Items, "-" => ActionFn(3);)
|
||||
// "-" -> Reduce(Items = Items, "-" => ActionFn(3);)
|
||||
//
|
||||
pub fn __state4<
|
||||
'input,
|
||||
__TOKENS: Iterator<Item=Result<(usize, (usize, &'input str), usize),__ParseError<usize,(usize, &'input str),()>>>,
|
||||
|
@ -44,6 +44,20 @@ mod __parse__Expr {
|
||||
____Expr(((), Vec<&'input str>, ())),
|
||||
}
|
||||
|
||||
// State 0
|
||||
// Expr = (*) [EOF]
|
||||
// Expr = (*) Other+ [EOF]
|
||||
// Other+ = (*) Other+ Other [EOF]
|
||||
// Other+ = (*) Other+ Other [Other]
|
||||
// Other+ = (*) Other [EOF]
|
||||
// Other+ = (*) Other [Other]
|
||||
// __Expr = (*) Expr [EOF]
|
||||
//
|
||||
// EOF -> Reduce(Expr = => ActionFn(6);)
|
||||
// Other -> Shift(S3)
|
||||
//
|
||||
// Expr -> S1
|
||||
// Other+ -> S2
|
||||
pub fn __state0<
|
||||
'input,
|
||||
__TOKENS: Iterator<Item=Result<((), LtTok<'input>, ()),()>>,
|
||||
@ -94,6 +108,11 @@ mod __parse__Expr {
|
||||
}
|
||||
}
|
||||
|
||||
// State 1
|
||||
// __Expr = Expr (*) [EOF]
|
||||
//
|
||||
// EOF -> Reduce(__Expr = Expr => ActionFn(0);)
|
||||
//
|
||||
pub fn __state1<
|
||||
'input,
|
||||
__TOKENS: Iterator<Item=Result<((), LtTok<'input>, ()),()>>,
|
||||
@ -126,6 +145,14 @@ mod __parse__Expr {
|
||||
}
|
||||
}
|
||||
|
||||
// State 2
|
||||
// Expr = Other+ (*) [EOF]
|
||||
// Other+ = Other+ (*) Other [EOF]
|
||||
// Other+ = Other+ (*) Other [Other]
|
||||
//
|
||||
// EOF -> Reduce(Expr = Other+ => ActionFn(7);)
|
||||
// Other -> Shift(S4)
|
||||
//
|
||||
pub fn __state2<
|
||||
'input,
|
||||
__TOKENS: Iterator<Item=Result<((), LtTok<'input>, ()),()>>,
|
||||
@ -163,6 +190,13 @@ mod __parse__Expr {
|
||||
return Ok(__result);
|
||||
}
|
||||
|
||||
// State 3
|
||||
// Other+ = Other (*) [EOF]
|
||||
// Other+ = Other (*) [Other]
|
||||
//
|
||||
// EOF -> Reduce(Other+ = Other => ActionFn(4);)
|
||||
// Other -> Reduce(Other+ = Other => ActionFn(4);)
|
||||
//
|
||||
pub fn __state3<
|
||||
'input,
|
||||
__TOKENS: Iterator<Item=Result<((), LtTok<'input>, ()),()>>,
|
||||
@ -200,6 +234,13 @@ mod __parse__Expr {
|
||||
}
|
||||
}
|
||||
|
||||
// State 4
|
||||
// Other+ = Other+ Other (*) [EOF]
|
||||
// Other+ = Other+ Other (*) [Other]
|
||||
//
|
||||
// EOF -> Reduce(Other+ = Other+, Other => ActionFn(5);)
|
||||
// Other -> Reduce(Other+ = Other+, Other => ActionFn(5);)
|
||||
//
|
||||
pub fn __state4<
|
||||
'input,
|
||||
__TOKENS: Iterator<Item=Result<((), LtTok<'input>, ()),()>>,
|
||||
|
@ -44,6 +44,23 @@ mod __parse__Items {
|
||||
____Items((usize, Vec<(usize, usize)>, usize)),
|
||||
}
|
||||
|
||||
// State 0
|
||||
// Items = (*) [EOF]
|
||||
// Items = (*) ["+"]
|
||||
// Items = (*) ["-"]
|
||||
// Items = (*) Items Spanned<"+"> [EOF]
|
||||
// Items = (*) Items Spanned<"+"> ["+"]
|
||||
// Items = (*) Items Spanned<"+"> ["-"]
|
||||
// Items = (*) Items "-" [EOF]
|
||||
// Items = (*) Items "-" ["+"]
|
||||
// Items = (*) Items "-" ["-"]
|
||||
// __Items = (*) Items [EOF]
|
||||
//
|
||||
// EOF -> Reduce(Items = => ActionFn(9);)
|
||||
// "+" -> Reduce(Items = => ActionFn(9);)
|
||||
// "-" -> Reduce(Items = => ActionFn(9);)
|
||||
//
|
||||
// Items -> S1
|
||||
pub fn __state0<
|
||||
__TOKENS: Iterator<Item=Result<(usize, Tok, usize),()>>,
|
||||
>(
|
||||
@ -87,6 +104,23 @@ mod __parse__Items {
|
||||
}
|
||||
}
|
||||
|
||||
// State 1
|
||||
// Items = Items (*) Spanned<"+"> [EOF]
|
||||
// Items = Items (*) Spanned<"+"> ["+"]
|
||||
// Items = Items (*) Spanned<"+"> ["-"]
|
||||
// Items = Items (*) "-" [EOF]
|
||||
// Items = Items (*) "-" ["+"]
|
||||
// Items = Items (*) "-" ["-"]
|
||||
// Spanned<"+"> = (*) "+" [EOF]
|
||||
// Spanned<"+"> = (*) "+" ["+"]
|
||||
// Spanned<"+"> = (*) "+" ["-"]
|
||||
// __Items = Items (*) [EOF]
|
||||
//
|
||||
// EOF -> Reduce(__Items = Items => ActionFn(0);)
|
||||
// "+" -> Shift(S3)
|
||||
// "-" -> Shift(S4)
|
||||
//
|
||||
// Spanned<"+"> -> S2
|
||||
pub fn __state1<
|
||||
__TOKENS: Iterator<Item=Result<(usize, Tok, usize),()>>,
|
||||
>(
|
||||
@ -139,6 +173,15 @@ mod __parse__Items {
|
||||
return Ok(__result);
|
||||
}
|
||||
|
||||
// State 2
|
||||
// Items = Items Spanned<"+"> (*) [EOF]
|
||||
// Items = Items Spanned<"+"> (*) ["+"]
|
||||
// Items = Items Spanned<"+"> (*) ["-"]
|
||||
//
|
||||
// EOF -> Reduce(Items = Items, Spanned<"+"> => ActionFn(2);)
|
||||
// "+" -> Reduce(Items = Items, Spanned<"+"> => ActionFn(2);)
|
||||
// "-" -> Reduce(Items = Items, Spanned<"+"> => ActionFn(2);)
|
||||
//
|
||||
pub fn __state2<
|
||||
__TOKENS: Iterator<Item=Result<(usize, Tok, usize),()>>,
|
||||
>(
|
||||
@ -174,6 +217,15 @@ mod __parse__Items {
|
||||
}
|
||||
}
|
||||
|
||||
// State 3
|
||||
// Spanned<"+"> = "+" (*) [EOF]
|
||||
// Spanned<"+"> = "+" (*) ["+"]
|
||||
// Spanned<"+"> = "+" (*) ["-"]
|
||||
//
|
||||
// EOF -> Reduce(Spanned<"+"> = "+" => ActionFn(10);)
|
||||
// "+" -> Reduce(Spanned<"+"> = "+" => ActionFn(10);)
|
||||
// "-" -> Reduce(Spanned<"+"> = "+" => ActionFn(10);)
|
||||
//
|
||||
pub fn __state3<
|
||||
__TOKENS: Iterator<Item=Result<(usize, Tok, usize),()>>,
|
||||
>(
|
||||
@ -211,6 +263,15 @@ mod __parse__Items {
|
||||
}
|
||||
}
|
||||
|
||||
// State 4
|
||||
// Items = Items "-" (*) [EOF]
|
||||
// Items = Items "-" (*) ["+"]
|
||||
// Items = Items "-" (*) ["-"]
|
||||
//
|
||||
// EOF -> Reduce(Items = Items, "-" => ActionFn(3);)
|
||||
// "+" -> Reduce(Items = Items, "-" => ActionFn(3);)
|
||||
// "-" -> Reduce(Items = Items, "-" => ActionFn(3);)
|
||||
//
|
||||
pub fn __state4<
|
||||
__TOKENS: Iterator<Item=Result<(usize, Tok, usize),()>>,
|
||||
>(
|
||||
|
@ -46,6 +46,34 @@ mod __parse__Expression2 {
|
||||
____Expression2((usize, Box<Expr<'input>>, usize)),
|
||||
}
|
||||
|
||||
// State 0
|
||||
// Expression1 = (*) Wacky [EOF]
|
||||
// Expression1 = (*) Wacky ["*"]
|
||||
// Expression1 = (*) "&" Maybe Expression1 [EOF]
|
||||
// Expression1 = (*) "&" Maybe Expression1 ["*"]
|
||||
// Expression1 = (*) "(" Expression2 ")" [EOF]
|
||||
// Expression1 = (*) "(" Expression2 ")" ["*"]
|
||||
// Expression1 = (*) "wonky" Wonky [EOF]
|
||||
// Expression1 = (*) "wonky" Wonky ["*"]
|
||||
// Expression1 = (*) r#"\\w+"# [EOF]
|
||||
// Expression1 = (*) r#"\\w+"# ["*"]
|
||||
// Expression2 = (*) Expression1 [EOF]
|
||||
// Expression2 = (*) Expression1 ["*"]
|
||||
// Expression2 = (*) Expression2 Expression2Op Expression1 [EOF]
|
||||
// Expression2 = (*) Expression2 Expression2Op Expression1 ["*"]
|
||||
// Wacky = (*) "wacky" [EOF]
|
||||
// Wacky = (*) "wacky" ["*"]
|
||||
// __Expression2 = (*) Expression2 [EOF]
|
||||
//
|
||||
// "&" -> Shift(S4)
|
||||
// "(" -> Shift(S5)
|
||||
// "wacky" -> Shift(S6)
|
||||
// "wonky" -> Shift(S7)
|
||||
// r#"\\w+"# -> Shift(S8)
|
||||
//
|
||||
// Expression1 -> S1
|
||||
// Expression2 -> S2
|
||||
// Wacky -> S3
|
||||
pub fn __state0<
|
||||
'input,
|
||||
__TOKENS: Iterator<Item=Result<(usize, (usize, &'input str), usize),__ParseError<usize,(usize, &'input str),()>>>,
|
||||
@ -106,6 +134,13 @@ mod __parse__Expression2 {
|
||||
}
|
||||
}
|
||||
|
||||
// State 1
|
||||
// Expression2 = Expression1 (*) [EOF]
|
||||
// Expression2 = Expression1 (*) ["*"]
|
||||
//
|
||||
// EOF -> Reduce(Expression2 = Expression1 => ActionFn(29);)
|
||||
// "*" -> Reduce(Expression2 = Expression1 => ActionFn(29);)
|
||||
//
|
||||
pub fn __state1<
|
||||
'input,
|
||||
__TOKENS: Iterator<Item=Result<(usize, (usize, &'input str), usize),__ParseError<usize,(usize, &'input str),()>>>,
|
||||
@ -140,6 +175,20 @@ mod __parse__Expression2 {
|
||||
}
|
||||
}
|
||||
|
||||
// State 2
|
||||
// Expression2 = Expression2 (*) Expression2Op Expression1 [EOF]
|
||||
// Expression2 = Expression2 (*) Expression2Op Expression1 ["*"]
|
||||
// Expression2Op = (*) "*" ["&"]
|
||||
// Expression2Op = (*) "*" ["("]
|
||||
// Expression2Op = (*) "*" ["wacky"]
|
||||
// Expression2Op = (*) "*" ["wonky"]
|
||||
// Expression2Op = (*) "*" [r#"\\w+"#]
|
||||
// __Expression2 = Expression2 (*) [EOF]
|
||||
//
|
||||
// EOF -> Reduce(__Expression2 = Expression2 => ActionFn(0);)
|
||||
// "*" -> Shift(S10)
|
||||
//
|
||||
// Expression2Op -> S9
|
||||
pub fn __state2<
|
||||
'input,
|
||||
__TOKENS: Iterator<Item=Result<(usize, (usize, &'input str), usize),__ParseError<usize,(usize, &'input str),()>>>,
|
||||
@ -190,6 +239,13 @@ mod __parse__Expression2 {
|
||||
return Ok(__result);
|
||||
}
|
||||
|
||||
// State 3
|
||||
// Expression1 = Wacky (*) [EOF]
|
||||
// Expression1 = Wacky (*) ["*"]
|
||||
//
|
||||
// EOF -> Reduce(Expression1 = Wacky => ActionFn(8);)
|
||||
// "*" -> Reduce(Expression1 = Wacky => ActionFn(8);)
|
||||
//
|
||||
pub fn __state3<
|
||||
'input,
|
||||
__TOKENS: Iterator<Item=Result<(usize, (usize, &'input str), usize),__ParseError<usize,(usize, &'input str),()>>>,
|
||||
@ -224,6 +280,28 @@ mod __parse__Expression2 {
|
||||
}
|
||||
}
|
||||
|
||||
// State 4
|
||||
// Expression1 = "&" (*) Maybe Expression1 [EOF]
|
||||
// Expression1 = "&" (*) Maybe Expression1 ["*"]
|
||||
// Maybe = (*) ["&"]
|
||||
// Maybe = (*) ["("]
|
||||
// Maybe = (*) ["wacky"]
|
||||
// Maybe = (*) ["wonky"]
|
||||
// Maybe = (*) [r#"\\w+"#]
|
||||
// Maybe = (*) "[" "]" ["&"]
|
||||
// Maybe = (*) "[" "]" ["("]
|
||||
// Maybe = (*) "[" "]" ["wacky"]
|
||||
// Maybe = (*) "[" "]" ["wonky"]
|
||||
// Maybe = (*) "[" "]" [r#"\\w+"#]
|
||||
//
|
||||
// "&" -> Reduce(Maybe = => ActionFn(31);)
|
||||
// "(" -> Reduce(Maybe = => ActionFn(31);)
|
||||
// "[" -> Shift(S12)
|
||||
// "wacky" -> Reduce(Maybe = => ActionFn(31);)
|
||||
// "wonky" -> Reduce(Maybe = => ActionFn(31);)
|
||||
// r#"\\w+"# -> Reduce(Maybe = => ActionFn(31);)
|
||||
//
|
||||
// Maybe -> S11
|
||||
pub fn __state4<
|
||||
'input,
|
||||
__TOKENS: Iterator<Item=Result<(usize, (usize, &'input str), usize),__ParseError<usize,(usize, &'input str),()>>>,
|
||||
@ -281,6 +359,35 @@ mod __parse__Expression2 {
|
||||
return Ok(__result);
|
||||
}
|
||||
|
||||
// State 5
|
||||
// Expression1 = (*) Wacky [")"]
|
||||
// Expression1 = (*) Wacky ["*"]
|
||||
// Expression1 = (*) "&" Maybe Expression1 [")"]
|
||||
// Expression1 = (*) "&" Maybe Expression1 ["*"]
|
||||
// Expression1 = (*) "(" Expression2 ")" [")"]
|
||||
// Expression1 = (*) "(" Expression2 ")" ["*"]
|
||||
// Expression1 = "(" (*) Expression2 ")" [EOF]
|
||||
// Expression1 = "(" (*) Expression2 ")" ["*"]
|
||||
// Expression1 = (*) "wonky" Wonky [")"]
|
||||
// Expression1 = (*) "wonky" Wonky ["*"]
|
||||
// Expression1 = (*) r#"\\w+"# [")"]
|
||||
// Expression1 = (*) r#"\\w+"# ["*"]
|
||||
// Expression2 = (*) Expression1 [")"]
|
||||
// Expression2 = (*) Expression1 ["*"]
|
||||
// Expression2 = (*) Expression2 Expression2Op Expression1 [")"]
|
||||
// Expression2 = (*) Expression2 Expression2Op Expression1 ["*"]
|
||||
// Wacky = (*) "wacky" [")"]
|
||||
// Wacky = (*) "wacky" ["*"]
|
||||
//
|
||||
// "&" -> Shift(S16)
|
||||
// "(" -> Shift(S17)
|
||||
// "wacky" -> Shift(S18)
|
||||
// "wonky" -> Shift(S19)
|
||||
// r#"\\w+"# -> Shift(S20)
|
||||
//
|
||||
// Expression1 -> S13
|
||||
// Expression2 -> S14
|
||||
// Wacky -> S15
|
||||
pub fn __state5<
|
||||
'input,
|
||||
__TOKENS: Iterator<Item=Result<(usize, (usize, &'input str), usize),__ParseError<usize,(usize, &'input str),()>>>,
|
||||
@ -347,6 +454,13 @@ mod __parse__Expression2 {
|
||||
return Ok(__result);
|
||||
}
|
||||
|
||||
// State 6
|
||||
// Wacky = "wacky" (*) [EOF]
|
||||
// Wacky = "wacky" (*) ["*"]
|
||||
//
|
||||
// EOF -> Reduce(Wacky = "wacky" => ActionFn(33);)
|
||||
// "*" -> Reduce(Wacky = "wacky" => ActionFn(33);)
|
||||
//
|
||||
pub fn __state6<
|
||||
'input,
|
||||
__TOKENS: Iterator<Item=Result<(usize, (usize, &'input str), usize),__ParseError<usize,(usize, &'input str),()>>>,
|
||||
@ -385,6 +499,16 @@ mod __parse__Expression2 {
|
||||
}
|
||||
}
|
||||
|
||||
// State 7
|
||||
// Expression1 = "wonky" (*) Wonky [EOF]
|
||||
// Expression1 = "wonky" (*) Wonky ["*"]
|
||||
// Wonky = (*) [EOF]
|
||||
// Wonky = (*) ["*"]
|
||||
//
|
||||
// EOF -> Reduce(Wonky = => ActionFn(34);)
|
||||
// "*" -> Reduce(Wonky = => ActionFn(34);)
|
||||
//
|
||||
// Wonky -> S21
|
||||
pub fn __state7<
|
||||
'input,
|
||||
__TOKENS: Iterator<Item=Result<(usize, (usize, &'input str), usize),__ParseError<usize,(usize, &'input str),()>>>,
|
||||
@ -435,6 +559,13 @@ mod __parse__Expression2 {
|
||||
return Ok(__result);
|
||||
}
|
||||
|
||||
// State 8
|
||||
// Expression1 = r#"\\w+"# (*) [EOF]
|
||||
// Expression1 = r#"\\w+"# (*) ["*"]
|
||||
//
|
||||
// EOF -> Reduce(Expression1 = r#"\\w+"# => ActionFn(26);)
|
||||
// "*" -> Reduce(Expression1 = r#"\\w+"# => ActionFn(26);)
|
||||
//
|
||||
pub fn __state8<
|
||||
'input,
|
||||
__TOKENS: Iterator<Item=Result<(usize, (usize, &'input str), usize),__ParseError<usize,(usize, &'input str),()>>>,
|
||||
@ -473,6 +604,30 @@ mod __parse__Expression2 {
|
||||
}
|
||||
}
|
||||
|
||||
// State 9
|
||||
// Expression1 = (*) Wacky [EOF]
|
||||
// Expression1 = (*) Wacky ["*"]
|
||||
// Expression1 = (*) "&" Maybe Expression1 [EOF]
|
||||
// Expression1 = (*) "&" Maybe Expression1 ["*"]
|
||||
// Expression1 = (*) "(" Expression2 ")" [EOF]
|
||||
// Expression1 = (*) "(" Expression2 ")" ["*"]
|
||||
// Expression1 = (*) "wonky" Wonky [EOF]
|
||||
// Expression1 = (*) "wonky" Wonky ["*"]
|
||||
// Expression1 = (*) r#"\\w+"# [EOF]
|
||||
// Expression1 = (*) r#"\\w+"# ["*"]
|
||||
// Expression2 = Expression2 Expression2Op (*) Expression1 [EOF]
|
||||
// Expression2 = Expression2 Expression2Op (*) Expression1 ["*"]
|
||||
// Wacky = (*) "wacky" [EOF]
|
||||
// Wacky = (*) "wacky" ["*"]
|
||||
//
|
||||
// "&" -> Shift(S4)
|
||||
// "(" -> Shift(S5)
|
||||
// "wacky" -> Shift(S6)
|
||||
// "wonky" -> Shift(S7)
|
||||
// r#"\\w+"# -> Shift(S8)
|
||||
//
|
||||
// Expression1 -> S22
|
||||
// Wacky -> S3
|
||||
pub fn __state9<
|
||||
'input,
|
||||
__TOKENS: Iterator<Item=Result<(usize, (usize, &'input str), usize),__ParseError<usize,(usize, &'input str),()>>>,
|
||||
@ -532,6 +687,19 @@ mod __parse__Expression2 {
|
||||
return Ok(__result);
|
||||
}
|
||||
|
||||
// State 10
|
||||
// Expression2Op = "*" (*) ["&"]
|
||||
// Expression2Op = "*" (*) ["("]
|
||||
// Expression2Op = "*" (*) ["wacky"]
|
||||
// Expression2Op = "*" (*) ["wonky"]
|
||||
// Expression2Op = "*" (*) [r#"\\w+"#]
|
||||
//
|
||||
// "&" -> Reduce(Expression2Op = "*" => ActionFn(30);)
|
||||
// "(" -> Reduce(Expression2Op = "*" => ActionFn(30);)
|
||||
// "wacky" -> Reduce(Expression2Op = "*" => ActionFn(30);)
|
||||
// "wonky" -> Reduce(Expression2Op = "*" => ActionFn(30);)
|
||||
// r#"\\w+"# -> Reduce(Expression2Op = "*" => ActionFn(30);)
|
||||
//
|
||||
pub fn __state10<
|
||||
'input,
|
||||
__TOKENS: Iterator<Item=Result<(usize, (usize, &'input str), usize),__ParseError<usize,(usize, &'input str),()>>>,
|
||||
@ -573,6 +741,30 @@ mod __parse__Expression2 {
|
||||
}
|
||||
}
|
||||
|
||||
// State 11
|
||||
// Expression1 = (*) Wacky [EOF]
|
||||
// Expression1 = (*) Wacky ["*"]
|
||||
// Expression1 = (*) "&" Maybe Expression1 [EOF]
|
||||
// Expression1 = (*) "&" Maybe Expression1 ["*"]
|
||||
// Expression1 = "&" Maybe (*) Expression1 [EOF]
|
||||
// Expression1 = "&" Maybe (*) Expression1 ["*"]
|
||||
// Expression1 = (*) "(" Expression2 ")" [EOF]
|
||||
// Expression1 = (*) "(" Expression2 ")" ["*"]
|
||||
// Expression1 = (*) "wonky" Wonky [EOF]
|
||||
// Expression1 = (*) "wonky" Wonky ["*"]
|
||||
// Expression1 = (*) r#"\\w+"# [EOF]
|
||||
// Expression1 = (*) r#"\\w+"# ["*"]
|
||||
// Wacky = (*) "wacky" [EOF]
|
||||
// Wacky = (*) "wacky" ["*"]
|
||||
//
|
||||
// "&" -> Shift(S4)
|
||||
// "(" -> Shift(S5)
|
||||
// "wacky" -> Shift(S6)
|
||||
// "wonky" -> Shift(S7)
|
||||
// r#"\\w+"# -> Shift(S8)
|
||||
//
|
||||
// Expression1 -> S23
|
||||
// Wacky -> S3
|
||||
pub fn __state11<
|
||||
'input,
|
||||
__TOKENS: Iterator<Item=Result<(usize, (usize, &'input str), usize),__ParseError<usize,(usize, &'input str),()>>>,
|
||||
@ -632,6 +824,15 @@ mod __parse__Expression2 {
|
||||
return Ok(__result);
|
||||
}
|
||||
|
||||
// State 12
|
||||
// Maybe = "[" (*) "]" ["&"]
|
||||
// Maybe = "[" (*) "]" ["("]
|
||||
// Maybe = "[" (*) "]" ["wacky"]
|
||||
// Maybe = "[" (*) "]" ["wonky"]
|
||||
// Maybe = "[" (*) "]" [r#"\\w+"#]
|
||||
//
|
||||
// "]" -> Shift(S24)
|
||||
//
|
||||
pub fn __state12<
|
||||
'input,
|
||||
__TOKENS: Iterator<Item=Result<(usize, (usize, &'input str), usize),__ParseError<usize,(usize, &'input str),()>>>,
|
||||
@ -662,6 +863,13 @@ mod __parse__Expression2 {
|
||||
return Ok(__result);
|
||||
}
|
||||
|
||||
// State 13
|
||||
// Expression2 = Expression1 (*) [")"]
|
||||
// Expression2 = Expression1 (*) ["*"]
|
||||
//
|
||||
// ")" -> Reduce(Expression2 = Expression1 => ActionFn(29);)
|
||||
// "*" -> Reduce(Expression2 = Expression1 => ActionFn(29);)
|
||||
//
|
||||
pub fn __state13<
|
||||
'input,
|
||||
__TOKENS: Iterator<Item=Result<(usize, (usize, &'input str), usize),__ParseError<usize,(usize, &'input str),()>>>,
|
||||
@ -696,6 +904,21 @@ mod __parse__Expression2 {
|
||||
}
|
||||
}
|
||||
|
||||
// State 14
|
||||
// Expression1 = "(" Expression2 (*) ")" [EOF]
|
||||
// Expression1 = "(" Expression2 (*) ")" ["*"]
|
||||
// Expression2 = Expression2 (*) Expression2Op Expression1 [")"]
|
||||
// Expression2 = Expression2 (*) Expression2Op Expression1 ["*"]
|
||||
// Expression2Op = (*) "*" ["&"]
|
||||
// Expression2Op = (*) "*" ["("]
|
||||
// Expression2Op = (*) "*" ["wacky"]
|
||||
// Expression2Op = (*) "*" ["wonky"]
|
||||
// Expression2Op = (*) "*" [r#"\\w+"#]
|
||||
//
|
||||
// ")" -> Shift(S26)
|
||||
// "*" -> Shift(S10)
|
||||
//
|
||||
// Expression2Op -> S25
|
||||
pub fn __state14<
|
||||
'input,
|
||||
__TOKENS: Iterator<Item=Result<(usize, (usize, &'input str), usize),__ParseError<usize,(usize, &'input str),()>>>,
|
||||
@ -739,6 +962,13 @@ mod __parse__Expression2 {
|
||||
return Ok(__result);
|
||||
}
|
||||
|
||||
// State 15
|
||||
// Expression1 = Wacky (*) [")"]
|
||||
// Expression1 = Wacky (*) ["*"]
|
||||
//
|
||||
// ")" -> Reduce(Expression1 = Wacky => ActionFn(8);)
|
||||
// "*" -> Reduce(Expression1 = Wacky => ActionFn(8);)
|
||||
//
|
||||
pub fn __state15<
|
||||
'input,
|
||||
__TOKENS: Iterator<Item=Result<(usize, (usize, &'input str), usize),__ParseError<usize,(usize, &'input str),()>>>,
|
||||
@ -773,6 +1003,28 @@ mod __parse__Expression2 {
|
||||
}
|
||||
}
|
||||
|
||||
// State 16
|
||||
// Expression1 = "&" (*) Maybe Expression1 [")"]
|
||||
// Expression1 = "&" (*) Maybe Expression1 ["*"]
|
||||
// Maybe = (*) ["&"]
|
||||
// Maybe = (*) ["("]
|
||||
// Maybe = (*) ["wacky"]
|
||||
// Maybe = (*) ["wonky"]
|
||||
// Maybe = (*) [r#"\\w+"#]
|
||||
// Maybe = (*) "[" "]" ["&"]
|
||||
// Maybe = (*) "[" "]" ["("]
|
||||
// Maybe = (*) "[" "]" ["wacky"]
|
||||
// Maybe = (*) "[" "]" ["wonky"]
|
||||
// Maybe = (*) "[" "]" [r#"\\w+"#]
|
||||
//
|
||||
// "&" -> Reduce(Maybe = => ActionFn(31);)
|
||||
// "(" -> Reduce(Maybe = => ActionFn(31);)
|
||||
// "[" -> Shift(S12)
|
||||
// "wacky" -> Reduce(Maybe = => ActionFn(31);)
|
||||
// "wonky" -> Reduce(Maybe = => ActionFn(31);)
|
||||
// r#"\\w+"# -> Reduce(Maybe = => ActionFn(31);)
|
||||
//
|
||||
// Maybe -> S27
|
||||
pub fn __state16<
|
||||
'input,
|
||||
__TOKENS: Iterator<Item=Result<(usize, (usize, &'input str), usize),__ParseError<usize,(usize, &'input str),()>>>,
|
||||
@ -830,6 +1082,35 @@ mod __parse__Expression2 {
|
||||
return Ok(__result);
|
||||
}
|
||||
|
||||
// State 17
|
||||
// Expression1 = (*) Wacky [")"]
|
||||
// Expression1 = (*) Wacky ["*"]
|
||||
// Expression1 = (*) "&" Maybe Expression1 [")"]
|
||||
// Expression1 = (*) "&" Maybe Expression1 ["*"]
|
||||
// Expression1 = (*) "(" Expression2 ")" [")"]
|
||||
// Expression1 = (*) "(" Expression2 ")" ["*"]
|
||||
// Expression1 = "(" (*) Expression2 ")" [")"]
|
||||
// Expression1 = "(" (*) Expression2 ")" ["*"]
|
||||
// Expression1 = (*) "wonky" Wonky [")"]
|
||||
// Expression1 = (*) "wonky" Wonky ["*"]
|
||||
// Expression1 = (*) r#"\\w+"# [")"]
|
||||
// Expression1 = (*) r#"\\w+"# ["*"]
|
||||
// Expression2 = (*) Expression1 [")"]
|
||||
// Expression2 = (*) Expression1 ["*"]
|
||||
// Expression2 = (*) Expression2 Expression2Op Expression1 [")"]
|
||||
// Expression2 = (*) Expression2 Expression2Op Expression1 ["*"]
|
||||
// Wacky = (*) "wacky" [")"]
|
||||
// Wacky = (*) "wacky" ["*"]
|
||||
//
|
||||
// "&" -> Shift(S16)
|
||||
// "(" -> Shift(S17)
|
||||
// "wacky" -> Shift(S18)
|
||||
// "wonky" -> Shift(S19)
|
||||
// r#"\\w+"# -> Shift(S20)
|
||||
//
|
||||
// Expression1 -> S13
|
||||
// Expression2 -> S28
|
||||
// Wacky -> S15
|
||||
pub fn __state17<
|
||||
'input,
|
||||
__TOKENS: Iterator<Item=Result<(usize, (usize, &'input str), usize),__ParseError<usize,(usize, &'input str),()>>>,
|
||||
@ -896,6 +1177,13 @@ mod __parse__Expression2 {
|
||||
return Ok(__result);
|
||||
}
|
||||
|
||||
// State 18
|
||||
// Wacky = "wacky" (*) [")"]
|
||||
// Wacky = "wacky" (*) ["*"]
|
||||
//
|
||||
// ")" -> Reduce(Wacky = "wacky" => ActionFn(33);)
|
||||
// "*" -> Reduce(Wacky = "wacky" => ActionFn(33);)
|
||||
//
|
||||
pub fn __state18<
|
||||
'input,
|
||||
__TOKENS: Iterator<Item=Result<(usize, (usize, &'input str), usize),__ParseError<usize,(usize, &'input str),()>>>,
|
||||
@ -934,6 +1222,16 @@ mod __parse__Expression2 {
|
||||
}
|
||||
}
|
||||
|
||||
// State 19
|
||||
// Expression1 = "wonky" (*) Wonky [")"]
|
||||
// Expression1 = "wonky" (*) Wonky ["*"]
|
||||
// Wonky = (*) [")"]
|
||||
// Wonky = (*) ["*"]
|
||||
//
|
||||
// ")" -> Reduce(Wonky = => ActionFn(34);)
|
||||
// "*" -> Reduce(Wonky = => ActionFn(34);)
|
||||
//
|
||||
// Wonky -> S29
|
||||
pub fn __state19<
|
||||
'input,
|
||||
__TOKENS: Iterator<Item=Result<(usize, (usize, &'input str), usize),__ParseError<usize,(usize, &'input str),()>>>,
|
||||
@ -984,6 +1282,13 @@ mod __parse__Expression2 {
|
||||
return Ok(__result);
|
||||
}
|
||||
|
||||
// State 20
|
||||
// Expression1 = r#"\\w+"# (*) [")"]
|
||||
// Expression1 = r#"\\w+"# (*) ["*"]
|
||||
//
|
||||
// ")" -> Reduce(Expression1 = r#"\\w+"# => ActionFn(26);)
|
||||
// "*" -> Reduce(Expression1 = r#"\\w+"# => ActionFn(26);)
|
||||
//
|
||||
pub fn __state20<
|
||||
'input,
|
||||
__TOKENS: Iterator<Item=Result<(usize, (usize, &'input str), usize),__ParseError<usize,(usize, &'input str),()>>>,
|
||||
@ -1022,6 +1327,13 @@ mod __parse__Expression2 {
|
||||
}
|
||||
}
|
||||
|
||||
// State 21
|
||||
// Expression1 = "wonky" Wonky (*) [EOF]
|
||||
// Expression1 = "wonky" Wonky (*) ["*"]
|
||||
//
|
||||
// EOF -> Reduce(Expression1 = "wonky", Wonky => ActionFn(7);)
|
||||
// "*" -> Reduce(Expression1 = "wonky", Wonky => ActionFn(7);)
|
||||
//
|
||||
pub fn __state21<
|
||||
'input,
|
||||
__TOKENS: Iterator<Item=Result<(usize, (usize, &'input str), usize),__ParseError<usize,(usize, &'input str),()>>>,
|
||||
@ -1058,6 +1370,13 @@ mod __parse__Expression2 {
|
||||
}
|
||||
}
|
||||
|
||||
// State 22
|
||||
// Expression2 = Expression2 Expression2Op Expression1 (*) [EOF]
|
||||
// Expression2 = Expression2 Expression2Op Expression1 (*) ["*"]
|
||||
//
|
||||
// EOF -> Reduce(Expression2 = Expression2, Expression2Op, Expression1 => ActionFn(28);)
|
||||
// "*" -> Reduce(Expression2 = Expression2, Expression2Op, Expression1 => ActionFn(28);)
|
||||
//
|
||||
pub fn __state22<
|
||||
'input,
|
||||
__TOKENS: Iterator<Item=Result<(usize, (usize, &'input str), usize),__ParseError<usize,(usize, &'input str),()>>>,
|
||||
@ -1096,6 +1415,13 @@ mod __parse__Expression2 {
|
||||
}
|
||||
}
|
||||
|
||||
// State 23
|
||||
// Expression1 = "&" Maybe Expression1 (*) [EOF]
|
||||
// Expression1 = "&" Maybe Expression1 (*) ["*"]
|
||||
//
|
||||
// EOF -> Reduce(Expression1 = "&", Maybe, Expression1 => ActionFn(27);)
|
||||
// "*" -> Reduce(Expression1 = "&", Maybe, Expression1 => ActionFn(27);)
|
||||
//
|
||||
pub fn __state23<
|
||||
'input,
|
||||
__TOKENS: Iterator<Item=Result<(usize, (usize, &'input str), usize),__ParseError<usize,(usize, &'input str),()>>>,
|
||||
@ -1134,6 +1460,19 @@ mod __parse__Expression2 {
|
||||
}
|
||||
}
|
||||
|
||||
// State 24
|
||||
// Maybe = "[" "]" (*) ["&"]
|
||||
// Maybe = "[" "]" (*) ["("]
|
||||
// Maybe = "[" "]" (*) ["wacky"]
|
||||
// Maybe = "[" "]" (*) ["wonky"]
|
||||
// Maybe = "[" "]" (*) [r#"\\w+"#]
|
||||
//
|
||||
// "&" -> Reduce(Maybe = "[", "]" => ActionFn(32);)
|
||||
// "(" -> Reduce(Maybe = "[", "]" => ActionFn(32);)
|
||||
// "wacky" -> Reduce(Maybe = "[", "]" => ActionFn(32);)
|
||||
// "wonky" -> Reduce(Maybe = "[", "]" => ActionFn(32);)
|
||||
// r#"\\w+"# -> Reduce(Maybe = "[", "]" => ActionFn(32);)
|
||||
//
|
||||
pub fn __state24<
|
||||
'input,
|
||||
__TOKENS: Iterator<Item=Result<(usize, (usize, &'input str), usize),__ParseError<usize,(usize, &'input str),()>>>,
|
||||
@ -1177,6 +1516,30 @@ mod __parse__Expression2 {
|
||||
}
|
||||
}
|
||||
|
||||
// State 25
|
||||
// Expression1 = (*) Wacky [")"]
|
||||
// Expression1 = (*) Wacky ["*"]
|
||||
// Expression1 = (*) "&" Maybe Expression1 [")"]
|
||||
// Expression1 = (*) "&" Maybe Expression1 ["*"]
|
||||
// Expression1 = (*) "(" Expression2 ")" [")"]
|
||||
// Expression1 = (*) "(" Expression2 ")" ["*"]
|
||||
// Expression1 = (*) "wonky" Wonky [")"]
|
||||
// Expression1 = (*) "wonky" Wonky ["*"]
|
||||
// Expression1 = (*) r#"\\w+"# [")"]
|
||||
// Expression1 = (*) r#"\\w+"# ["*"]
|
||||
// Expression2 = Expression2 Expression2Op (*) Expression1 [")"]
|
||||
// Expression2 = Expression2 Expression2Op (*) Expression1 ["*"]
|
||||
// Wacky = (*) "wacky" [")"]
|
||||
// Wacky = (*) "wacky" ["*"]
|
||||
//
|
||||
// "&" -> Shift(S16)
|
||||
// "(" -> Shift(S17)
|
||||
// "wacky" -> Shift(S18)
|
||||
// "wonky" -> Shift(S19)
|
||||
// r#"\\w+"# -> Shift(S20)
|
||||
//
|
||||
// Expression1 -> S30
|
||||
// Wacky -> S15
|
||||
pub fn __state25<
|
||||
'input,
|
||||
__TOKENS: Iterator<Item=Result<(usize, (usize, &'input str), usize),__ParseError<usize,(usize, &'input str),()>>>,
|
||||
@ -1236,6 +1599,13 @@ mod __parse__Expression2 {
|
||||
return Ok(__result);
|
||||
}
|
||||
|
||||
// State 26
|
||||
// Expression1 = "(" Expression2 ")" (*) [EOF]
|
||||
// Expression1 = "(" Expression2 ")" (*) ["*"]
|
||||
//
|
||||
// EOF -> Reduce(Expression1 = "(", Expression2, ")" => ActionFn(25);)
|
||||
// "*" -> Reduce(Expression1 = "(", Expression2, ")" => ActionFn(25);)
|
||||
//
|
||||
pub fn __state26<
|
||||
'input,
|
||||
__TOKENS: Iterator<Item=Result<(usize, (usize, &'input str), usize),__ParseError<usize,(usize, &'input str),()>>>,
|
||||
@ -1278,6 +1648,30 @@ mod __parse__Expression2 {
|
||||
}
|
||||
}
|
||||
|
||||
// State 27
|
||||
// Expression1 = (*) Wacky [")"]
|
||||
// Expression1 = (*) Wacky ["*"]
|
||||
// Expression1 = (*) "&" Maybe Expression1 [")"]
|
||||
// Expression1 = (*) "&" Maybe Expression1 ["*"]
|
||||
// Expression1 = "&" Maybe (*) Expression1 [")"]
|
||||
// Expression1 = "&" Maybe (*) Expression1 ["*"]
|
||||
// Expression1 = (*) "(" Expression2 ")" [")"]
|
||||
// Expression1 = (*) "(" Expression2 ")" ["*"]
|
||||
// Expression1 = (*) "wonky" Wonky [")"]
|
||||
// Expression1 = (*) "wonky" Wonky ["*"]
|
||||
// Expression1 = (*) r#"\\w+"# [")"]
|
||||
// Expression1 = (*) r#"\\w+"# ["*"]
|
||||
// Wacky = (*) "wacky" [")"]
|
||||
// Wacky = (*) "wacky" ["*"]
|
||||
//
|
||||
// "&" -> Shift(S16)
|
||||
// "(" -> Shift(S17)
|
||||
// "wacky" -> Shift(S18)
|
||||
// "wonky" -> Shift(S19)
|
||||
// r#"\\w+"# -> Shift(S20)
|
||||
//
|
||||
// Expression1 -> S31
|
||||
// Wacky -> S15
|
||||
pub fn __state27<
|
||||
'input,
|
||||
__TOKENS: Iterator<Item=Result<(usize, (usize, &'input str), usize),__ParseError<usize,(usize, &'input str),()>>>,
|
||||
@ -1337,6 +1731,21 @@ mod __parse__Expression2 {
|
||||
return Ok(__result);
|
||||
}
|
||||
|
||||
// State 28
|
||||
// Expression1 = "(" Expression2 (*) ")" [")"]
|
||||
// Expression1 = "(" Expression2 (*) ")" ["*"]
|
||||
// Expression2 = Expression2 (*) Expression2Op Expression1 [")"]
|
||||
// Expression2 = Expression2 (*) Expression2Op Expression1 ["*"]
|
||||
// Expression2Op = (*) "*" ["&"]
|
||||
// Expression2Op = (*) "*" ["("]
|
||||
// Expression2Op = (*) "*" ["wacky"]
|
||||
// Expression2Op = (*) "*" ["wonky"]
|
||||
// Expression2Op = (*) "*" [r#"\\w+"#]
|
||||
//
|
||||
// ")" -> Shift(S32)
|
||||
// "*" -> Shift(S10)
|
||||
//
|
||||
// Expression2Op -> S25
|
||||
pub fn __state28<
|
||||
'input,
|
||||
__TOKENS: Iterator<Item=Result<(usize, (usize, &'input str), usize),__ParseError<usize,(usize, &'input str),()>>>,
|
||||
@ -1380,6 +1789,13 @@ mod __parse__Expression2 {
|
||||
return Ok(__result);
|
||||
}
|
||||
|
||||
// State 29
|
||||
// Expression1 = "wonky" Wonky (*) [")"]
|
||||
// Expression1 = "wonky" Wonky (*) ["*"]
|
||||
//
|
||||
// ")" -> Reduce(Expression1 = "wonky", Wonky => ActionFn(7);)
|
||||
// "*" -> Reduce(Expression1 = "wonky", Wonky => ActionFn(7);)
|
||||
//
|
||||
pub fn __state29<
|
||||
'input,
|
||||
__TOKENS: Iterator<Item=Result<(usize, (usize, &'input str), usize),__ParseError<usize,(usize, &'input str),()>>>,
|
||||
@ -1416,6 +1832,13 @@ mod __parse__Expression2 {
|
||||
}
|
||||
}
|
||||
|
||||
// State 30
|
||||
// Expression2 = Expression2 Expression2Op Expression1 (*) [")"]
|
||||
// Expression2 = Expression2 Expression2Op Expression1 (*) ["*"]
|
||||
//
|
||||
// ")" -> Reduce(Expression2 = Expression2, Expression2Op, Expression1 => ActionFn(28);)
|
||||
// "*" -> Reduce(Expression2 = Expression2, Expression2Op, Expression1 => ActionFn(28);)
|
||||
//
|
||||
pub fn __state30<
|
||||
'input,
|
||||
__TOKENS: Iterator<Item=Result<(usize, (usize, &'input str), usize),__ParseError<usize,(usize, &'input str),()>>>,
|
||||
@ -1454,6 +1877,13 @@ mod __parse__Expression2 {
|
||||
}
|
||||
}
|
||||
|
||||
// State 31
|
||||
// Expression1 = "&" Maybe Expression1 (*) [")"]
|
||||
// Expression1 = "&" Maybe Expression1 (*) ["*"]
|
||||
//
|
||||
// ")" -> Reduce(Expression1 = "&", Maybe, Expression1 => ActionFn(27);)
|
||||
// "*" -> Reduce(Expression1 = "&", Maybe, Expression1 => ActionFn(27);)
|
||||
//
|
||||
pub fn __state31<
|
||||
'input,
|
||||
__TOKENS: Iterator<Item=Result<(usize, (usize, &'input str), usize),__ParseError<usize,(usize, &'input str),()>>>,
|
||||
@ -1492,6 +1922,13 @@ mod __parse__Expression2 {
|
||||
}
|
||||
}
|
||||
|
||||
// State 32
|
||||
// Expression1 = "(" Expression2 ")" (*) [")"]
|
||||
// Expression1 = "(" Expression2 ")" (*) ["*"]
|
||||
//
|
||||
// ")" -> Reduce(Expression1 = "(", Expression2, ")" => ActionFn(25);)
|
||||
// "*" -> Reduce(Expression1 = "(", Expression2, ")" => ActionFn(25);)
|
||||
//
|
||||
pub fn __state32<
|
||||
'input,
|
||||
__TOKENS: Iterator<Item=Result<(usize, (usize, &'input str), usize),__ParseError<usize,(usize, &'input str),()>>>,
|
||||
|
@ -43,6 +43,24 @@ mod __parse__S {
|
||||
____S(((), i32, ())),
|
||||
}
|
||||
|
||||
// State 0
|
||||
// E = (*) E "-" T [EOF]
|
||||
// E = (*) E "-" T ["-"]
|
||||
// E = (*) T [EOF]
|
||||
// E = (*) T ["-"]
|
||||
// S = (*) E [EOF]
|
||||
// T = (*) "(" E ")" [EOF]
|
||||
// T = (*) "(" E ")" ["-"]
|
||||
// T = (*) Num [EOF]
|
||||
// T = (*) Num ["-"]
|
||||
// __S = (*) S [EOF]
|
||||
//
|
||||
// "(" -> Shift(S4)
|
||||
// Num -> Shift(S5)
|
||||
//
|
||||
// E -> S1
|
||||
// S -> S2
|
||||
// T -> S3
|
||||
pub fn __state0<
|
||||
__TOKENS: Iterator<Item=Result<((), Tok, ()),()>>,
|
||||
>(
|
||||
@ -89,6 +107,14 @@ mod __parse__S {
|
||||
}
|
||||
}
|
||||
|
||||
// State 1
|
||||
// E = E (*) "-" T [EOF]
|
||||
// E = E (*) "-" T ["-"]
|
||||
// S = E (*) [EOF]
|
||||
//
|
||||
// EOF -> Reduce(S = E => ActionFn(1);)
|
||||
// "-" -> Shift(S6)
|
||||
//
|
||||
pub fn __state1<
|
||||
__TOKENS: Iterator<Item=Result<((), Tok, ()),()>>,
|
||||
>(
|
||||
@ -125,6 +151,11 @@ mod __parse__S {
|
||||
return Ok(__result);
|
||||
}
|
||||
|
||||
// State 2
|
||||
// __S = S (*) [EOF]
|
||||
//
|
||||
// EOF -> Reduce(__S = S => ActionFn(0);)
|
||||
//
|
||||
pub fn __state2<
|
||||
__TOKENS: Iterator<Item=Result<((), Tok, ()),()>>,
|
||||
>(
|
||||
@ -156,6 +187,13 @@ mod __parse__S {
|
||||
}
|
||||
}
|
||||
|
||||
// State 3
|
||||
// E = T (*) [EOF]
|
||||
// E = T (*) ["-"]
|
||||
//
|
||||
// EOF -> Reduce(E = T => ActionFn(3);)
|
||||
// "-" -> Reduce(E = T => ActionFn(3);)
|
||||
//
|
||||
pub fn __state3<
|
||||
__TOKENS: Iterator<Item=Result<((), Tok, ()),()>>,
|
||||
>(
|
||||
@ -188,6 +226,23 @@ mod __parse__S {
|
||||
}
|
||||
}
|
||||
|
||||
// State 4
|
||||
// E = (*) E "-" T [")"]
|
||||
// E = (*) E "-" T ["-"]
|
||||
// E = (*) T [")"]
|
||||
// E = (*) T ["-"]
|
||||
// T = (*) "(" E ")" [")"]
|
||||
// T = (*) "(" E ")" ["-"]
|
||||
// T = "(" (*) E ")" [EOF]
|
||||
// T = "(" (*) E ")" ["-"]
|
||||
// T = (*) Num [")"]
|
||||
// T = (*) Num ["-"]
|
||||
//
|
||||
// "(" -> Shift(S9)
|
||||
// Num -> Shift(S10)
|
||||
//
|
||||
// E -> S7
|
||||
// T -> S8
|
||||
pub fn __state4<
|
||||
__TOKENS: Iterator<Item=Result<((), Tok, ()),()>>,
|
||||
>(
|
||||
@ -236,6 +291,13 @@ mod __parse__S {
|
||||
return Ok(__result);
|
||||
}
|
||||
|
||||
// State 5
|
||||
// T = Num (*) [EOF]
|
||||
// T = Num (*) ["-"]
|
||||
//
|
||||
// EOF -> Reduce(T = Num => ActionFn(4);)
|
||||
// "-" -> Reduce(T = Num => ActionFn(4);)
|
||||
//
|
||||
pub fn __state5<
|
||||
__TOKENS: Iterator<Item=Result<((), Tok, ()),()>>,
|
||||
>(
|
||||
@ -272,6 +334,18 @@ mod __parse__S {
|
||||
}
|
||||
}
|
||||
|
||||
// State 6
|
||||
// E = E "-" (*) T [EOF]
|
||||
// E = E "-" (*) T ["-"]
|
||||
// T = (*) "(" E ")" [EOF]
|
||||
// T = (*) "(" E ")" ["-"]
|
||||
// T = (*) Num [EOF]
|
||||
// T = (*) Num ["-"]
|
||||
//
|
||||
// "(" -> Shift(S4)
|
||||
// Num -> Shift(S5)
|
||||
//
|
||||
// T -> S11
|
||||
pub fn __state6<
|
||||
__TOKENS: Iterator<Item=Result<((), Tok, ()),()>>,
|
||||
>(
|
||||
@ -317,6 +391,15 @@ mod __parse__S {
|
||||
return Ok(__result);
|
||||
}
|
||||
|
||||
// State 7
|
||||
// E = E (*) "-" T [")"]
|
||||
// E = E (*) "-" T ["-"]
|
||||
// T = "(" E (*) ")" [EOF]
|
||||
// T = "(" E (*) ")" ["-"]
|
||||
//
|
||||
// ")" -> Shift(S12)
|
||||
// "-" -> Shift(S13)
|
||||
//
|
||||
pub fn __state7<
|
||||
__TOKENS: Iterator<Item=Result<((), Tok, ()),()>>,
|
||||
>(
|
||||
@ -346,6 +429,13 @@ mod __parse__S {
|
||||
return Ok(__result);
|
||||
}
|
||||
|
||||
// State 8
|
||||
// E = T (*) [")"]
|
||||
// E = T (*) ["-"]
|
||||
//
|
||||
// ")" -> Reduce(E = T => ActionFn(3);)
|
||||
// "-" -> Reduce(E = T => ActionFn(3);)
|
||||
//
|
||||
pub fn __state8<
|
||||
__TOKENS: Iterator<Item=Result<((), Tok, ()),()>>,
|
||||
>(
|
||||
@ -378,6 +468,23 @@ mod __parse__S {
|
||||
}
|
||||
}
|
||||
|
||||
// State 9
|
||||
// E = (*) E "-" T [")"]
|
||||
// E = (*) E "-" T ["-"]
|
||||
// E = (*) T [")"]
|
||||
// E = (*) T ["-"]
|
||||
// T = (*) "(" E ")" [")"]
|
||||
// T = (*) "(" E ")" ["-"]
|
||||
// T = "(" (*) E ")" [")"]
|
||||
// T = "(" (*) E ")" ["-"]
|
||||
// T = (*) Num [")"]
|
||||
// T = (*) Num ["-"]
|
||||
//
|
||||
// "(" -> Shift(S9)
|
||||
// Num -> Shift(S10)
|
||||
//
|
||||
// E -> S14
|
||||
// T -> S8
|
||||
pub fn __state9<
|
||||
__TOKENS: Iterator<Item=Result<((), Tok, ()),()>>,
|
||||
>(
|
||||
@ -426,6 +533,13 @@ mod __parse__S {
|
||||
return Ok(__result);
|
||||
}
|
||||
|
||||
// State 10
|
||||
// T = Num (*) [")"]
|
||||
// T = Num (*) ["-"]
|
||||
//
|
||||
// ")" -> Reduce(T = Num => ActionFn(4);)
|
||||
// "-" -> Reduce(T = Num => ActionFn(4);)
|
||||
//
|
||||
pub fn __state10<
|
||||
__TOKENS: Iterator<Item=Result<((), Tok, ()),()>>,
|
||||
>(
|
||||
@ -462,6 +576,13 @@ mod __parse__S {
|
||||
}
|
||||
}
|
||||
|
||||
// State 11
|
||||
// E = E "-" T (*) [EOF]
|
||||
// E = E "-" T (*) ["-"]
|
||||
//
|
||||
// EOF -> Reduce(E = E, "-", T => ActionFn(2);)
|
||||
// "-" -> Reduce(E = E, "-", T => ActionFn(2);)
|
||||
//
|
||||
pub fn __state11<
|
||||
__TOKENS: Iterator<Item=Result<((), Tok, ()),()>>,
|
||||
>(
|
||||
@ -498,6 +619,13 @@ mod __parse__S {
|
||||
}
|
||||
}
|
||||
|
||||
// State 12
|
||||
// T = "(" E ")" (*) [EOF]
|
||||
// T = "(" E ")" (*) ["-"]
|
||||
//
|
||||
// EOF -> Reduce(T = "(", E, ")" => ActionFn(5);)
|
||||
// "-" -> Reduce(T = "(", E, ")" => ActionFn(5);)
|
||||
//
|
||||
pub fn __state12<
|
||||
__TOKENS: Iterator<Item=Result<((), Tok, ()),()>>,
|
||||
>(
|
||||
@ -538,6 +666,18 @@ mod __parse__S {
|
||||
}
|
||||
}
|
||||
|
||||
// State 13
|
||||
// E = E "-" (*) T [")"]
|
||||
// E = E "-" (*) T ["-"]
|
||||
// T = (*) "(" E ")" [")"]
|
||||
// T = (*) "(" E ")" ["-"]
|
||||
// T = (*) Num [")"]
|
||||
// T = (*) Num ["-"]
|
||||
//
|
||||
// "(" -> Shift(S9)
|
||||
// Num -> Shift(S10)
|
||||
//
|
||||
// T -> S15
|
||||
pub fn __state13<
|
||||
__TOKENS: Iterator<Item=Result<((), Tok, ()),()>>,
|
||||
>(
|
||||
@ -583,6 +723,15 @@ mod __parse__S {
|
||||
return Ok(__result);
|
||||
}
|
||||
|
||||
// State 14
|
||||
// E = E (*) "-" T [")"]
|
||||
// E = E (*) "-" T ["-"]
|
||||
// T = "(" E (*) ")" [")"]
|
||||
// T = "(" E (*) ")" ["-"]
|
||||
//
|
||||
// ")" -> Shift(S16)
|
||||
// "-" -> Shift(S13)
|
||||
//
|
||||
pub fn __state14<
|
||||
__TOKENS: Iterator<Item=Result<((), Tok, ()),()>>,
|
||||
>(
|
||||
@ -612,6 +761,13 @@ mod __parse__S {
|
||||
return Ok(__result);
|
||||
}
|
||||
|
||||
// State 15
|
||||
// E = E "-" T (*) [")"]
|
||||
// E = E "-" T (*) ["-"]
|
||||
//
|
||||
// ")" -> Reduce(E = E, "-", T => ActionFn(2);)
|
||||
// "-" -> Reduce(E = E, "-", T => ActionFn(2);)
|
||||
//
|
||||
pub fn __state15<
|
||||
__TOKENS: Iterator<Item=Result<((), Tok, ()),()>>,
|
||||
>(
|
||||
@ -648,6 +804,13 @@ mod __parse__S {
|
||||
}
|
||||
}
|
||||
|
||||
// State 16
|
||||
// T = "(" E ")" (*) [")"]
|
||||
// T = "(" E ")" (*) ["-"]
|
||||
//
|
||||
// ")" -> Reduce(T = "(", E, ")" => ActionFn(5);)
|
||||
// "-" -> Reduce(T = "(", E, ")" => ActionFn(5);)
|
||||
//
|
||||
pub fn __state16<
|
||||
__TOKENS: Iterator<Item=Result<((), Tok, ()),()>>,
|
||||
>(
|
||||
|
@ -41,6 +41,13 @@ mod __parse__S {
|
||||
____S(((), i32, ())),
|
||||
}
|
||||
|
||||
// State 0
|
||||
// S = (*) "(" ")" [EOF]
|
||||
// __S = (*) S [EOF]
|
||||
//
|
||||
// "(" -> Shift(S2)
|
||||
//
|
||||
// S -> S1
|
||||
pub fn __state0<
|
||||
__TOKENS: Iterator<Item=Result<((), Tok, ()),()>>,
|
||||
>(
|
||||
@ -75,6 +82,11 @@ mod __parse__S {
|
||||
}
|
||||
}
|
||||
|
||||
// State 1
|
||||
// __S = S (*) [EOF]
|
||||
//
|
||||
// EOF -> Reduce(__S = S => ActionFn(0);)
|
||||
//
|
||||
pub fn __state1<
|
||||
__TOKENS: Iterator<Item=Result<((), Tok, ()),()>>,
|
||||
>(
|
||||
@ -106,6 +118,11 @@ mod __parse__S {
|
||||
}
|
||||
}
|
||||
|
||||
// State 2
|
||||
// S = "(" (*) ")" [EOF]
|
||||
//
|
||||
// ")" -> Shift(S3)
|
||||
//
|
||||
pub fn __state2<
|
||||
__TOKENS: Iterator<Item=Result<((), Tok, ()),()>>,
|
||||
>(
|
||||
@ -134,6 +151,11 @@ mod __parse__S {
|
||||
return Ok(__result);
|
||||
}
|
||||
|
||||
// State 3
|
||||
// S = "(" ")" (*) [EOF]
|
||||
//
|
||||
// EOF -> Reduce(S = "(", ")" => ActionFn(1);)
|
||||
//
|
||||
pub fn __state3<
|
||||
__TOKENS: Iterator<Item=Result<((), Tok, ()),()>>,
|
||||
>(
|
||||
|
Loading…
x
Reference in New Issue
Block a user