use crate::ast::Expr;
#[allow(unused_extern_crates)]
extern crate lalrpop_util as __lalrpop_util;
#[allow(unused_imports)]
use self::__lalrpop_util::state_machine as __state_machine;
#[cfg_attr(rustfmt, rustfmt_skip)]
mod __parse__Expr {
#![allow(non_snake_case, non_camel_case_types, unused_mut, unused_variables, unused_imports, unused_parens)]
use crate::ast::Expr;
#[allow(unused_extern_crates)]
extern crate lalrpop_util as __lalrpop_util;
#[allow(unused_imports)]
use self::__lalrpop_util::state_machine as __state_machine;
use self::__lalrpop_util::lexer::Token;
#[allow(dead_code)]
pub enum __Symbol<'input>
{
Variant0(&'input str),
Variant1(&'static str),
Variant2(::std::vec::Vec<&'static str>),
Variant3((Expr, &'input str)),
Variant4(::std::vec::Vec<(Expr, &'input str)>),
Variant5(Expr),
Variant6(::std::option::Option<Expr>),
Variant7(String),
}
const __ACTION: &[i8] = &[
22, 0, 0, 7, 0, 0, 0, 0, 0, 0, 23, 0, 0, 24, 0, 0, 25, 26,
22, 0, 0, 7, 0, 0, 0, 0, 0, 0, 23, 0, 0, 24, 0, 0, 25, 26,
0, -32, -32, 0, -32, -32, -32, -32, -32, -32, 30, 31, -32, 0, -32, -32, 0, 0,
0, -39, -39, 0, -39, -39, -39, -39, 32, 33, 0, 0, -39, 0, -39, -39, 0, 0,
0, 34, 35, 0, -41, -41, -41, 36, 0, 0, 0, 0, 37, 0, -41, -41, 0, 0,
0, 0, 0, 0, -25, 38, -25, 0, 0, 0, 0, 0, 0, 0, 39, 40, 0, 0,
22, 0, 0, 7, 0, 0, 0, 0, 0, 0, 23, 0, 0, 24, 0, 0, 25, 26,
0, -33, -33, 0, -33, -33, -33, -33, -33, -33, 30, 31, -33, 0, -33, -33, 0, 0,
22, 0, 0, 7, 0, 0, 0, 0, 0, 0, 23, 0, 0, 24, 0, 0, 25, 26,
22, 0, 0, 7, 0, 0, 0, 0, 0, 0, 23, 0, 0, 24, 0, 0, 25, 26,
22, 0, 0, 7, 0, 0, 0, 0, 0, 0, 23, 0, 0, 24, 0, 0, 25, 26,
22, 0, 0, 7, 45, 0, 0, 0, 0, 0, 23, 0, 0, 24, 0, 0, 25, 26,
0, -38, -38, 0, -38, -38, -38, -38, 32, 33, 0, 0, -38, 0, -38, -38, 0, 0,
0, 34, 35, 0, -40, -40, -40, 36, 0, 0, 0, 0, 37, 0, -40, -40, 0, 0,
22, 0, 0, 7, 48, 0, 0, 0, 0, 0, 23, 0, 0, 24, 0, 0, 25, 26,
0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
0, -34, -34, 0, -34, -34, -34, -34, -34, -34, 0, 0, -34, 0, -34, -34, 0, 0,
0, -37, -37, 0, -37, -37, -37, -37, -37, -37, 0, 0, -37, 0, -37, -37, 0, 0,
-9, 0, 0, -9, 0, 0, 0, 0, 0, 0, -9, 0, 0, -9, 0, 0, -9, -9,
0, -50, -50, 12, -50, -50, -50, -50, -50, -50, -50, -50, -50, 0, -50, -50, 0, 0,
0, -26, -26, 0, -26, -26, -26, -26, -26, -26, -26, -26, -26, 0, -26, -26, 0, 0,
-46, 0, 0, -46, 0, 0, 0, 0, 0, 0, -46, 0, 0, -46, 0, 0, -46, -46,
-48, 0, 0, -48, 0, 0, 0, 0, 0, 0, -48, 0, 0, -48, 0, 0, -48, -48,
-47, 0, 0, -47, 0, 0, 0, 0, 0, 0, -47, 0, 0, -47, 0, 0, -47, -47,
0, -49, -49, -49, -49, -49, -49, -49, -49, -49, -49, -49, -49, 0, -49, -49, 0, 0,
0, -51, -51, 0, -51, -51, -51, -51, -51, -51, -51, -51, -51, 0, -51, -51, 0, 0,
0, -35, -35, 0, -35, -35, -35, -35, -35, -35, 0, 0, -35, 0, -35, -35, 0, 0,
-10, 0, 0, -10, 0, 0, 0, 0, 0, 0, -10, 0, 0, -10, 0, 0, -10, -10,
0, -4, -4, 0, -4, -4, -4, -4, -4, -4, -4, -4, -4, 0, -4, -4, 0, 0,
0, -44, -44, 0, -44, -44, -44, -44, -44, -44, -44, -44, -44, 0, -44, -44, 0, 0,
0, -45, -45, 0, -45, -45, -45, -45, -45, -45, -45, -45, -45, 0, -45, -45, 0, 0,
-17, 0, 0, -17, 0, 0, 0, 0, 0, 0, -17, 0, 0, -17, 0, 0, -17, -17,
-16, 0, 0, -16, 0, 0, 0, 0, 0, 0, -16, 0, 0, -16, 0, 0, -16, -16,
-21, 0, 0, -21, 0, 0, 0, 0, 0, 0, -21, 0, 0, -21, 0, 0, -21, -21,
-18, 0, 0, -18, 0, 0, 0, 0, 0, 0, -18, 0, 0, -18, 0, 0, -18, -18,
-20, 0, 0, -20, 0, 0, 0, 0, 0, 0, -20, 0, 0, -20, 0, 0, -20, -20,
-19, 0, 0, -19, 0, 0, 0, 0, 0, 0, -19, 0, 0, -19, 0, 0, -19, -19,
-23, 0, 0, -23, 0, 0, 0, 0, 0, 0, -23, 0, 0, -23, 0, 0, -23, -23,
-24, 0, 0, -24, 0, 0, 0, 0, 0, 0, -24, 0, 0, -24, 0, 0, -24, -24,
-22, 0, 0, -22, 0, 0, 0, 0, 0, 0, -22, 0, 0, -22, 0, 0, -22, -22,
0, 0, 0, 0, 46, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
0, -5, -5, 0, -5, -5, -5, -5, -5, -5, -5, -5, -5, 0, -5, -5, 0, 0,
0, -36, -36, 0, -36, -36, -36, -36, -36, -36, 0, 0, -36, 0, -36, -36, 0, 0,
0, 0, 0, 0, 49, 0, 50, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
0, -28, -28, 0, -28, -28, -28, -28, -28, -28, -28, -28, -28, 0, -28, -28, 0, 0,
0, -31, -31, 0, -31, -31, -31, -31, -31, -31, -31, -31, -31, 0, -31, -31, 0, 0,
0, 0, 0, 0, 51, 0, 52, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
0, -30, -30, 0, -30, -30, -30, -30, -30, -30, -30, -30, -30, 0, -30, -30, 0, 0,
0, -27, -27, 0, -27, -27, -27, -27, -27, -27, -27, -27, -27, 0, -27, -27, 0, 0,
-14, 0, 0, -14, -14, 0, 0, 0, 0, 0, -14, 0, 0, -14, 0, 0, -14, -14,
0, -29, -29, 0, -29, -29, -29, -29, -29, -29, -29, -29, -29, 0, -29, -29, 0, 0,
-15, 0, 0, -15, -15, 0, 0, 0, 0, 0, -15, 0, 0, -15, 0, 0, -15, -15,
];
fn __action(state: i8, integer: usize) -> i8 {
__ACTION[(state as usize) * 18 + integer]
}
const __EOF_ACTION: &[i8] = &[
0,
0,
-32,
-39,
-41,
-25,
0,
-33,
0,
0,
0,
0,
-38,
-40,
0,
-52,
-34,
-37,
0,
-50,
-26,
0,
0,
0,
-49,
-51,
-35,
0,
-4,
-44,
-45,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
-5,
-36,
0,
-28,
-31,
0,
-30,
-27,
0,
-29,
0,
];
fn __goto(state: i8, nt: usize) -> i8 {
match nt {
2 => 7,
5 => 1,
8 => 14,
9 => 8,
10 => 9,
11 => 10,
12 => match state {
6 => 40,
11 => 43,
14 => 46,
_ => 15,
},
13 => 2,
14 => match state {
1 => 26,
_ => 16,
},
15 => match state {
8 => 42,
_ => 17,
},
16 => match state {
9 => 12,
_ => 3,
},
17 => match state {
10 => 13,
_ => 4,
},
18 => 5,
20 => match state {
7 => 41,
_ => 28,
},
21 => match state {
1 => 27,
_ => 18,
},
22 => 19,
23 => 20,
_ => 0,
}
}
fn __expected_tokens(__state: i8) -> Vec<::std::string::String> {
const __TERMINAL: &[&str] = &[
r###""!""###,
r###""%""###,
r###""&""###,
r###""(""###,
r###"")""###,
r###""+""###,
r###"",""###,
r###""-""###,
r###""..""###,
r###"":""###,
r###""::""###,
r###""^""###,
r###""and""###,
r###""not ""###,
r###""or""###,
r###""|""###,
r###"r#"[a-zA-Z0-9/_$@.]+"#"###,
r###"r#"\\x22([^\\x22\\x5c]|\\x5c.)*\\x22"#"###,
];
__TERMINAL.iter().enumerate().filter_map(|(index, terminal)| {
let next_state = __action(__state, index);
if next_state == 0 {
None
} else {
Some(terminal.to_string())
}
}).collect()
}
pub struct __StateMachine<'input>
where
{
input: &'input str,
__phantom: ::std::marker::PhantomData<(&'input ())>,
}
impl<'input> __state_machine::ParserDefinition for __StateMachine<'input>
where
{
type Location = usize;
type Error = &'static str;
type Token = Token<'input>;
type TokenIndex = usize;
type Symbol = __Symbol<'input>;
type Success = Expr;
type StateIndex = i8;
type Action = i8;
type ReduceIndex = i8;
type NonterminalIndex = usize;
#[inline]
fn start_location(&self) -> Self::Location {
Default::default()
}
#[inline]
fn start_state(&self) -> Self::StateIndex {
0
}
#[inline]
fn token_to_index(&self, token: &Self::Token) -> Option<usize> {
__token_to_integer(token, ::std::marker::PhantomData::<(&())>)
}
#[inline]
fn action(&self, state: i8, integer: usize) -> i8 {
__action(state, integer)
}
#[inline]
fn error_action(&self, state: i8) -> i8 {
__action(state, 18 - 1)
}
#[inline]
fn eof_action(&self, state: i8) -> i8 {
__EOF_ACTION[state as usize]
}
#[inline]
fn goto(&self, state: i8, nt: usize) -> i8 {
__goto(state, nt)
}
fn token_to_symbol(&self, token_index: usize, token: Self::Token) -> Self::Symbol {
__token_to_symbol(token_index, token, ::std::marker::PhantomData::<(&())>)
}
fn expected_tokens(&self, state: i8) -> Vec<String> {
__expected_tokens(state)
}
#[inline]
fn uses_error_recovery(&self) -> bool {
false
}
#[inline]
fn error_recovery_symbol(
&self,
recovery: __state_machine::ErrorRecovery<Self>,
) -> Self::Symbol {
panic!("error recovery not enabled for this grammar")
}
fn reduce(
&mut self,
action: i8,
start_location: Option<&Self::Location>,
states: &mut Vec<i8>,
symbols: &mut Vec<__state_machine::SymbolTriple<Self>>,
) -> Option<__state_machine::ParseResult<Self>> {
__reduce(
self.input,
action,
start_location,
states,
symbols,
::std::marker::PhantomData::<(&())>,
)
}
fn simulate_reduce(&self, action: i8) -> __state_machine::SimulatedReduce<Self> {
panic!("error recovery not enabled for this grammar")
}
}
fn __token_to_integer<
'input,
>(
__token: &Token<'input>,
_: ::std::marker::PhantomData<(&'input ())>,
) -> Option<usize>
{
match *__token {
Token(2, _) if true => Some(0),
Token(3, _) if true => Some(1),
Token(4, _) if true => Some(2),
Token(5, _) if true => Some(3),
Token(6, _) if true => Some(4),
Token(7, _) if true => Some(5),
Token(8, _) if true => Some(6),
Token(9, _) if true => Some(7),
Token(10, _) if true => Some(8),
Token(11, _) if true => Some(9),
Token(12, _) if true => Some(10),
Token(13, _) if true => Some(11),
Token(14, _) if true => Some(12),
Token(15, _) if true => Some(13),
Token(16, _) if true => Some(14),
Token(17, _) if true => Some(15),
Token(0, _) if true => Some(16),
Token(1, _) if true => Some(17),
_ => None,
}
}
fn __token_to_symbol<
'input,
>(
__token_index: usize,
__token: Token<'input>,
_: ::std::marker::PhantomData<(&'input ())>,
) -> __Symbol<'input>
{
match __token_index {
0 | 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 => match __token {
Token(2, __tok0) | Token(3, __tok0) | Token(4, __tok0) | Token(5, __tok0) | Token(6, __tok0) | Token(7, __tok0) | Token(8, __tok0) | Token(9, __tok0) | Token(10, __tok0) | Token(11, __tok0) | Token(12, __tok0) | Token(13, __tok0) | Token(14, __tok0) | Token(15, __tok0) | Token(16, __tok0) | Token(17, __tok0) | Token(0, __tok0) | Token(1, __tok0) if true => __Symbol::Variant0(__tok0),
_ => unreachable!(),
},
_ => unreachable!(),
}
}
pub struct ExprParser {
builder: __lalrpop_util::lexer::MatcherBuilder,
_priv: (),
}
impl ExprParser {
pub fn new() -> ExprParser {
let __builder = super::__intern_token::new_builder();
ExprParser {
builder: __builder,
_priv: (),
}
}
#[allow(dead_code)]
pub fn parse<
'input,
>(
&self,
input: &'input str,
) -> Result<Expr, __lalrpop_util::ParseError<usize, Token<'input>, &'static str>>
{
let mut __tokens = self.builder.matcher(input);
__state_machine::Parser::drive(
__StateMachine {
input,
__phantom: ::std::marker::PhantomData::<(&())>,
},
__tokens,
)
}
}
pub(crate) fn __reduce<
'input,
>(
input: &'input str,
__action: i8,
__lookahead_start: Option<&usize>,
__states: &mut ::std::vec::Vec<i8>,
__symbols: &mut ::std::vec::Vec<(usize,__Symbol<'input>,usize)>,
_: ::std::marker::PhantomData<(&'input ())>,
) -> Option<Result<Expr,__lalrpop_util::ParseError<usize, Token<'input>, &'static str>>>
{
let (__pop_states, __nonterminal) = match __action {
0 => {
__reduce0(input, __lookahead_start, __symbols, ::std::marker::PhantomData::<(&())>)
}
1 => {
__reduce1(input, __lookahead_start, __symbols, ::std::marker::PhantomData::<(&())>)
}
2 => {
__reduce2(input, __lookahead_start, __symbols, ::std::marker::PhantomData::<(&())>)
}
3 => {
__reduce3(input, __lookahead_start, __symbols, ::std::marker::PhantomData::<(&())>)
}
4 => {
__reduce4(input, __lookahead_start, __symbols, ::std::marker::PhantomData::<(&())>)
}
5 => {
__reduce5(input, __lookahead_start, __symbols, ::std::marker::PhantomData::<(&())>)
}
6 => {
__reduce6(input, __lookahead_start, __symbols, ::std::marker::PhantomData::<(&())>)
}
7 => {
__reduce7(input, __lookahead_start, __symbols, ::std::marker::PhantomData::<(&())>)
}
8 => {
__reduce8(input, __lookahead_start, __symbols, ::std::marker::PhantomData::<(&())>)
}
9 => {
__reduce9(input, __lookahead_start, __symbols, ::std::marker::PhantomData::<(&())>)
}
10 => {
__reduce10(input, __lookahead_start, __symbols, ::std::marker::PhantomData::<(&())>)
}
11 => {
__reduce11(input, __lookahead_start, __symbols, ::std::marker::PhantomData::<(&())>)
}
12 => {
__reduce12(input, __lookahead_start, __symbols, ::std::marker::PhantomData::<(&())>)
}
13 => {
__reduce13(input, __lookahead_start, __symbols, ::std::marker::PhantomData::<(&())>)
}
14 => {
__reduce14(input, __lookahead_start, __symbols, ::std::marker::PhantomData::<(&())>)
}
15 => {
__reduce15(input, __lookahead_start, __symbols, ::std::marker::PhantomData::<(&())>)
}
16 => {
__reduce16(input, __lookahead_start, __symbols, ::std::marker::PhantomData::<(&())>)
}
17 => {
__reduce17(input, __lookahead_start, __symbols, ::std::marker::PhantomData::<(&())>)
}
18 => {
__reduce18(input, __lookahead_start, __symbols, ::std::marker::PhantomData::<(&())>)
}
19 => {
__reduce19(input, __lookahead_start, __symbols, ::std::marker::PhantomData::<(&())>)
}
20 => {
__reduce20(input, __lookahead_start, __symbols, ::std::marker::PhantomData::<(&())>)
}
21 => {
__reduce21(input, __lookahead_start, __symbols, ::std::marker::PhantomData::<(&())>)
}
22 => {
__reduce22(input, __lookahead_start, __symbols, ::std::marker::PhantomData::<(&())>)
}
23 => {
__reduce23(input, __lookahead_start, __symbols, ::std::marker::PhantomData::<(&())>)
}
24 => {
__reduce24(input, __lookahead_start, __symbols, ::std::marker::PhantomData::<(&())>)
}
25 => {
__reduce25(input, __lookahead_start, __symbols, ::std::marker::PhantomData::<(&())>)
}
26 => {
__reduce26(input, __lookahead_start, __symbols, ::std::marker::PhantomData::<(&())>)
}
27 => {
__reduce27(input, __lookahead_start, __symbols, ::std::marker::PhantomData::<(&())>)
}
28 => {
__reduce28(input, __lookahead_start, __symbols, ::std::marker::PhantomData::<(&())>)
}
29 => {
__reduce29(input, __lookahead_start, __symbols, ::std::marker::PhantomData::<(&())>)
}
30 => {
__reduce30(input, __lookahead_start, __symbols, ::std::marker::PhantomData::<(&())>)
}
31 => {
__reduce31(input, __lookahead_start, __symbols, ::std::marker::PhantomData::<(&())>)
}
32 => {
__reduce32(input, __lookahead_start, __symbols, ::std::marker::PhantomData::<(&())>)
}
33 => {
__reduce33(input, __lookahead_start, __symbols, ::std::marker::PhantomData::<(&())>)
}
34 => {
__reduce34(input, __lookahead_start, __symbols, ::std::marker::PhantomData::<(&())>)
}
35 => {
__reduce35(input, __lookahead_start, __symbols, ::std::marker::PhantomData::<(&())>)
}
36 => {
__reduce36(input, __lookahead_start, __symbols, ::std::marker::PhantomData::<(&())>)
}
37 => {
__reduce37(input, __lookahead_start, __symbols, ::std::marker::PhantomData::<(&())>)
}
38 => {
__reduce38(input, __lookahead_start, __symbols, ::std::marker::PhantomData::<(&())>)
}
39 => {
__reduce39(input, __lookahead_start, __symbols, ::std::marker::PhantomData::<(&())>)
}
40 => {
__reduce40(input, __lookahead_start, __symbols, ::std::marker::PhantomData::<(&())>)
}
41 => {
__reduce41(input, __lookahead_start, __symbols, ::std::marker::PhantomData::<(&())>)
}
42 => {
__reduce42(input, __lookahead_start, __symbols, ::std::marker::PhantomData::<(&())>)
}
43 => {
__reduce43(input, __lookahead_start, __symbols, ::std::marker::PhantomData::<(&())>)
}
44 => {
__reduce44(input, __lookahead_start, __symbols, ::std::marker::PhantomData::<(&())>)
}
45 => {
__reduce45(input, __lookahead_start, __symbols, ::std::marker::PhantomData::<(&())>)
}
46 => {
__reduce46(input, __lookahead_start, __symbols, ::std::marker::PhantomData::<(&())>)
}
47 => {
__reduce47(input, __lookahead_start, __symbols, ::std::marker::PhantomData::<(&())>)
}
48 => {
__reduce48(input, __lookahead_start, __symbols, ::std::marker::PhantomData::<(&())>)
}
49 => {
__reduce49(input, __lookahead_start, __symbols, ::std::marker::PhantomData::<(&())>)
}
50 => {
__reduce50(input, __lookahead_start, __symbols, ::std::marker::PhantomData::<(&())>)
}
51 => {
let __sym0 = __pop_Variant5(__symbols);
let __start = __sym0.0.clone();
let __end = __sym0.2.clone();
let __nt = super::__action0::<>(input, __sym0);
return Some(Ok(__nt));
}
_ => panic!("invalid action code {}", __action)
};
let __states_len = __states.len();
__states.truncate(__states_len - __pop_states);
let __state = *__states.last().unwrap();
let __next_state = __goto(__state, __nonterminal);
__states.push(__next_state);
None
}
#[inline(never)]
fn __symbol_type_mismatch() -> ! {
panic!("symbol type mismatch")
}
fn __pop_Variant3<
'input,
>(
__symbols: &mut ::std::vec::Vec<(usize,__Symbol<'input>,usize)>
) -> (usize, (Expr, &'input str), usize)
{
match __symbols.pop().unwrap() {
(__l, __Symbol::Variant3(__v), __r) => (__l, __v, __r),
_ => __symbol_type_mismatch()
}
}
fn __pop_Variant5<
'input,
>(
__symbols: &mut ::std::vec::Vec<(usize,__Symbol<'input>,usize)>
) -> (usize, Expr, usize)
{
match __symbols.pop().unwrap() {
(__l, __Symbol::Variant5(__v), __r) => (__l, __v, __r),
_ => __symbol_type_mismatch()
}
}
fn __pop_Variant7<
'input,
>(
__symbols: &mut ::std::vec::Vec<(usize,__Symbol<'input>,usize)>
) -> (usize, String, usize)
{
match __symbols.pop().unwrap() {
(__l, __Symbol::Variant7(__v), __r) => (__l, __v, __r),
_ => __symbol_type_mismatch()
}
}
fn __pop_Variant6<
'input,
>(
__symbols: &mut ::std::vec::Vec<(usize,__Symbol<'input>,usize)>
) -> (usize, ::std::option::Option<Expr>, usize)
{
match __symbols.pop().unwrap() {
(__l, __Symbol::Variant6(__v), __r) => (__l, __v, __r),
_ => __symbol_type_mismatch()
}
}
fn __pop_Variant4<
'input,
>(
__symbols: &mut ::std::vec::Vec<(usize,__Symbol<'input>,usize)>
) -> (usize, ::std::vec::Vec<(Expr, &'input str)>, usize)
{
match __symbols.pop().unwrap() {
(__l, __Symbol::Variant4(__v), __r) => (__l, __v, __r),
_ => __symbol_type_mismatch()
}
}
fn __pop_Variant2<
'input,
>(
__symbols: &mut ::std::vec::Vec<(usize,__Symbol<'input>,usize)>
) -> (usize, ::std::vec::Vec<&'static str>, usize)
{
match __symbols.pop().unwrap() {
(__l, __Symbol::Variant2(__v), __r) => (__l, __v, __r),
_ => __symbol_type_mismatch()
}
}
fn __pop_Variant0<
'input,
>(
__symbols: &mut ::std::vec::Vec<(usize,__Symbol<'input>,usize)>
) -> (usize, &'input str, usize)
{
match __symbols.pop().unwrap() {
(__l, __Symbol::Variant0(__v), __r) => (__l, __v, __r),
_ => __symbol_type_mismatch()
}
}
fn __pop_Variant1<
'input,
>(
__symbols: &mut ::std::vec::Vec<(usize,__Symbol<'input>,usize)>
) -> (usize, &'static str, usize)
{
match __symbols.pop().unwrap() {
(__l, __Symbol::Variant1(__v), __r) => (__l, __v, __r),
_ => __symbol_type_mismatch()
}
}
pub(crate) fn __reduce0<
'input,
>(
input: &'input str,
__lookahead_start: Option<&usize>,
__symbols: &mut ::std::vec::Vec<(usize,__Symbol<'input>,usize)>,
_: ::std::marker::PhantomData<(&'input ())>,
) -> (usize, usize)
{
let __sym0 = __pop_Variant1(__symbols);
let __start = __sym0.0.clone();
let __end = __sym0.2.clone();
let __nt = super::__action37::<>(input, __sym0);
__symbols.push((__start, __Symbol::Variant1(__nt), __end));
(1, 0)
}
pub(crate) fn __reduce1<
'input,
>(
input: &'input str,
__lookahead_start: Option<&usize>,
__symbols: &mut ::std::vec::Vec<(usize,__Symbol<'input>,usize)>,
_: ::std::marker::PhantomData<(&'input ())>,
) -> (usize, usize)
{
let __start = __lookahead_start.cloned().or_else(|| __symbols.last().map(|s| s.2.clone())).unwrap_or_default();
let __end = __start.clone();
let __nt = super::__action35::<>(input, &__start, &__end);
__symbols.push((__start, __Symbol::Variant2(__nt), __end));
(0, 1)
}
pub(crate) fn __reduce2<
'input,
>(
input: &'input str,
__lookahead_start: Option<&usize>,
__symbols: &mut ::std::vec::Vec<(usize,__Symbol<'input>,usize)>,
_: ::std::marker::PhantomData<(&'input ())>,
) -> (usize, usize)
{
let __sym0 = __pop_Variant2(__symbols);
let __start = __sym0.0.clone();
let __end = __sym0.2.clone();
let __nt = super::__action36::<>(input, __sym0);
__symbols.push((__start, __Symbol::Variant2(__nt), __end));
(1, 1)
}
pub(crate) fn __reduce3<
'input,
>(
input: &'input str,
__lookahead_start: Option<&usize>,
__symbols: &mut ::std::vec::Vec<(usize,__Symbol<'input>,usize)>,
_: ::std::marker::PhantomData<(&'input ())>,
) -> (usize, usize)
{
let __sym0 = __pop_Variant1(__symbols);
let __start = __sym0.0.clone();
let __end = __sym0.2.clone();
let __nt = super::__action47::<>(input, __sym0);
__symbols.push((__start, __Symbol::Variant2(__nt), __end));
(1, 2)
}
pub(crate) fn __reduce4<
'input,
>(
input: &'input str,
__lookahead_start: Option<&usize>,
__symbols: &mut ::std::vec::Vec<(usize,__Symbol<'input>,usize)>,
_: ::std::marker::PhantomData<(&'input ())>,
) -> (usize, usize)
{
assert!(__symbols.len() >= 2);
let __sym1 = __pop_Variant1(__symbols);
let __sym0 = __pop_Variant2(__symbols);
let __start = __sym0.0.clone();
let __end = __sym1.2.clone();
let __nt = super::__action48::<>(input, __sym0, __sym1);
__symbols.push((__start, __Symbol::Variant2(__nt), __end));
(2, 2)
}
pub(crate) fn __reduce5<
'input,
>(
input: &'input str,
__lookahead_start: Option<&usize>,
__symbols: &mut ::std::vec::Vec<(usize,__Symbol<'input>,usize)>,
_: ::std::marker::PhantomData<(&'input ())>,
) -> (usize, usize)
{
let __sym0 = __pop_Variant1(__symbols);
let __start = __sym0.0.clone();
let __end = __sym0.2.clone();
let __nt = super::__action40::<>(input, __sym0);
__symbols.push((__start, __Symbol::Variant1(__nt), __end));
(1, 3)
}
pub(crate) fn __reduce6<
'input,
>(
input: &'input str,
__lookahead_start: Option<&usize>,
__symbols: &mut ::std::vec::Vec<(usize,__Symbol<'input>,usize)>,
_: ::std::marker::PhantomData<(&'input ())>,
) -> (usize, usize)
{
let __start = __lookahead_start.cloned().or_else(|| __symbols.last().map(|s| s.2.clone())).unwrap_or_default();
let __end = __start.clone();
let __nt = super::__action38::<>(input, &__start, &__end);
__symbols.push((__start, __Symbol::Variant2(__nt), __end));
(0, 4)
}
pub(crate) fn __reduce7<
'input,
>(
input: &'input str,
__lookahead_start: Option<&usize>,
__symbols: &mut ::std::vec::Vec<(usize,__Symbol<'input>,usize)>,
_: ::std::marker::PhantomData<(&'input ())>,
) -> (usize, usize)
{
let __sym0 = __pop_Variant2(__symbols);
let __start = __sym0.0.clone();
let __end = __sym0.2.clone();
let __nt = super::__action39::<>(input, __sym0);
__symbols.push((__start, __Symbol::Variant2(__nt), __end));
(1, 4)
}
pub(crate) fn __reduce8<
'input,
>(
input: &'input str,
__lookahead_start: Option<&usize>,
__symbols: &mut ::std::vec::Vec<(usize,__Symbol<'input>,usize)>,
_: ::std::marker::PhantomData<(&'input ())>,
) -> (usize, usize)
{
let __sym0 = __pop_Variant1(__symbols);
let __start = __sym0.0.clone();
let __end = __sym0.2.clone();
let __nt = super::__action51::<>(input, __sym0);
__symbols.push((__start, __Symbol::Variant2(__nt), __end));
(1, 5)
}
pub(crate) fn __reduce9<
'input,
>(
input: &'input str,
__lookahead_start: Option<&usize>,
__symbols: &mut ::std::vec::Vec<(usize,__Symbol<'input>,usize)>,
_: ::std::marker::PhantomData<(&'input ())>,
) -> (usize, usize)
{
assert!(__symbols.len() >= 2);
let __sym1 = __pop_Variant1(__symbols);
let __sym0 = __pop_Variant2(__symbols);
let __start = __sym0.0.clone();
let __end = __sym1.2.clone();
let __nt = super::__action52::<>(input, __sym0, __sym1);
__symbols.push((__start, __Symbol::Variant2(__nt), __end));
(2, 5)
}
pub(crate) fn __reduce10<
'input,
>(
input: &'input str,
__lookahead_start: Option<&usize>,
__symbols: &mut ::std::vec::Vec<(usize,__Symbol<'input>,usize)>,
_: ::std::marker::PhantomData<(&'input ())>,
) -> (usize, usize)
{
assert!(__symbols.len() >= 2);
let __sym1 = __pop_Variant0(__symbols);
let __sym0 = __pop_Variant5(__symbols);
let __start = __sym0.0.clone();
let __end = __sym1.2.clone();
let __nt = super::__action34::<>(input, __sym0, __sym1);
__symbols.push((__start, __Symbol::Variant3(__nt), __end));
(2, 6)
}
pub(crate) fn __reduce11<
'input,
>(
input: &'input str,
__lookahead_start: Option<&usize>,
__symbols: &mut ::std::vec::Vec<(usize,__Symbol<'input>,usize)>,
_: ::std::marker::PhantomData<(&'input ())>,
) -> (usize, usize)
{
let __start = __lookahead_start.cloned().or_else(|| __symbols.last().map(|s| s.2.clone())).unwrap_or_default();
let __end = __start.clone();
let __nt = super::__action32::<>(input, &__start, &__end);
__symbols.push((__start, __Symbol::Variant4(__nt), __end));
(0, 7)
}
pub(crate) fn __reduce12<
'input,
>(
input: &'input str,
__lookahead_start: Option<&usize>,
__symbols: &mut ::std::vec::Vec<(usize,__Symbol<'input>,usize)>,
_: ::std::marker::PhantomData<(&'input ())>,
) -> (usize, usize)
{
let __sym0 = __pop_Variant4(__symbols);
let __start = __sym0.0.clone();
let __end = __sym0.2.clone();
let __nt = super::__action33::<>(input, __sym0);
__symbols.push((__start, __Symbol::Variant4(__nt), __end));
(1, 7)
}
pub(crate) fn __reduce13<
'input,
>(
input: &'input str,
__lookahead_start: Option<&usize>,
__symbols: &mut ::std::vec::Vec<(usize,__Symbol<'input>,usize)>,
_: ::std::marker::PhantomData<(&'input ())>,
) -> (usize, usize)
{
assert!(__symbols.len() >= 2);
let __sym1 = __pop_Variant0(__symbols);
let __sym0 = __pop_Variant5(__symbols);
let __start = __sym0.0.clone();
let __end = __sym1.2.clone();
let __nt = super::__action55::<>(input, __sym0, __sym1);
__symbols.push((__start, __Symbol::Variant4(__nt), __end));
(2, 8)
}
pub(crate) fn __reduce14<
'input,
>(
input: &'input str,
__lookahead_start: Option<&usize>,
__symbols: &mut ::std::vec::Vec<(usize,__Symbol<'input>,usize)>,
_: ::std::marker::PhantomData<(&'input ())>,
) -> (usize, usize)
{
assert!(__symbols.len() >= 3);
let __sym2 = __pop_Variant0(__symbols);
let __sym1 = __pop_Variant5(__symbols);
let __sym0 = __pop_Variant4(__symbols);
let __start = __sym0.0.clone();
let __end = __sym2.2.clone();
let __nt = super::__action56::<>(input, __sym0, __sym1, __sym2);
__symbols.push((__start, __Symbol::Variant4(__nt), __end));
(3, 8)
}
pub(crate) fn __reduce15<
'input,
>(
input: &'input str,
__lookahead_start: Option<&usize>,
__symbols: &mut ::std::vec::Vec<(usize,__Symbol<'input>,usize)>,
_: ::std::marker::PhantomData<(&'input ())>,
) -> (usize, usize)
{
let __sym0 = __pop_Variant0(__symbols);
let __start = __sym0.0.clone();
let __end = __sym0.2.clone();
let __nt = super::__action15::<>(input, __sym0);
__symbols.push((__start, __Symbol::Variant1(__nt), __end));
(1, 9)
}
pub(crate) fn __reduce16<
'input,
>(
input: &'input str,
__lookahead_start: Option<&usize>,
__symbols: &mut ::std::vec::Vec<(usize,__Symbol<'input>,usize)>,
_: ::std::marker::PhantomData<(&'input ())>,
) -> (usize, usize)
{
let __sym0 = __pop_Variant0(__symbols);
let __start = __sym0.0.clone();
let __end = __sym0.2.clone();
let __nt = super::__action16::<>(input, __sym0);
__symbols.push((__start, __Symbol::Variant1(__nt), __end));
(1, 9)
}
pub(crate) fn __reduce17<
'input,
>(
input: &'input str,
__lookahead_start: Option<&usize>,
__symbols: &mut ::std::vec::Vec<(usize,__Symbol<'input>,usize)>,
_: ::std::marker::PhantomData<(&'input ())>,
) -> (usize, usize)
{
let __sym0 = __pop_Variant0(__symbols);
let __start = __sym0.0.clone();
let __end = __sym0.2.clone();
let __nt = super::__action9::<>(input, __sym0);
__symbols.push((__start, __Symbol::Variant1(__nt), __end));
(1, 10)
}
pub(crate) fn __reduce18<
'input,
>(
input: &'input str,
__lookahead_start: Option<&usize>,
__symbols: &mut ::std::vec::Vec<(usize,__Symbol<'input>,usize)>,
_: ::std::marker::PhantomData<(&'input ())>,
) -> (usize, usize)
{
let __sym0 = __pop_Variant0(__symbols);
let __start = __sym0.0.clone();
let __end = __sym0.2.clone();
let __nt = super::__action10::<>(input, __sym0);
__symbols.push((__start, __Symbol::Variant1(__nt), __end));
(1, 10)
}
pub(crate) fn __reduce19<
'input,
>(
input: &'input str,
__lookahead_start: Option<&usize>,
__symbols: &mut ::std::vec::Vec<(usize,__Symbol<'input>,usize)>,
_: ::std::marker::PhantomData<(&'input ())>,
) -> (usize, usize)
{
let __sym0 = __pop_Variant0(__symbols);
let __start = __sym0.0.clone();
let __end = __sym0.2.clone();
let __nt = super::__action11::<>(input, __sym0);
__symbols.push((__start, __Symbol::Variant1(__nt), __end));
(1, 10)
}
pub(crate) fn __reduce20<
'input,
>(
input: &'input str,
__lookahead_start: Option<&usize>,
__symbols: &mut ::std::vec::Vec<(usize,__Symbol<'input>,usize)>,
_: ::std::marker::PhantomData<(&'input ())>,
) -> (usize, usize)
{
let __sym0 = __pop_Variant0(__symbols);
let __start = __sym0.0.clone();
let __end = __sym0.2.clone();
let __nt = super::__action12::<>(input, __sym0);
__symbols.push((__start, __Symbol::Variant1(__nt), __end));
(1, 10)
}
pub(crate) fn __reduce21<
'input,
>(
input: &'input str,
__lookahead_start: Option<&usize>,
__symbols: &mut ::std::vec::Vec<(usize,__Symbol<'input>,usize)>,
_: ::std::marker::PhantomData<(&'input ())>,
) -> (usize, usize)
{
let __sym0 = __pop_Variant0(__symbols);
let __start = __sym0.0.clone();
let __end = __sym0.2.clone();
let __nt = super::__action4::<>(input, __sym0);
__symbols.push((__start, __Symbol::Variant1(__nt), __end));
(1, 11)
}
pub(crate) fn __reduce22<
'input,
>(
input: &'input str,
__lookahead_start: Option<&usize>,
__symbols: &mut ::std::vec::Vec<(usize,__Symbol<'input>,usize)>,
_: ::std::marker::PhantomData<(&'input ())>,
) -> (usize, usize)
{
let __sym0 = __pop_Variant0(__symbols);
let __start = __sym0.0.clone();
let __end = __sym0.2.clone();
let __nt = super::__action5::<>(input, __sym0);
__symbols.push((__start, __Symbol::Variant1(__nt), __end));
(1, 11)
}
pub(crate) fn __reduce23<
'input,
>(
input: &'input str,
__lookahead_start: Option<&usize>,
__symbols: &mut ::std::vec::Vec<(usize,__Symbol<'input>,usize)>,
_: ::std::marker::PhantomData<(&'input ())>,
) -> (usize, usize)
{
let __sym0 = __pop_Variant0(__symbols);
let __start = __sym0.0.clone();
let __end = __sym0.2.clone();
let __nt = super::__action6::<>(input, __sym0);
__symbols.push((__start, __Symbol::Variant1(__nt), __end));
(1, 11)
}
pub(crate) fn __reduce24<
'input,
>(
input: &'input str,
__lookahead_start: Option<&usize>,
__symbols: &mut ::std::vec::Vec<(usize,__Symbol<'input>,usize)>,
_: ::std::marker::PhantomData<(&'input ())>,
) -> (usize, usize)
{
let __sym0 = __pop_Variant5(__symbols);
let __start = __sym0.0.clone();
let __end = __sym0.2.clone();
let __nt = super::__action1::<>(input, __sym0);
__symbols.push((__start, __Symbol::Variant5(__nt), __end));
(1, 12)
}
pub(crate) fn __reduce25<
'input,
>(
input: &'input str,
__lookahead_start: Option<&usize>,
__symbols: &mut ::std::vec::Vec<(usize,__Symbol<'input>,usize)>,
_: ::std::marker::PhantomData<(&'input ())>,
) -> (usize, usize)
{
let __sym0 = __pop_Variant7(__symbols);
let __start = __sym0.0.clone();
let __end = __sym0.2.clone();
let __nt = super::__action19::<>(input, __sym0);
__symbols.push((__start, __Symbol::Variant5(__nt), __end));
(1, 13)
}
pub(crate) fn __reduce26<
'input,
>(
input: &'input str,
__lookahead_start: Option<&usize>,
__symbols: &mut ::std::vec::Vec<(usize,__Symbol<'input>,usize)>,
_: ::std::marker::PhantomData<(&'input ())>,
) -> (usize, usize)
{
assert!(__symbols.len() >= 4);
let __sym3 = __pop_Variant0(__symbols);
let __sym2 = __pop_Variant5(__symbols);
let __sym1 = __pop_Variant0(__symbols);
let __sym0 = __pop_Variant7(__symbols);
let __start = __sym0.0.clone();
let __end = __sym3.2.clone();
let __nt = super::__action59::<>(input, __sym0, __sym1, __sym2, __sym3);
__symbols.push((__start, __Symbol::Variant5(__nt), __end));
(4, 13)
}
pub(crate) fn __reduce27<
'input,
>(
input: &'input str,
__lookahead_start: Option<&usize>,
__symbols: &mut ::std::vec::Vec<(usize,__Symbol<'input>,usize)>,
_: ::std::marker::PhantomData<(&'input ())>,
) -> (usize, usize)
{
assert!(__symbols.len() >= 3);
let __sym2 = __pop_Variant0(__symbols);
let __sym1 = __pop_Variant0(__symbols);
let __sym0 = __pop_Variant7(__symbols);
let __start = __sym0.0.clone();
let __end = __sym2.2.clone();
let __nt = super::__action60::<>(input, __sym0, __sym1, __sym2);
__symbols.push((__start, __Symbol::Variant5(__nt), __end));
(3, 13)
}
pub(crate) fn __reduce28<
'input,
>(
input: &'input str,
__lookahead_start: Option<&usize>,
__symbols: &mut ::std::vec::Vec<(usize,__Symbol<'input>,usize)>,
_: ::std::marker::PhantomData<(&'input ())>,
) -> (usize, usize)
{
assert!(__symbols.len() >= 5);
let __sym4 = __pop_Variant0(__symbols);
let __sym3 = __pop_Variant5(__symbols);
let __sym2 = __pop_Variant4(__symbols);
let __sym1 = __pop_Variant0(__symbols);
let __sym0 = __pop_Variant7(__symbols);
let __start = __sym0.0.clone();
let __end = __sym4.2.clone();
let __nt = super::__action61::<>(input, __sym0, __sym1, __sym2, __sym3, __sym4);
__symbols.push((__start, __Symbol::Variant5(__nt), __end));
(5, 13)
}
pub(crate) fn __reduce29<
'input,
>(
input: &'input str,
__lookahead_start: Option<&usize>,
__symbols: &mut ::std::vec::Vec<(usize,__Symbol<'input>,usize)>,
_: ::std::marker::PhantomData<(&'input ())>,
) -> (usize, usize)
{
assert!(__symbols.len() >= 4);
let __sym3 = __pop_Variant0(__symbols);
let __sym2 = __pop_Variant4(__symbols);
let __sym1 = __pop_Variant0(__symbols);
let __sym0 = __pop_Variant7(__symbols);
let __start = __sym0.0.clone();
let __end = __sym3.2.clone();
let __nt = super::__action62::<>(input, __sym0, __sym1, __sym2, __sym3);
__symbols.push((__start, __Symbol::Variant5(__nt), __end));
(4, 13)
}
pub(crate) fn __reduce30<
'input,
>(
input: &'input str,
__lookahead_start: Option<&usize>,
__symbols: &mut ::std::vec::Vec<(usize,__Symbol<'input>,usize)>,
_: ::std::marker::PhantomData<(&'input ())>,
) -> (usize, usize)
{
assert!(__symbols.len() >= 3);
let __sym2 = __pop_Variant0(__symbols);
let __sym1 = __pop_Variant5(__symbols);
let __sym0 = __pop_Variant0(__symbols);
let __start = __sym0.0.clone();
let __end = __sym2.2.clone();
let __nt = super::__action21::<>(input, __sym0, __sym1, __sym2);
__symbols.push((__start, __Symbol::Variant5(__nt), __end));
(3, 13)
}
pub(crate) fn __reduce31<
'input,
>(
input: &'input str,
__lookahead_start: Option<&usize>,
__symbols: &mut ::std::vec::Vec<(usize,__Symbol<'input>,usize)>,
_: ::std::marker::PhantomData<(&'input ())>,
) -> (usize, usize)
{
let __sym0 = __pop_Variant5(__symbols);
let __start = __sym0.0.clone();
let __end = __sym0.2.clone();
let __nt = super::__action49::<>(input, __sym0);
__symbols.push((__start, __Symbol::Variant5(__nt), __end));
(1, 14)
}
pub(crate) fn __reduce32<
'input,
>(
input: &'input str,
__lookahead_start: Option<&usize>,
__symbols: &mut ::std::vec::Vec<(usize,__Symbol<'input>,usize)>,
_: ::std::marker::PhantomData<(&'input ())>,
) -> (usize, usize)
{
assert!(__symbols.len() >= 2);
let __sym1 = __pop_Variant2(__symbols);
let __sym0 = __pop_Variant5(__symbols);
let __start = __sym0.0.clone();
let __end = __sym1.2.clone();
let __nt = super::__action50::<>(input, __sym0, __sym1);
__symbols.push((__start, __Symbol::Variant5(__nt), __end));
(2, 14)
}
pub(crate) fn __reduce33<
'input,
>(
input: &'input str,
__lookahead_start: Option<&usize>,
__symbols: &mut ::std::vec::Vec<(usize,__Symbol<'input>,usize)>,
_: ::std::marker::PhantomData<(&'input ())>,
) -> (usize, usize)
{
let __sym0 = __pop_Variant5(__symbols);
let __start = __sym0.0.clone();
let __end = __sym0.2.clone();
let __nt = super::__action53::<>(input, __sym0);
__symbols.push((__start, __Symbol::Variant5(__nt), __end));
(1, 15)
}
pub(crate) fn __reduce34<
'input,
>(
input: &'input str,
__lookahead_start: Option<&usize>,
__symbols: &mut ::std::vec::Vec<(usize,__Symbol<'input>,usize)>,
_: ::std::marker::PhantomData<(&'input ())>,
) -> (usize, usize)
{
assert!(__symbols.len() >= 2);
let __sym1 = __pop_Variant5(__symbols);
let __sym0 = __pop_Variant2(__symbols);
let __start = __sym0.0.clone();
let __end = __sym1.2.clone();
let __nt = super::__action54::<>(input, __sym0, __sym1);
__symbols.push((__start, __Symbol::Variant5(__nt), __end));
(2, 15)
}
pub(crate) fn __reduce35<
'input,
>(
input: &'input str,
__lookahead_start: Option<&usize>,
__symbols: &mut ::std::vec::Vec<(usize,__Symbol<'input>,usize)>,
_: ::std::marker::PhantomData<(&'input ())>,
) -> (usize, usize)
{
assert!(__symbols.len() >= 3);
let __sym2 = __pop_Variant5(__symbols);
let __sym1 = __pop_Variant1(__symbols);
let __sym0 = __pop_Variant5(__symbols);
let __start = __sym0.0.clone();
let __end = __sym2.2.clone();
let __nt = super::__action13::<>(input, __sym0, __sym1, __sym2);
__symbols.push((__start, __Symbol::Variant5(__nt), __end));
(3, 16)
}
pub(crate) fn __reduce36<
'input,
>(
input: &'input str,
__lookahead_start: Option<&usize>,
__symbols: &mut ::std::vec::Vec<(usize,__Symbol<'input>,usize)>,
_: ::std::marker::PhantomData<(&'input ())>,
) -> (usize, usize)
{
let __sym0 = __pop_Variant5(__symbols);
let __start = __sym0.0.clone();
let __end = __sym0.2.clone();
let __nt = super::__action14::<>(input, __sym0);
__symbols.push((__start, __Symbol::Variant5(__nt), __end));
(1, 16)
}
pub(crate) fn __reduce37<
'input,
>(
input: &'input str,
__lookahead_start: Option<&usize>,
__symbols: &mut ::std::vec::Vec<(usize,__Symbol<'input>,usize)>,
_: ::std::marker::PhantomData<(&'input ())>,
) -> (usize, usize)
{
assert!(__symbols.len() >= 3);
let __sym2 = __pop_Variant5(__symbols);
let __sym1 = __pop_Variant1(__symbols);
let __sym0 = __pop_Variant5(__symbols);
let __start = __sym0.0.clone();
let __end = __sym2.2.clone();
let __nt = super::__action7::<>(input, __sym0, __sym1, __sym2);
__symbols.push((__start, __Symbol::Variant5(__nt), __end));
(3, 17)
}
pub(crate) fn __reduce38<
'input,
>(
input: &'input str,
__lookahead_start: Option<&usize>,
__symbols: &mut ::std::vec::Vec<(usize,__Symbol<'input>,usize)>,
_: ::std::marker::PhantomData<(&'input ())>,
) -> (usize, usize)
{
let __sym0 = __pop_Variant5(__symbols);
let __start = __sym0.0.clone();
let __end = __sym0.2.clone();
let __nt = super::__action8::<>(input, __sym0);
__symbols.push((__start, __Symbol::Variant5(__nt), __end));
(1, 17)
}
pub(crate) fn __reduce39<
'input,
>(
input: &'input str,
__lookahead_start: Option<&usize>,
__symbols: &mut ::std::vec::Vec<(usize,__Symbol<'input>,usize)>,
_: ::std::marker::PhantomData<(&'input ())>,
) -> (usize, usize)
{
assert!(__symbols.len() >= 3);
let __sym2 = __pop_Variant5(__symbols);
let __sym1 = __pop_Variant1(__symbols);
let __sym0 = __pop_Variant5(__symbols);
let __start = __sym0.0.clone();
let __end = __sym2.2.clone();
let __nt = super::__action2::<>(input, __sym0, __sym1, __sym2);
__symbols.push((__start, __Symbol::Variant5(__nt), __end));
(3, 18)
}
pub(crate) fn __reduce40<
'input,
>(
input: &'input str,
__lookahead_start: Option<&usize>,
__symbols: &mut ::std::vec::Vec<(usize,__Symbol<'input>,usize)>,
_: ::std::marker::PhantomData<(&'input ())>,
) -> (usize, usize)
{
let __sym0 = __pop_Variant5(__symbols);
let __start = __sym0.0.clone();
let __end = __sym0.2.clone();
let __nt = super::__action3::<>(input, __sym0);
__symbols.push((__start, __Symbol::Variant5(__nt), __end));
(1, 18)
}
pub(crate) fn __reduce41<
'input,
>(
input: &'input str,
__lookahead_start: Option<&usize>,
__symbols: &mut ::std::vec::Vec<(usize,__Symbol<'input>,usize)>,
_: ::std::marker::PhantomData<(&'input ())>,
) -> (usize, usize)
{
let __sym0 = __pop_Variant5(__symbols);
let __start = __sym0.0.clone();
let __end = __sym0.2.clone();
let __nt = super::__action30::<>(input, __sym0);
__symbols.push((__start, __Symbol::Variant6(__nt), __end));
(1, 19)
}
pub(crate) fn __reduce42<
'input,
>(
input: &'input str,
__lookahead_start: Option<&usize>,
__symbols: &mut ::std::vec::Vec<(usize,__Symbol<'input>,usize)>,
_: ::std::marker::PhantomData<(&'input ())>,
) -> (usize, usize)
{
let __start = __lookahead_start.cloned().or_else(|| __symbols.last().map(|s| s.2.clone())).unwrap_or_default();
let __end = __start.clone();
let __nt = super::__action31::<>(input, &__start, &__end);
__symbols.push((__start, __Symbol::Variant6(__nt), __end));
(0, 19)
}
pub(crate) fn __reduce43<
'input,
>(
input: &'input str,
__lookahead_start: Option<&usize>,
__symbols: &mut ::std::vec::Vec<(usize,__Symbol<'input>,usize)>,
_: ::std::marker::PhantomData<(&'input ())>,
) -> (usize, usize)
{
let __sym0 = __pop_Variant0(__symbols);
let __start = __sym0.0.clone();
let __end = __sym0.2.clone();
let __nt = super::__action25::<>(input, __sym0);
__symbols.push((__start, __Symbol::Variant1(__nt), __end));
(1, 20)
}
pub(crate) fn __reduce44<
'input,
>(
input: &'input str,
__lookahead_start: Option<&usize>,
__symbols: &mut ::std::vec::Vec<(usize,__Symbol<'input>,usize)>,
_: ::std::marker::PhantomData<(&'input ())>,
) -> (usize, usize)
{
let __sym0 = __pop_Variant0(__symbols);
let __start = __sym0.0.clone();
let __end = __sym0.2.clone();
let __nt = super::__action26::<>(input, __sym0);
__symbols.push((__start, __Symbol::Variant1(__nt), __end));
(1, 20)
}
pub(crate) fn __reduce45<
'input,
>(
input: &'input str,
__lookahead_start: Option<&usize>,
__symbols: &mut ::std::vec::Vec<(usize,__Symbol<'input>,usize)>,
_: ::std::marker::PhantomData<(&'input ())>,
) -> (usize, usize)
{
let __sym0 = __pop_Variant0(__symbols);
let __start = __sym0.0.clone();
let __end = __sym0.2.clone();
let __nt = super::__action22::<>(input, __sym0);
__symbols.push((__start, __Symbol::Variant1(__nt), __end));
(1, 21)
}
pub(crate) fn __reduce46<
'input,
>(
input: &'input str,
__lookahead_start: Option<&usize>,
__symbols: &mut ::std::vec::Vec<(usize,__Symbol<'input>,usize)>,
_: ::std::marker::PhantomData<(&'input ())>,
) -> (usize, usize)
{
let __sym0 = __pop_Variant0(__symbols);
let __start = __sym0.0.clone();
let __end = __sym0.2.clone();
let __nt = super::__action23::<>(input, __sym0);
__symbols.push((__start, __Symbol::Variant1(__nt), __end));
(1, 21)
}
pub(crate) fn __reduce47<
'input,
>(
input: &'input str,
__lookahead_start: Option<&usize>,
__symbols: &mut ::std::vec::Vec<(usize,__Symbol<'input>,usize)>,
_: ::std::marker::PhantomData<(&'input ())>,
) -> (usize, usize)
{
let __sym0 = __pop_Variant0(__symbols);
let __start = __sym0.0.clone();
let __end = __sym0.2.clone();
let __nt = super::__action24::<>(input, __sym0);
__symbols.push((__start, __Symbol::Variant1(__nt), __end));
(1, 21)
}
pub(crate) fn __reduce48<
'input,
>(
input: &'input str,
__lookahead_start: Option<&usize>,
__symbols: &mut ::std::vec::Vec<(usize,__Symbol<'input>,usize)>,
_: ::std::marker::PhantomData<(&'input ())>,
) -> (usize, usize)
{
let __sym0 = __pop_Variant0(__symbols);
let __start = __sym0.0.clone();
let __end = __sym0.2.clone();
let __nt = super::__action29::<>(input, __sym0);
__symbols.push((__start, __Symbol::Variant7(__nt), __end));
(1, 22)
}
pub(crate) fn __reduce49<
'input,
>(
input: &'input str,
__lookahead_start: Option<&usize>,
__symbols: &mut ::std::vec::Vec<(usize,__Symbol<'input>,usize)>,
_: ::std::marker::PhantomData<(&'input ())>,
) -> (usize, usize)
{
let __sym0 = __pop_Variant7(__symbols);
let __start = __sym0.0.clone();
let __end = __sym0.2.clone();
let __nt = super::__action27::<>(input, __sym0);
__symbols.push((__start, __Symbol::Variant7(__nt), __end));
(1, 23)
}
pub(crate) fn __reduce50<
'input,
>(
input: &'input str,
__lookahead_start: Option<&usize>,
__symbols: &mut ::std::vec::Vec<(usize,__Symbol<'input>,usize)>,
_: ::std::marker::PhantomData<(&'input ())>,
) -> (usize, usize)
{
let __sym0 = __pop_Variant0(__symbols);
let __start = __sym0.0.clone();
let __end = __sym0.2.clone();
let __nt = super::__action28::<>(input, __sym0);
__symbols.push((__start, __Symbol::Variant7(__nt), __end));
(1, 23)
}
}
pub use self::__parse__Expr::ExprParser;
#[cfg_attr(rustfmt, rustfmt_skip)]
mod __intern_token {
#![allow(unused_imports)]
use crate::ast::Expr;
#[allow(unused_extern_crates)]
extern crate lalrpop_util as __lalrpop_util;
#[allow(unused_imports)]
use self::__lalrpop_util::state_machine as __state_machine;
pub fn new_builder() -> __lalrpop_util::lexer::MatcherBuilder {
let __strs: &[(&str, bool)] = &[
("^([\\$\\.-9@-Z_a-z]+)", false),
("^(\"([\u{0}-!\\#-\\[\\]-\u{10ffff}]|\\\\[\u{0}-\t\u{b}-\u{10ffff}])*\")", false),
("^(!)", false),
("^(%)", false),
("^(\\&)", false),
("^(\\()", false),
("^(\\))", false),
("^(\\+)", false),
("^(,)", false),
("^(\\-)", false),
("^(\\.\\.)", false),
("^(:)", false),
("^(::)", false),
("^(\\^)", false),
("^(and)", false),
("^(not )", false),
("^(or)", false),
("^(\\|)", false),
(r"^(\s*)", true),
];
__lalrpop_util::lexer::MatcherBuilder::new(__strs.iter().copied()).unwrap()
}
}
pub use self::__lalrpop_util::lexer::Token;
#[allow(unused_variables)]
fn __action0<
'input,
>(
input: &'input str,
(_, __0, _): (usize, Expr, usize),
) -> Expr
{
__0
}
#[allow(unused_variables)]
fn __action1<
'input,
>(
input: &'input str,
(_, __0, _): (usize, Expr, usize),
) -> Expr
{
__0
}
#[allow(unused_variables)]
fn __action2<
'input,
>(
input: &'input str,
(_, a, _): (usize, Expr, usize),
(_, op, _): (usize, &'static str, usize),
(_, b, _): (usize, Expr, usize),
) -> Expr
{
Expr::Fn(op.into(), vec![a, b])
}
#[allow(unused_variables)]
fn __action3<
'input,
>(
input: &'input str,
(_, __0, _): (usize, Expr, usize),
) -> Expr
{
__0
}
#[allow(unused_variables)]
fn __action4<
'input,
>(
input: &'input str,
(_, __0, _): (usize, &'input str, usize),
) -> &'static str
{
"union"
}
#[allow(unused_variables)]
fn __action5<
'input,
>(
input: &'input str,
(_, __0, _): (usize, &'input str, usize),
) -> &'static str
{
"union"
}
#[allow(unused_variables)]
fn __action6<
'input,
>(
input: &'input str,
(_, __0, _): (usize, &'input str, usize),
) -> &'static str
{
"union"
}
#[allow(unused_variables)]
fn __action7<
'input,
>(
input: &'input str,
(_, a, _): (usize, Expr, usize),
(_, op, _): (usize, &'static str, usize),
(_, b, _): (usize, Expr, usize),
) -> Expr
{
Expr::Fn(op.into(), vec![a, b])
}
#[allow(unused_variables)]
fn __action8<
'input,
>(
input: &'input str,
(_, __0, _): (usize, Expr, usize),
) -> Expr
{
__0
}
#[allow(unused_variables)]
fn __action9<
'input,
>(
input: &'input str,
(_, __0, _): (usize, &'input str, usize),
) -> &'static str
{
"intersection"
}
#[allow(unused_variables)]
fn __action10<
'input,
>(
input: &'input str,
(_, __0, _): (usize, &'input str, usize),
) -> &'static str
{
"intersection"
}
#[allow(unused_variables)]
fn __action11<
'input,
>(
input: &'input str,
(_, __0, _): (usize, &'input str, usize),
) -> &'static str
{
"difference"
}
#[allow(unused_variables)]
fn __action12<
'input,
>(
input: &'input str,
(_, __0, _): (usize, &'input str, usize),
) -> &'static str
{
"only"
}
#[allow(unused_variables)]
fn __action13<
'input,
>(
input: &'input str,
(_, a, _): (usize, Expr, usize),
(_, op, _): (usize, &'static str, usize),
(_, b, _): (usize, Expr, usize),
) -> Expr
{
Expr::Fn(op.into(), vec![a, b])
}
#[allow(unused_variables)]
fn __action14<
'input,
>(
input: &'input str,
(_, __0, _): (usize, Expr, usize),
) -> Expr
{
__0
}
#[allow(unused_variables)]
fn __action15<
'input,
>(
input: &'input str,
(_, __0, _): (usize, &'input str, usize),
) -> &'static str
{
"range"
}
#[allow(unused_variables)]
fn __action16<
'input,
>(
input: &'input str,
(_, __0, _): (usize, &'input str, usize),
) -> &'static str
{
"range"
}
#[allow(unused_variables)]
fn __action17<
'input,
>(
input: &'input str,
(_, pre, _): (usize, ::std::vec::Vec<&'static str>, usize),
(_, e, _): (usize, Expr, usize),
) -> Expr
{
{
let mut e = e;
for v in pre { e = Expr::Fn(v.into(), vec![e]); }
e
}
}
#[allow(unused_variables)]
fn __action18<
'input,
>(
input: &'input str,
(_, e, _): (usize, Expr, usize),
(_, post, _): (usize, ::std::vec::Vec<&'static str>, usize),
) -> Expr
{
{
let mut e = e;
for v in post { e = Expr::Fn(v.into(), vec![e]); }
e
}
}
#[allow(unused_variables)]
fn __action19<
'input,
>(
input: &'input str,
(_, __0, _): (usize, String, usize),
) -> Expr
{
Expr::Name(__0)
}
#[allow(unused_variables)]
fn __action20<
'input,
>(
input: &'input str,
(_, f, _): (usize, String, usize),
(_, _, _): (usize, &'input str, usize),
(_, args, _): (usize, ::std::vec::Vec<(Expr, &'input str)>, usize),
(_, last, _): (usize, ::std::option::Option<Expr>, usize),
(_, _, _): (usize, &'input str, usize),
) -> Expr
{
{
let mut arg_list: Vec<Expr> = args.into_iter().map(|(e, _)| e).collect();
if let Some(last_arg) = last { arg_list.push(last_arg); }
Expr::Fn(f.into(), arg_list)
}
}
#[allow(unused_variables)]
fn __action21<
'input,
>(
input: &'input str,
(_, _, _): (usize, &'input str, usize),
(_, __0, _): (usize, Expr, usize),
(_, _, _): (usize, &'input str, usize),
) -> Expr
{
__0
}
#[allow(unused_variables)]
fn __action22<
'input,
>(
input: &'input str,
(_, __0, _): (usize, &'input str, usize),
) -> &'static str
{
"negate"
}
#[allow(unused_variables)]
fn __action23<
'input,
>(
input: &'input str,
(_, __0, _): (usize, &'input str, usize),
) -> &'static str
{
"negate"
}
#[allow(unused_variables)]
fn __action24<
'input,
>(
input: &'input str,
(_, __0, _): (usize, &'input str, usize),
) -> &'static str
{
"ancestors"
}
#[allow(unused_variables)]
fn __action25<
'input,
>(
input: &'input str,
(_, __0, _): (usize, &'input str, usize),
) -> &'static str
{
"descendants"
}
#[allow(unused_variables)]
fn __action26<
'input,
>(
input: &'input str,
(_, __0, _): (usize, &'input str, usize),
) -> &'static str
{
"parents"
}
#[allow(unused_variables)]
fn __action27<
'input,
>(
input: &'input str,
(_, __0, _): (usize, String, usize),
) -> String
{
__0
}
#[allow(unused_variables)]
fn __action28<
'input,
>(
input: &'input str,
(_, escaped, _): (usize, &'input str, usize),
) -> String
{
{
let mut result = String::with_capacity(escaped.len());
let mut prev = '_';
for ch in escaped[1..escaped.len()-1].chars() {
match (prev, ch) {
('\\', 'n') => result.push('\n'),
('\\', _) => result.push(ch),
(_, '\\') => (),
(_, _) => result.push(ch),
}
prev = ch;
}
result
}
}
#[allow(unused_variables)]
fn __action29<
'input,
>(
input: &'input str,
(_, __0, _): (usize, &'input str, usize),
) -> String
{
__0.to_string()
}
#[allow(unused_variables)]
fn __action30<
'input,
>(
input: &'input str,
(_, __0, _): (usize, Expr, usize),
) -> ::std::option::Option<Expr>
{
Some(__0)
}
#[allow(unused_variables)]
fn __action31<
'input,
>(
input: &'input str,
__lookbehind: &usize,
__lookahead: &usize,
) -> ::std::option::Option<Expr>
{
None
}
#[allow(unused_variables)]
fn __action32<
'input,
>(
input: &'input str,
__lookbehind: &usize,
__lookahead: &usize,
) -> ::std::vec::Vec<(Expr, &'input str)>
{
vec![]
}
#[allow(unused_variables)]
fn __action33<
'input,
>(
input: &'input str,
(_, v, _): (usize, ::std::vec::Vec<(Expr, &'input str)>, usize),
) -> ::std::vec::Vec<(Expr, &'input str)>
{
v
}
#[allow(unused_variables)]
fn __action34<
'input,
>(
input: &'input str,
(_, __0, _): (usize, Expr, usize),
(_, __1, _): (usize, &'input str, usize),
) -> (Expr, &'input str)
{
(__0, __1)
}
#[allow(unused_variables)]
fn __action35<
'input,
>(
input: &'input str,
__lookbehind: &usize,
__lookahead: &usize,
) -> ::std::vec::Vec<&'static str>
{
vec![]
}
#[allow(unused_variables)]
fn __action36<
'input,
>(
input: &'input str,
(_, v, _): (usize, ::std::vec::Vec<&'static str>, usize),
) -> ::std::vec::Vec<&'static str>
{
v
}
#[allow(unused_variables)]
fn __action37<
'input,
>(
input: &'input str,
(_, __0, _): (usize, &'static str, usize),
) -> &'static str
{
__0
}
#[allow(unused_variables)]
fn __action38<
'input,
>(
input: &'input str,
__lookbehind: &usize,
__lookahead: &usize,
) -> ::std::vec::Vec<&'static str>
{
vec![]
}
#[allow(unused_variables)]
fn __action39<
'input,
>(
input: &'input str,
(_, v, _): (usize, ::std::vec::Vec<&'static str>, usize),
) -> ::std::vec::Vec<&'static str>
{
v
}
#[allow(unused_variables)]
fn __action40<
'input,
>(
input: &'input str,
(_, __0, _): (usize, &'static str, usize),
) -> &'static str
{
__0
}
#[allow(unused_variables)]
fn __action41<
'input,
>(
input: &'input str,
(_, __0, _): (usize, &'static str, usize),
) -> ::std::vec::Vec<&'static str>
{
vec![__0]
}
#[allow(unused_variables)]
fn __action42<
'input,
>(
input: &'input str,
(_, v, _): (usize, ::std::vec::Vec<&'static str>, usize),
(_, e, _): (usize, &'static str, usize),
) -> ::std::vec::Vec<&'static str>
{
{ let mut v = v; v.push(e); v }
}
#[allow(unused_variables)]
fn __action43<
'input,
>(
input: &'input str,
(_, __0, _): (usize, &'static str, usize),
) -> ::std::vec::Vec<&'static str>
{
vec![__0]
}
#[allow(unused_variables)]
fn __action44<
'input,
>(
input: &'input str,
(_, v, _): (usize, ::std::vec::Vec<&'static str>, usize),
(_, e, _): (usize, &'static str, usize),
) -> ::std::vec::Vec<&'static str>
{
{ let mut v = v; v.push(e); v }
}
#[allow(unused_variables)]
fn __action45<
'input,
>(
input: &'input str,
(_, __0, _): (usize, (Expr, &'input str), usize),
) -> ::std::vec::Vec<(Expr, &'input str)>
{
vec![__0]
}
#[allow(unused_variables)]
fn __action46<
'input,
>(
input: &'input str,
(_, v, _): (usize, ::std::vec::Vec<(Expr, &'input str)>, usize),
(_, e, _): (usize, (Expr, &'input str), usize),
) -> ::std::vec::Vec<(Expr, &'input str)>
{
{ let mut v = v; v.push(e); v }
}
#[allow(unused_variables)]
fn __action47<
'input,
>(
input: &'input str,
__0: (usize, &'static str, usize),
) -> ::std::vec::Vec<&'static str>
{
let __start0 = __0.0.clone();
let __end0 = __0.2.clone();
let __temp0 = __action37(
input,
__0,
);
let __temp0 = (__start0, __temp0, __end0);
__action43(
input,
__temp0,
)
}
#[allow(unused_variables)]
fn __action48<
'input,
>(
input: &'input str,
__0: (usize, ::std::vec::Vec<&'static str>, usize),
__1: (usize, &'static str, usize),
) -> ::std::vec::Vec<&'static str>
{
let __start0 = __1.0.clone();
let __end0 = __1.2.clone();
let __temp0 = __action37(
input,
__1,
);
let __temp0 = (__start0, __temp0, __end0);
__action44(
input,
__0,
__temp0,
)
}
#[allow(unused_variables)]
fn __action49<
'input,
>(
input: &'input str,
__0: (usize, Expr, usize),
) -> Expr
{
let __start0 = __0.2.clone();
let __end0 = __0.2.clone();
let __temp0 = __action35(
input,
&__start0,
&__end0,
);
let __temp0 = (__start0, __temp0, __end0);
__action18(
input,
__0,
__temp0,
)
}
#[allow(unused_variables)]
fn __action50<
'input,
>(
input: &'input str,
__0: (usize, Expr, usize),
__1: (usize, ::std::vec::Vec<&'static str>, usize),
) -> Expr
{
let __start0 = __1.0.clone();
let __end0 = __1.2.clone();
let __temp0 = __action36(
input,
__1,
);
let __temp0 = (__start0, __temp0, __end0);
__action18(
input,
__0,
__temp0,
)
}
#[allow(unused_variables)]
fn __action51<
'input,
>(
input: &'input str,
__0: (usize, &'static str, usize),
) -> ::std::vec::Vec<&'static str>
{
let __start0 = __0.0.clone();
let __end0 = __0.2.clone();
let __temp0 = __action40(
input,
__0,
);
let __temp0 = (__start0, __temp0, __end0);
__action41(
input,
__temp0,
)
}
#[allow(unused_variables)]
fn __action52<
'input,
>(
input: &'input str,
__0: (usize, ::std::vec::Vec<&'static str>, usize),
__1: (usize, &'static str, usize),
) -> ::std::vec::Vec<&'static str>
{
let __start0 = __1.0.clone();
let __end0 = __1.2.clone();
let __temp0 = __action40(
input,
__1,
);
let __temp0 = (__start0, __temp0, __end0);
__action42(
input,
__0,
__temp0,
)
}
#[allow(unused_variables)]
fn __action53<
'input,
>(
input: &'input str,
__0: (usize, Expr, usize),
) -> Expr
{
let __start0 = __0.0.clone();
let __end0 = __0.0.clone();
let __temp0 = __action38(
input,
&__start0,
&__end0,
);
let __temp0 = (__start0, __temp0, __end0);
__action17(
input,
__temp0,
__0,
)
}
#[allow(unused_variables)]
fn __action54<
'input,
>(
input: &'input str,
__0: (usize, ::std::vec::Vec<&'static str>, usize),
__1: (usize, Expr, usize),
) -> Expr
{
let __start0 = __0.0.clone();
let __end0 = __0.2.clone();
let __temp0 = __action39(
input,
__0,
);
let __temp0 = (__start0, __temp0, __end0);
__action17(
input,
__temp0,
__1,
)
}
#[allow(unused_variables)]
fn __action55<
'input,
>(
input: &'input str,
__0: (usize, Expr, usize),
__1: (usize, &'input str, usize),
) -> ::std::vec::Vec<(Expr, &'input str)>
{
let __start0 = __0.0.clone();
let __end0 = __1.2.clone();
let __temp0 = __action34(
input,
__0,
__1,
);
let __temp0 = (__start0, __temp0, __end0);
__action45(
input,
__temp0,
)
}
#[allow(unused_variables)]
fn __action56<
'input,
>(
input: &'input str,
__0: (usize, ::std::vec::Vec<(Expr, &'input str)>, usize),
__1: (usize, Expr, usize),
__2: (usize, &'input str, usize),
) -> ::std::vec::Vec<(Expr, &'input str)>
{
let __start0 = __1.0.clone();
let __end0 = __2.2.clone();
let __temp0 = __action34(
input,
__1,
__2,
);
let __temp0 = (__start0, __temp0, __end0);
__action46(
input,
__0,
__temp0,
)
}
#[allow(unused_variables)]
fn __action57<
'input,
>(
input: &'input str,
__0: (usize, String, usize),
__1: (usize, &'input str, usize),
__2: (usize, ::std::option::Option<Expr>, usize),
__3: (usize, &'input str, usize),
) -> Expr
{
let __start0 = __1.2.clone();
let __end0 = __2.0.clone();
let __temp0 = __action32(
input,
&__start0,
&__end0,
);
let __temp0 = (__start0, __temp0, __end0);
__action20(
input,
__0,
__1,
__temp0,
__2,
__3,
)
}
#[allow(unused_variables)]
fn __action58<
'input,
>(
input: &'input str,
__0: (usize, String, usize),
__1: (usize, &'input str, usize),
__2: (usize, ::std::vec::Vec<(Expr, &'input str)>, usize),
__3: (usize, ::std::option::Option<Expr>, usize),
__4: (usize, &'input str, usize),
) -> Expr
{
let __start0 = __2.0.clone();
let __end0 = __2.2.clone();
let __temp0 = __action33(
input,
__2,
);
let __temp0 = (__start0, __temp0, __end0);
__action20(
input,
__0,
__1,
__temp0,
__3,
__4,
)
}
#[allow(unused_variables)]
fn __action59<
'input,
>(
input: &'input str,
__0: (usize, String, usize),
__1: (usize, &'input str, usize),
__2: (usize, Expr, usize),
__3: (usize, &'input str, usize),
) -> Expr
{
let __start0 = __2.0.clone();
let __end0 = __2.2.clone();
let __temp0 = __action30(
input,
__2,
);
let __temp0 = (__start0, __temp0, __end0);
__action57(
input,
__0,
__1,
__temp0,
__3,
)
}
#[allow(unused_variables)]
fn __action60<
'input,
>(
input: &'input str,
__0: (usize, String, usize),
__1: (usize, &'input str, usize),
__2: (usize, &'input str, usize),
) -> Expr
{
let __start0 = __1.2.clone();
let __end0 = __2.0.clone();
let __temp0 = __action31(
input,
&__start0,
&__end0,
);
let __temp0 = (__start0, __temp0, __end0);
__action57(
input,
__0,
__1,
__temp0,
__2,
)
}
#[allow(unused_variables)]
fn __action61<
'input,
>(
input: &'input str,
__0: (usize, String, usize),
__1: (usize, &'input str, usize),
__2: (usize, ::std::vec::Vec<(Expr, &'input str)>, usize),
__3: (usize, Expr, usize),
__4: (usize, &'input str, usize),
) -> Expr
{
let __start0 = __3.0.clone();
let __end0 = __3.2.clone();
let __temp0 = __action30(
input,
__3,
);
let __temp0 = (__start0, __temp0, __end0);
__action58(
input,
__0,
__1,
__2,
__temp0,
__4,
)
}
#[allow(unused_variables)]
fn __action62<
'input,
>(
input: &'input str,
__0: (usize, String, usize),
__1: (usize, &'input str, usize),
__2: (usize, ::std::vec::Vec<(Expr, &'input str)>, usize),
__3: (usize, &'input str, usize),
) -> Expr
{
let __start0 = __2.2.clone();
let __end0 = __3.0.clone();
let __temp0 = __action31(
input,
&__start0,
&__end0,
);
let __temp0 = (__start0, __temp0, __end0);
__action58(
input,
__0,
__1,
__2,
__temp0,
__3,
)
}
pub trait __ToTriple<'input, > {
fn to_triple(value: Self) -> Result<(usize,Token<'input>,usize), __lalrpop_util::ParseError<usize, Token<'input>, &'static str>>;
}
impl<'input, > __ToTriple<'input, > for (usize, Token<'input>, usize) {
fn to_triple(value: Self) -> Result<(usize,Token<'input>,usize), __lalrpop_util::ParseError<usize, Token<'input>, &'static str>> {
Ok(value)
}
}
impl<'input, > __ToTriple<'input, > for Result<(usize, Token<'input>, usize), &'static str> {
fn to_triple(value: Self) -> Result<(usize,Token<'input>,usize), __lalrpop_util::ParseError<usize, Token<'input>, &'static str>> {
match value {
Ok(v) => Ok(v),
Err(error) => Err(__lalrpop_util::ParseError::User { error }),
}
}
}