nushell/src/parser/parser.rs
Yehuda Katz 324f7915be Span all the things
Also set up builder infra for more consistent AST creation.
2019-06-05 23:34:59 -07:00

7240 lines
235 KiB
Rust

// auto-generated: "lalrpop 0.17.0"
// sha256: fcc54cbfc288e82dcd759b41803d54d69337bfffac5c19d297a91f1f97db993
#![allow(unused)]
use std::str::FromStr;
use crate::parser::ast::*;
use crate::prelude::*;
use crate::parser::lexer::{SpannedToken, Spanned, Span, Token};
use byte_unit::Byte;
#[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__Call {
#![allow(non_snake_case, non_camel_case_types, unused_mut, unused_variables, unused_imports, unused_parens)]
use std::str::FromStr;
use crate::parser::ast::*;
use crate::prelude::*;
use crate::parser::lexer::{SpannedToken, Spanned, Span, Token};
use byte_unit::Byte;
#[allow(unused_extern_crates)]
extern crate lalrpop_util as __lalrpop_util;
#[allow(unused_imports)]
use self::__lalrpop_util::state_machine as __state_machine;
use super::__ToTriple;
#[allow(dead_code)]
pub enum __Symbol<'input>
{
Variant0(SpannedToken<'input>),
Variant1(::std::vec::Vec<SpannedToken<'input>>),
Variant2(Expression),
Variant3(::std::vec::Vec<Expression>),
Variant4(usize),
Variant5(Bare),
Variant6(i64),
Variant7(String),
Variant8(Operator),
Variant9(Pipeline),
Variant10(Spanned<Operator>),
}
const __ACTION: &'static [i8] = &[
// State 0
0, 13, 14, 0, 0, 0, 0, 0, 0, 0, 0, 0, 15, 0, 16, 0, 17, 0, 18, 0, 0, 19, 0, 0,
// State 1
-17, -17, -17, -17, -17, -17, -17, -17, -17, -17, -17, 0, -17, 0, -17, 0, -17, 0, -17, 0, 0, -17, 0, -17,
// State 2
0, 13, 14, 0, 27, 28, 0, 0, 0, 0, 0, 0, 15, 0, 16, 0, 17, 0, 18, 0, 0, 19, 0, 0,
// State 3
-40, -40, -40, -40, -40, -40, -40, -40, -40, -40, -40, -40, -40, 0, -40, 0, -40, 0, -40, 0, 0, -40, 0, -40,
// State 4
0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
// State 5
0, 13, 14, 0, 27, 28, 0, 0, 0, 0, 0, 0, 15, 0, 16, 0, 17, 0, 18, 0, 0, 19, 0, 0,
// State 6
-33, -33, -33, -33, -33, -33, -33, -33, -33, -33, -33, -33, -33, 0, -33, 0, -33, 0, -33, 31, 0, -33, 0, -33,
// State 7
-39, -39, -39, -39, -39, -39, -39, -39, -39, -39, -39, -39, -39, 0, -39, 0, -39, 0, -39, 0, 0, -39, 0, -39,
// State 8
-27, -27, -27, -27, -27, -27, -27, -27, -27, -27, -27, 33, -27, 0, -27, 0, -27, 0, -27, 0, 0, -27, 0, -27,
// State 9
-32, -32, -32, -32, -32, -32, -32, -32, -32, -32, -32, -32, -32, 0, -32, 0, -32, 0, -32, 0, 0, -32, 0, -32,
// State 10
-34, -34, -34, -34, -34, -34, -34, -34, -34, -34, -34, -34, -34, 0, -34, 0, -34, 0, -34, 0, 0, -34, 0, -34,
// State 11
-35, -35, -35, -35, -35, -35, -35, -35, -35, -35, -35, -35, -35, 0, -35, 0, -35, 0, -35, 0, 0, -35, 0, -35,
// State 12
0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 34, 0, 0, 0,
// State 13
0, 13, 14, 0, 0, 0, 0, 0, 0, 0, 0, 0, 15, 0, 16, 0, 17, 0, 18, 0, 0, 19, 0, 0,
// State 14
-16, -16, -16, -16, -16, -16, -16, -16, -16, -16, -16, 0, -16, 0, -16, 0, -16, 0, -16, 0, 0, -16, 0, -16,
// State 15
-61, -61, -61, -61, -61, -61, -61, -61, -61, -61, -61, -61, -61, 0, -61, 0, -61, 0, -61, 0, 0, -61, 0, -61,
// State 16
-31, -31, -31, -31, -31, -31, -31, -31, -31, -31, -31, -31, -31, 0, -31, 0, -31, 0, -31, -31, 0, -31, 0, -31,
// State 17
-60, -60, -60, -60, -60, -60, -60, -60, -60, -60, -60, -60, -60, 0, -60, 0, -60, 0, -60, 0, 0, -60, 0, -60,
// State 18
0, 13, 14, 0, 0, 0, 0, 0, 0, 0, 0, 0, 15, 0, 16, 0, 17, 0, 18, 0, 0, 19, 0, 0,
// State 19
47, -25, -25, -25, -25, -25, 48, 49, 50, 51, 52, 0, -25, 0, -25, 0, -25, 0, -25, 0, 0, -25, 0, -25,
// State 20
-15, -15, -15, -15, -15, -15, -15, -15, -15, -15, -15, 0, -15, 0, -15, 0, -15, 0, -15, 0, 0, -15, 0, -15,
// State 21
0, 0, 0, -55, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, -55,
// State 22
0, 13, 14, -54, 27, 28, 0, 0, 0, 0, 0, 0, 15, 0, 16, 0, 17, 0, 18, 0, 0, 19, 0, -54,
// State 23
-14, -14, -14, -14, -14, -14, -14, -14, -14, -14, -14, 0, -14, 0, -14, 0, -14, 0, -14, 0, 0, -14, 0, -14,
// State 24
0, -26, -26, -26, -26, -26, 0, 0, 0, 0, 0, 0, -26, 0, -26, 0, -26, 0, -26, 0, 0, -26, 0, -26,
// State 25
0, 0, 0, -23, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, -23,
// State 26
0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 15, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
// State 27
0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 15, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
// State 28
0, 13, 14, -54, 27, 28, 0, 0, 0, 0, 0, 0, 15, 0, 16, 0, 17, 0, 18, 0, 0, 19, 0, -54,
// State 29
0, 0, 0, -21, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, -21,
// State 30
-62, -62, -62, -62, -62, -62, -62, -62, -62, -62, -62, -62, -62, 0, -62, 0, -62, 0, -62, 0, 0, -62, 0, -62,
// State 31
-28, -28, -28, -28, -28, -28, -28, -28, -28, -28, -28, 59, -28, 0, -28, 0, -28, 0, -28, 0, 0, -28, 0, -28,
// State 32
0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 60, 0, 0, 0, 0, 0, 0, 0, 0,
// State 33
-63, -63, -63, -63, -63, -63, -63, -63, -63, -63, -63, -63, -63, 0, -63, 0, -63, 0, -63, 0, 0, -63, 0, -63,
// State 34
47, 0, 0, 0, 0, 0, 48, 49, 50, 51, 52, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
// State 35
-15, 13, 14, 61, 27, 28, -15, -15, -15, -15, -15, 0, 15, 0, 16, 0, 17, 0, 18, 0, 0, 19, 0, 0,
// State 36
0, 0, 0, 62, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
// State 37
0, 0, 0, 63, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
// State 38
-14, 13, 14, 0, 27, 28, -14, -14, -14, -14, -14, 0, 15, 0, 16, 0, 17, 0, 18, 0, 0, 19, 0, 0,
// State 39
-15, 13, 14, 0, 27, 28, -15, -15, -15, -15, -15, 0, 15, 0, 16, 0, 17, 0, 18, 0, 0, 19, 0, 64,
// State 40
0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, -58,
// State 41
0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, -57,
// State 42
-14, 13, 14, 0, 27, 28, -14, -14, -14, -14, -14, 0, 15, 0, 16, 0, 17, 0, 18, 0, 0, 19, 0, -56,
// State 43
0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 65,
// State 44
0, -59, -59, 0, 0, 0, 0, 0, 0, 0, 0, 0, -59, 0, -59, 0, -59, 0, -59, 0, 0, -59, 0, 0,
// State 45
0, 13, 14, 0, 0, 0, 0, 0, 0, 0, 0, 0, 15, 0, 16, 0, 17, 0, 18, 0, 0, 19, 0, 0,
// State 46
0, -45, -45, 0, 0, 0, 0, 0, 0, 0, 0, 0, -45, 0, -45, 0, -45, 0, -45, 0, 0, -45, 0, 0,
// State 47
0, -46, -46, 0, 0, 0, 0, 0, 0, 0, 0, 0, -46, 0, -46, 0, -46, 0, -46, 0, 0, -46, 0, 0,
// State 48
0, -48, -48, 0, 0, 0, 0, 0, 0, 0, 0, 0, -48, 0, -48, 0, -48, 0, -48, 0, 0, -48, 0, 0,
// State 49
0, -44, -44, 0, 0, 0, 0, 0, 0, 0, 0, 0, -44, 0, -44, 0, -44, 0, -44, 0, 0, -44, 0, 0,
// State 50
0, -47, -47, 0, 0, 0, 0, 0, 0, 0, 0, 0, -47, 0, -47, 0, -47, 0, -47, 0, 0, -47, 0, 0,
// State 51
0, -49, -49, 0, 0, 0, 0, 0, 0, 0, 0, 0, -49, 0, -49, 0, -49, 0, -49, 0, 0, -49, 0, 0,
// State 52
0, 13, 14, -24, 27, 28, 0, 0, 0, 0, 0, 0, 15, 0, 16, 0, 17, 0, 18, 0, 0, 19, 0, -24,
// State 53
0, -25, -25, -25, -25, -25, 0, 0, 0, 0, 0, 0, -25, 0, -25, 0, -25, 0, -25, 0, 0, -25, 0, -25,
// State 54
0, -10, -10, -10, -10, -10, 0, 0, 0, 0, 0, 0, -10, 0, -10, 0, -10, 0, -10, 0, 0, -10, 0, -10,
// State 55
0, -29, -29, -29, -29, -29, 0, 0, 0, 0, 0, 0, -29, 0, -29, 0, -29, 0, -29, 0, 0, -29, 0, -29,
// State 56
0, -30, -30, -30, -30, -30, 0, 0, 0, 0, 0, 0, -30, 0, -30, 0, -30, 0, -30, 0, 0, -30, 0, -30,
// State 57
0, 13, 14, -22, 27, 28, 0, 0, 0, 0, 0, 0, 15, 0, 16, 0, 17, 0, 18, 0, 0, 19, 0, -22,
// State 58
0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 68, 0, 0, 0, 0, 0, 0, 0, 0,
// State 59
-2, -2, -2, -2, -2, -2, -2, -2, -2, -2, -2, -2, -2, 0, -2, 0, -2, 0, -2, 0, 0, -2, 0, -2,
// State 60
-42, -42, -42, -42, -42, -42, -42, -42, -42, -42, -42, -42, -42, 0, -42, 0, -42, 0, -42, 0, 0, -42, 0, -42,
// State 61
-43, -43, -43, -43, -43, -43, -43, -43, -43, -43, -43, -43, -43, 0, -43, 0, -43, 0, -43, 0, 0, -43, 0, -43,
// State 62
-41, -41, -41, -41, -41, -41, -41, -41, -41, -41, -41, -41, -41, 0, -41, 0, -41, 0, -41, 0, 0, -41, 0, -41,
// State 63
-20, -20, -20, -20, -20, -20, -20, -20, -20, -20, -20, -20, -20, 0, -20, 0, -20, 0, -20, 0, 0, -20, 0, -20,
// State 64
-19, -19, -19, -19, -19, -19, -19, -19, -19, -19, -19, -19, -19, 0, -19, 0, -19, 0, -19, 0, 0, -19, 0, -19,
// State 65
0, 0, 0, -18, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, -18,
// State 66
0, -11, -11, -11, -11, -11, 0, 0, 0, 0, 0, 0, -11, 0, -11, 0, -11, 0, -11, 0, 0, -11, 0, -11,
// State 67
-3, -3, -3, -3, -3, -3, -3, -3, -3, -3, -3, -3, -3, 0, -3, 0, -3, 0, -3, 0, 0, -3, 0, -3,
];
const __EOF_ACTION: &'static [i8] = &[
// State 0
0,
// State 1
-17,
// State 2
0,
// State 3
-40,
// State 4
-64,
// State 5
0,
// State 6
-33,
// State 7
-39,
// State 8
-27,
// State 9
-32,
// State 10
-34,
// State 11
-35,
// State 12
0,
// State 13
0,
// State 14
-16,
// State 15
-61,
// State 16
-31,
// State 17
-60,
// State 18
0,
// State 19
-25,
// State 20
-15,
// State 21
-55,
// State 22
-54,
// State 23
-14,
// State 24
-26,
// State 25
-23,
// State 26
0,
// State 27
0,
// State 28
-54,
// State 29
-21,
// State 30
-62,
// State 31
-28,
// State 32
0,
// State 33
-63,
// State 34
0,
// State 35
0,
// State 36
0,
// State 37
0,
// State 38
0,
// State 39
0,
// State 40
0,
// State 41
0,
// State 42
0,
// State 43
0,
// State 44
0,
// State 45
0,
// State 46
0,
// State 47
0,
// State 48
0,
// State 49
0,
// State 50
0,
// State 51
0,
// State 52
-24,
// State 53
-25,
// State 54
-10,
// State 55
-29,
// State 56
-30,
// State 57
-22,
// State 58
0,
// State 59
-2,
// State 60
-42,
// State 61
-43,
// State 62
-41,
// State 63
-20,
// State 64
-19,
// State 65
-18,
// State 66
-11,
// State 67
-3,
];
const __GOTO: &'static [i8] = &[
// State 0
0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 2, 3, 0, 4, 5, 0, 6, 0, 7, 8, 0, 9, 0, 0, 0, 0, 0, 0, 10, 11, 12, 0, 0,
// State 1
0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
// State 2
0, 0, 0, 0, 0, 0, 0, 0, 0, 20, 2, 21, 22, 4, 0, 23, 24, 25, 7, 8, 0, 9, 0, 0, 0, 26, 0, 0, 10, 11, 12, 0, 0,
// State 3
0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
// State 4
0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
// State 5
0, 0, 0, 0, 0, 0, 0, 0, 0, 20, 2, 21, 22, 4, 0, 29, 24, 25, 7, 8, 0, 9, 0, 0, 0, 30, 0, 0, 10, 11, 12, 0, 0,
// State 6
0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
// State 7
0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
// State 8
0, 32, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
// State 9
0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
// State 10
0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
// State 11
0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
// State 12
0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
// State 13
0, 0, 0, 0, 0, 0, 0, 0, 0, 35, 2, 36, 37, 4, 38, 0, 39, 0, 7, 8, 0, 9, 0, 0, 0, 0, 0, 0, 10, 11, 12, 0, 0,
// State 14
0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
// State 15
0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
// State 16
0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
// State 17
0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
// State 18
0, 0, 0, 0, 0, 0, 0, 0, 0, 35, 2, 40, 41, 4, 42, 0, 43, 0, 7, 8, 0, 9, 0, 0, 0, 0, 44, 0, 10, 11, 12, 0, 0,
// State 19
0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 45, 0, 0, 0, 0, 46, 0, 0, 0, 0, 0,
// State 20
0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
// State 21
0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
// State 22
0, 0, 0, 0, 0, 0, 53, 0, 0, 54, 2, 21, 0, 4, 0, 55, 24, 25, 7, 8, 0, 9, 0, 0, 0, 0, 0, 0, 10, 11, 12, 0, 0,
// State 23
0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
// State 24
0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
// State 25
0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
// State 26
0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 56, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
// State 27
0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 57, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
// State 28
0, 0, 0, 0, 0, 0, 58, 0, 0, 54, 2, 21, 0, 4, 0, 55, 24, 25, 7, 8, 0, 9, 0, 0, 0, 0, 0, 0, 10, 11, 12, 0, 0,
// State 29
0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
// State 30
0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
// State 31
0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
// State 32
0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
// State 33
0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
// State 34
0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 45, 0, 0, 0, 0, 46, 0, 0, 0, 0, 0,
// State 35
0, 0, 0, 0, 0, 0, 0, 0, 0, 20, 2, 21, 22, 4, 0, 23, 24, 25, 7, 8, 0, 9, 0, 0, 0, 26, 0, 0, 10, 11, 12, 0, 0,
// State 36
0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
// State 37
0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
// State 38
0, 0, 0, 0, 0, 0, 0, 0, 0, 20, 2, 21, 22, 4, 0, 29, 24, 25, 7, 8, 0, 9, 0, 0, 0, 30, 0, 0, 10, 11, 12, 0, 0,
// State 39
0, 0, 0, 0, 0, 0, 0, 0, 0, 20, 2, 21, 22, 4, 0, 23, 24, 25, 7, 8, 0, 9, 0, 0, 0, 26, 0, 0, 10, 11, 12, 0, 0,
// State 40
0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
// State 41
0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
// State 42
0, 0, 0, 0, 0, 0, 0, 0, 0, 20, 2, 21, 22, 4, 0, 29, 24, 25, 7, 8, 0, 9, 0, 0, 0, 30, 0, 0, 10, 11, 12, 0, 0,
// State 43
0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
// State 44
0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
// State 45
0, 0, 0, 0, 0, 0, 0, 0, 0, 66, 2, 21, 0, 4, 0, 0, 24, 0, 7, 8, 0, 9, 0, 0, 0, 0, 0, 0, 10, 11, 12, 0, 0,
// State 46
0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
// State 47
0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
// State 48
0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
// State 49
0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
// State 50
0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
// State 51
0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
// State 52
0, 0, 0, 0, 0, 0, 0, 0, 0, 54, 2, 21, 0, 4, 0, 67, 24, 25, 7, 8, 0, 9, 0, 0, 0, 0, 0, 0, 10, 11, 12, 0, 0,
// State 53
0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
// State 54
0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
// State 55
0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
// State 56
0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
// State 57
0, 0, 0, 0, 0, 0, 0, 0, 0, 54, 2, 21, 0, 4, 0, 67, 24, 25, 7, 8, 0, 9, 0, 0, 0, 0, 0, 0, 10, 11, 12, 0, 0,
// State 58
0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
// State 59
0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
// State 60
0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
// State 61
0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
// State 62
0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
// State 63
0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
// State 64
0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
// State 65
0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
// State 66
0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
// State 67
0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
];
fn __expected_tokens(__state: usize) -> Vec<::std::string::String> {
const __TERMINAL: &'static [&'static str] = &[
r###""!=""###,
r###""$""###,
r###""(""###,
r###"")""###,
r###""-""###,
r###""--""###,
r###""<""###,
r###""<=""###,
r###""==""###,
r###"">""###,
r###"">=""###,
r###""???.""###,
r###""bare""###,
r###""dqmember""###,
r###""dqstring""###,
r###""member""###,
r###""num""###,
r###""sqmember""###,
r###""sqstring""###,
r###""unit""###,
r###""variable""###,
r###""{""###,
r###""|""###,
r###""}""###,
];
__ACTION[(__state * 24)..].iter().zip(__TERMINAL).filter_map(|(&state, terminal)| {
if state == 0 {
None
} else {
Some(terminal.to_string())
}
}).collect()
}
pub struct __StateMachine<'input>
where
{
__phantom: ::std::marker::PhantomData<(&'input ())>,
}
impl<'input> __state_machine::ParserDefinition for __StateMachine<'input>
where
{
type Location = usize;
type Error = ShellError;
type Token = SpannedToken<'input>;
type TokenIndex = usize;
type Symbol = __Symbol<'input>;
type Success = Expression;
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 as usize) * 24 + integer]
}
#[inline]
fn error_action(&self, state: i8) -> i8 {
__ACTION[(state as usize) * 24 + (24 - 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 as usize) * 33 + nt] - 1
}
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 as usize)
}
#[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(
action,
start_location,
states,
symbols,
::std::marker::PhantomData::<(&())>,
)
}
fn simulate_reduce(&self, action: i8) -> __state_machine::SimulatedReduce<Self> {
__simulate_reduce(action, ::std::marker::PhantomData::<(&())>)
}
}
fn __token_to_integer<
'input,
>(
__token: &SpannedToken<'input>,
_: ::std::marker::PhantomData<(&'input ())>,
) -> Option<usize>
{
match *__token {
SpannedToken { token: Token::OpNeq, .. } if true => Some(0),
SpannedToken { token: Token::Dollar, .. } if true => Some(1),
SpannedToken { token: Token::OpenParen, .. } if true => Some(2),
SpannedToken { token: Token::CloseParen, .. } if true => Some(3),
SpannedToken { token: Token::Dash, .. } if true => Some(4),
SpannedToken { token: Token::DashDash, .. } if true => Some(5),
SpannedToken { token: Token::OpLt, .. } if true => Some(6),
SpannedToken { token: Token::OpLte, .. } if true => Some(7),
SpannedToken { token: Token::OpEq, .. } if true => Some(8),
SpannedToken { token: Token::OpGt, .. } if true => Some(9),
SpannedToken { token: Token::OpGte, .. } if true => Some(10),
SpannedToken { token: Token::PathDot, .. } if true => Some(11),
SpannedToken { token: Token::Bare, .. } if true => Some(12),
SpannedToken { token: Token::SQMember, .. } if true => Some(13),
SpannedToken { token: Token::DQString, .. } if true => Some(14),
SpannedToken { token: Token::Member, .. } if true => Some(15),
SpannedToken { token: Token::Num, .. } if true => Some(16),
SpannedToken { token: Token::SQMember, .. } if true => Some(17),
SpannedToken { token: Token::SQString, .. } if true => Some(18),
SpannedToken { token: Token::Unit, .. } if true => Some(19),
SpannedToken { token: Token::Variable, .. } if true => Some(20),
SpannedToken { token: Token::OpenBrace, .. } if true => Some(21),
SpannedToken { token: Token::Pipe, .. } if true => Some(22),
SpannedToken { token: Token::CloseBrace, .. } if true => Some(23),
_ => None,
}
}
fn __token_to_symbol<
'input,
>(
__token_index: usize,
__token: SpannedToken<'input>,
_: ::std::marker::PhantomData<(&'input ())>,
) -> __Symbol<'input>
{
match __token_index {
0 => match __token {
__tok @ SpannedToken { token: Token::OpNeq, .. } => __Symbol::Variant0((__tok)),
_ => unreachable!(),
},
1 => match __token {
__tok @ SpannedToken { token: Token::Dollar, .. } => __Symbol::Variant0((__tok)),
_ => unreachable!(),
},
2 => match __token {
__tok @ SpannedToken { token: Token::OpenParen, .. } => __Symbol::Variant0((__tok)),
_ => unreachable!(),
},
3 => match __token {
__tok @ SpannedToken { token: Token::CloseParen, .. } => __Symbol::Variant0((__tok)),
_ => unreachable!(),
},
4 => match __token {
__tok @ SpannedToken { token: Token::Dash, .. } => __Symbol::Variant0((__tok)),
_ => unreachable!(),
},
5 => match __token {
__tok @ SpannedToken { token: Token::DashDash, .. } => __Symbol::Variant0((__tok)),
_ => unreachable!(),
},
6 => match __token {
__tok @ SpannedToken { token: Token::OpLt, .. } => __Symbol::Variant0((__tok)),
_ => unreachable!(),
},
7 => match __token {
__tok @ SpannedToken { token: Token::OpLte, .. } => __Symbol::Variant0((__tok)),
_ => unreachable!(),
},
8 => match __token {
__tok @ SpannedToken { token: Token::OpEq, .. } => __Symbol::Variant0((__tok)),
_ => unreachable!(),
},
9 => match __token {
__tok @ SpannedToken { token: Token::OpGt, .. } => __Symbol::Variant0((__tok)),
_ => unreachable!(),
},
10 => match __token {
__tok @ SpannedToken { token: Token::OpGte, .. } => __Symbol::Variant0((__tok)),
_ => unreachable!(),
},
11 => match __token {
__tok @ SpannedToken { token: Token::PathDot, .. } => __Symbol::Variant0((__tok)),
_ => unreachable!(),
},
12 => match __token {
__tok @ SpannedToken { token: Token::Bare, .. } => __Symbol::Variant0((__tok)),
_ => unreachable!(),
},
13 => match __token {
__tok @ SpannedToken { token: Token::SQMember, .. } => __Symbol::Variant0((__tok)),
_ => unreachable!(),
},
14 => match __token {
__tok @ SpannedToken { token: Token::DQString, .. } => __Symbol::Variant0((__tok)),
_ => unreachable!(),
},
15 => match __token {
__tok @ SpannedToken { token: Token::Member, .. } => __Symbol::Variant0((__tok)),
_ => unreachable!(),
},
16 => match __token {
__tok @ SpannedToken { token: Token::Num, .. } => __Symbol::Variant0((__tok)),
_ => unreachable!(),
},
17 => match __token {
__tok @ SpannedToken { token: Token::SQMember, .. } => __Symbol::Variant0((__tok)),
_ => unreachable!(),
},
18 => match __token {
__tok @ SpannedToken { token: Token::SQString, .. } => __Symbol::Variant0((__tok)),
_ => unreachable!(),
},
19 => match __token {
__tok @ SpannedToken { token: Token::Unit, .. } => __Symbol::Variant0((__tok)),
_ => unreachable!(),
},
20 => match __token {
__tok @ SpannedToken { token: Token::Variable, .. } => __Symbol::Variant0((__tok)),
_ => unreachable!(),
},
21 => match __token {
__tok @ SpannedToken { token: Token::OpenBrace, .. } => __Symbol::Variant0((__tok)),
_ => unreachable!(),
},
22 => match __token {
__tok @ SpannedToken { token: Token::Pipe, .. } => __Symbol::Variant0((__tok)),
_ => unreachable!(),
},
23 => match __token {
__tok @ SpannedToken { token: Token::CloseBrace, .. } => __Symbol::Variant0((__tok)),
_ => unreachable!(),
},
_ => unreachable!(),
}
}
fn __simulate_reduce<
'input,
>(
__reduce_index: i8,
_: ::std::marker::PhantomData<(&'input ())>,
) -> __state_machine::SimulatedReduce<__StateMachine<'input>>
{
match __reduce_index {
0 => {
__state_machine::SimulatedReduce::Reduce {
states_to_pop: 2,
nonterminal_produced: 0,
}
}
1 => {
__state_machine::SimulatedReduce::Reduce {
states_to_pop: 2,
nonterminal_produced: 1,
}
}
2 => {
__state_machine::SimulatedReduce::Reduce {
states_to_pop: 3,
nonterminal_produced: 1,
}
}
3 => {
__state_machine::SimulatedReduce::Reduce {
states_to_pop: 2,
nonterminal_produced: 2,
}
}
4 => {
__state_machine::SimulatedReduce::Reduce {
states_to_pop: 0,
nonterminal_produced: 3,
}
}
5 => {
__state_machine::SimulatedReduce::Reduce {
states_to_pop: 1,
nonterminal_produced: 3,
}
}
6 => {
__state_machine::SimulatedReduce::Reduce {
states_to_pop: 2,
nonterminal_produced: 4,
}
}
7 => {
__state_machine::SimulatedReduce::Reduce {
states_to_pop: 3,
nonterminal_produced: 4,
}
}
8 => {
__state_machine::SimulatedReduce::Reduce {
states_to_pop: 1,
nonterminal_produced: 5,
}
}
9 => {
__state_machine::SimulatedReduce::Reduce {
states_to_pop: 1,
nonterminal_produced: 6,
}
}
10 => {
__state_machine::SimulatedReduce::Reduce {
states_to_pop: 2,
nonterminal_produced: 6,
}
}
11 => {
__state_machine::SimulatedReduce::Reduce {
states_to_pop: 0,
nonterminal_produced: 7,
}
}
12 => {
__state_machine::SimulatedReduce::Reduce {
states_to_pop: 0,
nonterminal_produced: 8,
}
}
13 => {
__state_machine::SimulatedReduce::Reduce {
states_to_pop: 1,
nonterminal_produced: 9,
}
}
14 => {
__state_machine::SimulatedReduce::Reduce {
states_to_pop: 1,
nonterminal_produced: 9,
}
}
15 => {
__state_machine::SimulatedReduce::Reduce {
states_to_pop: 1,
nonterminal_produced: 10,
}
}
16 => {
__state_machine::SimulatedReduce::Reduce {
states_to_pop: 1,
nonterminal_produced: 11,
}
}
17 => {
__state_machine::SimulatedReduce::Reduce {
states_to_pop: 3,
nonterminal_produced: 12,
}
}
18 => {
__state_machine::SimulatedReduce::Reduce {
states_to_pop: 3,
nonterminal_produced: 13,
}
}
19 => {
__state_machine::SimulatedReduce::Reduce {
states_to_pop: 3,
nonterminal_produced: 13,
}
}
20 => {
__state_machine::SimulatedReduce::Reduce {
states_to_pop: 2,
nonterminal_produced: 14,
}
}
21 => {
__state_machine::SimulatedReduce::Reduce {
states_to_pop: 3,
nonterminal_produced: 14,
}
}
22 => {
__state_machine::SimulatedReduce::Reduce {
states_to_pop: 2,
nonterminal_produced: 14,
}
}
23 => {
__state_machine::SimulatedReduce::Reduce {
states_to_pop: 3,
nonterminal_produced: 14,
}
}
24 => {
__state_machine::SimulatedReduce::Reduce {
states_to_pop: 1,
nonterminal_produced: 15,
}
}
25 => {
__state_machine::SimulatedReduce::Reduce {
states_to_pop: 1,
nonterminal_produced: 15,
}
}
26 => {
__state_machine::SimulatedReduce::Reduce {
states_to_pop: 1,
nonterminal_produced: 16,
}
}
27 => {
__state_machine::SimulatedReduce::Reduce {
states_to_pop: 2,
nonterminal_produced: 16,
}
}
28 => {
__state_machine::SimulatedReduce::Reduce {
states_to_pop: 2,
nonterminal_produced: 17,
}
}
29 => {
__state_machine::SimulatedReduce::Reduce {
states_to_pop: 2,
nonterminal_produced: 17,
}
}
30 => {
__state_machine::SimulatedReduce::Reduce {
states_to_pop: 1,
nonterminal_produced: 18,
}
}
31 => {
__state_machine::SimulatedReduce::Reduce {
states_to_pop: 1,
nonterminal_produced: 19,
}
}
32 => {
__state_machine::SimulatedReduce::Reduce {
states_to_pop: 1,
nonterminal_produced: 19,
}
}
33 => {
__state_machine::SimulatedReduce::Reduce {
states_to_pop: 1,
nonterminal_produced: 19,
}
}
34 => {
__state_machine::SimulatedReduce::Reduce {
states_to_pop: 1,
nonterminal_produced: 19,
}
}
35 => {
__state_machine::SimulatedReduce::Reduce {
states_to_pop: 1,
nonterminal_produced: 20,
}
}
36 => {
__state_machine::SimulatedReduce::Reduce {
states_to_pop: 1,
nonterminal_produced: 20,
}
}
37 => {
__state_machine::SimulatedReduce::Reduce {
states_to_pop: 1,
nonterminal_produced: 20,
}
}
38 => {
__state_machine::SimulatedReduce::Reduce {
states_to_pop: 1,
nonterminal_produced: 21,
}
}
39 => {
__state_machine::SimulatedReduce::Reduce {
states_to_pop: 1,
nonterminal_produced: 21,
}
}
40 => {
__state_machine::SimulatedReduce::Reduce {
states_to_pop: 3,
nonterminal_produced: 21,
}
}
41 => {
__state_machine::SimulatedReduce::Reduce {
states_to_pop: 3,
nonterminal_produced: 21,
}
}
42 => {
__state_machine::SimulatedReduce::Reduce {
states_to_pop: 3,
nonterminal_produced: 21,
}
}
43 => {
__state_machine::SimulatedReduce::Reduce {
states_to_pop: 1,
nonterminal_produced: 22,
}
}
44 => {
__state_machine::SimulatedReduce::Reduce {
states_to_pop: 1,
nonterminal_produced: 22,
}
}
45 => {
__state_machine::SimulatedReduce::Reduce {
states_to_pop: 1,
nonterminal_produced: 22,
}
}
46 => {
__state_machine::SimulatedReduce::Reduce {
states_to_pop: 1,
nonterminal_produced: 22,
}
}
47 => {
__state_machine::SimulatedReduce::Reduce {
states_to_pop: 1,
nonterminal_produced: 22,
}
}
48 => {
__state_machine::SimulatedReduce::Reduce {
states_to_pop: 1,
nonterminal_produced: 22,
}
}
49 => {
__state_machine::SimulatedReduce::Reduce {
states_to_pop: 1,
nonterminal_produced: 23,
}
}
50 => {
__state_machine::SimulatedReduce::Reduce {
states_to_pop: 2,
nonterminal_produced: 23,
}
}
51 => {
__state_machine::SimulatedReduce::Reduce {
states_to_pop: 1,
nonterminal_produced: 24,
}
}
52 => {
__state_machine::SimulatedReduce::Reduce {
states_to_pop: 1,
nonterminal_produced: 24,
}
}
53 => {
__state_machine::SimulatedReduce::Reduce {
states_to_pop: 1,
nonterminal_produced: 25,
}
}
54 => {
__state_machine::SimulatedReduce::Reduce {
states_to_pop: 1,
nonterminal_produced: 25,
}
}
55 => {
__state_machine::SimulatedReduce::Reduce {
states_to_pop: 1,
nonterminal_produced: 26,
}
}
56 => {
__state_machine::SimulatedReduce::Reduce {
states_to_pop: 1,
nonterminal_produced: 26,
}
}
57 => {
__state_machine::SimulatedReduce::Reduce {
states_to_pop: 1,
nonterminal_produced: 26,
}
}
58 => {
__state_machine::SimulatedReduce::Reduce {
states_to_pop: 1,
nonterminal_produced: 27,
}
}
59 => {
__state_machine::SimulatedReduce::Reduce {
states_to_pop: 1,
nonterminal_produced: 28,
}
}
60 => {
__state_machine::SimulatedReduce::Reduce {
states_to_pop: 1,
nonterminal_produced: 28,
}
}
61 => {
__state_machine::SimulatedReduce::Reduce {
states_to_pop: 2,
nonterminal_produced: 29,
}
}
62 => {
__state_machine::SimulatedReduce::Reduce {
states_to_pop: 2,
nonterminal_produced: 30,
}
}
63 => __state_machine::SimulatedReduce::Accept,
64 => {
__state_machine::SimulatedReduce::Reduce {
states_to_pop: 1,
nonterminal_produced: 32,
}
}
_ => panic!("invalid reduction index {}", __reduce_index)
}
}
pub struct CallParser {
_priv: (),
}
impl CallParser {
pub fn new() -> CallParser {
CallParser {
_priv: (),
}
}
#[allow(dead_code)]
pub fn parse<
'input,
__TOKEN: __ToTriple<'input, >,
__TOKENS: IntoIterator<Item=__TOKEN>,
>(
&self,
__tokens0: __TOKENS,
) -> Result<Expression, __lalrpop_util::ParseError<usize, SpannedToken<'input>, ShellError>>
{
let __tokens = __tokens0.into_iter();
let mut __tokens = __tokens.map(|t| __ToTriple::to_triple(t));
let __r = __state_machine::Parser::drive(
__StateMachine {
__phantom: ::std::marker::PhantomData::<(&())>,
},
__tokens,
);
__r
}
}
pub(crate) fn __reduce<
'input,
>(
__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<Expression,__lalrpop_util::ParseError<usize, SpannedToken<'input>, ShellError>>>
{
let (__pop_states, __nonterminal) = match __action {
0 => {
__reduce0(__action, __lookahead_start, __states, __symbols, ::std::marker::PhantomData::<(&())>)
}
1 => {
__reduce1(__action, __lookahead_start, __states, __symbols, ::std::marker::PhantomData::<(&())>)
}
2 => {
__reduce2(__action, __lookahead_start, __states, __symbols, ::std::marker::PhantomData::<(&())>)
}
3 => {
__reduce3(__action, __lookahead_start, __states, __symbols, ::std::marker::PhantomData::<(&())>)
}
4 => {
__reduce4(__action, __lookahead_start, __states, __symbols, ::std::marker::PhantomData::<(&())>)
}
5 => {
__reduce5(__action, __lookahead_start, __states, __symbols, ::std::marker::PhantomData::<(&())>)
}
6 => {
__reduce6(__action, __lookahead_start, __states, __symbols, ::std::marker::PhantomData::<(&())>)
}
7 => {
__reduce7(__action, __lookahead_start, __states, __symbols, ::std::marker::PhantomData::<(&())>)
}
8 => {
__reduce8(__action, __lookahead_start, __states, __symbols, ::std::marker::PhantomData::<(&())>)
}
9 => {
__reduce9(__action, __lookahead_start, __states, __symbols, ::std::marker::PhantomData::<(&())>)
}
10 => {
__reduce10(__action, __lookahead_start, __states, __symbols, ::std::marker::PhantomData::<(&())>)
}
11 => {
__reduce11(__action, __lookahead_start, __states, __symbols, ::std::marker::PhantomData::<(&())>)
}
12 => {
__reduce12(__action, __lookahead_start, __states, __symbols, ::std::marker::PhantomData::<(&())>)
}
13 => {
__reduce13(__action, __lookahead_start, __states, __symbols, ::std::marker::PhantomData::<(&())>)
}
14 => {
__reduce14(__action, __lookahead_start, __states, __symbols, ::std::marker::PhantomData::<(&())>)
}
15 => {
__reduce15(__action, __lookahead_start, __states, __symbols, ::std::marker::PhantomData::<(&())>)
}
16 => {
__reduce16(__action, __lookahead_start, __states, __symbols, ::std::marker::PhantomData::<(&())>)
}
17 => {
__reduce17(__action, __lookahead_start, __states, __symbols, ::std::marker::PhantomData::<(&())>)
}
18 => {
__reduce18(__action, __lookahead_start, __states, __symbols, ::std::marker::PhantomData::<(&())>)
}
19 => {
__reduce19(__action, __lookahead_start, __states, __symbols, ::std::marker::PhantomData::<(&())>)
}
20 => {
__reduce20(__action, __lookahead_start, __states, __symbols, ::std::marker::PhantomData::<(&())>)
}
21 => {
__reduce21(__action, __lookahead_start, __states, __symbols, ::std::marker::PhantomData::<(&())>)
}
22 => {
__reduce22(__action, __lookahead_start, __states, __symbols, ::std::marker::PhantomData::<(&())>)
}
23 => {
__reduce23(__action, __lookahead_start, __states, __symbols, ::std::marker::PhantomData::<(&())>)
}
24 => {
__reduce24(__action, __lookahead_start, __states, __symbols, ::std::marker::PhantomData::<(&())>)
}
25 => {
__reduce25(__action, __lookahead_start, __states, __symbols, ::std::marker::PhantomData::<(&())>)
}
26 => {
__reduce26(__action, __lookahead_start, __states, __symbols, ::std::marker::PhantomData::<(&())>)
}
27 => {
__reduce27(__action, __lookahead_start, __states, __symbols, ::std::marker::PhantomData::<(&())>)
}
28 => {
__reduce28(__action, __lookahead_start, __states, __symbols, ::std::marker::PhantomData::<(&())>)
}
29 => {
__reduce29(__action, __lookahead_start, __states, __symbols, ::std::marker::PhantomData::<(&())>)
}
30 => {
__reduce30(__action, __lookahead_start, __states, __symbols, ::std::marker::PhantomData::<(&())>)
}
31 => {
__reduce31(__action, __lookahead_start, __states, __symbols, ::std::marker::PhantomData::<(&())>)
}
32 => {
__reduce32(__action, __lookahead_start, __states, __symbols, ::std::marker::PhantomData::<(&())>)
}
33 => {
__reduce33(__action, __lookahead_start, __states, __symbols, ::std::marker::PhantomData::<(&())>)
}
34 => {
__reduce34(__action, __lookahead_start, __states, __symbols, ::std::marker::PhantomData::<(&())>)
}
35 => {
__reduce35(__action, __lookahead_start, __states, __symbols, ::std::marker::PhantomData::<(&())>)
}
36 => {
__reduce36(__action, __lookahead_start, __states, __symbols, ::std::marker::PhantomData::<(&())>)
}
37 => {
__reduce37(__action, __lookahead_start, __states, __symbols, ::std::marker::PhantomData::<(&())>)
}
38 => {
__reduce38(__action, __lookahead_start, __states, __symbols, ::std::marker::PhantomData::<(&())>)
}
39 => {
__reduce39(__action, __lookahead_start, __states, __symbols, ::std::marker::PhantomData::<(&())>)
}
40 => {
__reduce40(__action, __lookahead_start, __states, __symbols, ::std::marker::PhantomData::<(&())>)
}
41 => {
__reduce41(__action, __lookahead_start, __states, __symbols, ::std::marker::PhantomData::<(&())>)
}
42 => {
__reduce42(__action, __lookahead_start, __states, __symbols, ::std::marker::PhantomData::<(&())>)
}
43 => {
__reduce43(__action, __lookahead_start, __states, __symbols, ::std::marker::PhantomData::<(&())>)
}
44 => {
__reduce44(__action, __lookahead_start, __states, __symbols, ::std::marker::PhantomData::<(&())>)
}
45 => {
__reduce45(__action, __lookahead_start, __states, __symbols, ::std::marker::PhantomData::<(&())>)
}
46 => {
__reduce46(__action, __lookahead_start, __states, __symbols, ::std::marker::PhantomData::<(&())>)
}
47 => {
__reduce47(__action, __lookahead_start, __states, __symbols, ::std::marker::PhantomData::<(&())>)
}
48 => {
__reduce48(__action, __lookahead_start, __states, __symbols, ::std::marker::PhantomData::<(&())>)
}
49 => {
__reduce49(__action, __lookahead_start, __states, __symbols, ::std::marker::PhantomData::<(&())>)
}
50 => {
__reduce50(__action, __lookahead_start, __states, __symbols, ::std::marker::PhantomData::<(&())>)
}
51 => {
__reduce51(__action, __lookahead_start, __states, __symbols, ::std::marker::PhantomData::<(&())>)
}
52 => {
__reduce52(__action, __lookahead_start, __states, __symbols, ::std::marker::PhantomData::<(&())>)
}
53 => {
__reduce53(__action, __lookahead_start, __states, __symbols, ::std::marker::PhantomData::<(&())>)
}
54 => {
__reduce54(__action, __lookahead_start, __states, __symbols, ::std::marker::PhantomData::<(&())>)
}
55 => {
__reduce55(__action, __lookahead_start, __states, __symbols, ::std::marker::PhantomData::<(&())>)
}
56 => {
__reduce56(__action, __lookahead_start, __states, __symbols, ::std::marker::PhantomData::<(&())>)
}
57 => {
__reduce57(__action, __lookahead_start, __states, __symbols, ::std::marker::PhantomData::<(&())>)
}
58 => {
__reduce58(__action, __lookahead_start, __states, __symbols, ::std::marker::PhantomData::<(&())>)
}
59 => {
__reduce59(__action, __lookahead_start, __states, __symbols, ::std::marker::PhantomData::<(&())>)
}
60 => {
__reduce60(__action, __lookahead_start, __states, __symbols, ::std::marker::PhantomData::<(&())>)
}
61 => {
__reduce61(__action, __lookahead_start, __states, __symbols, ::std::marker::PhantomData::<(&())>)
}
62 => {
__reduce62(__action, __lookahead_start, __states, __symbols, ::std::marker::PhantomData::<(&())>)
}
63 => {
// __Call = Call => ActionFn(1);
let __sym0 = __pop_Variant2(__symbols);
let __start = __sym0.0.clone();
let __end = __sym0.2.clone();
let __nt = super::__action1::<>(__sym0);
return Some(Ok(__nt));
}
64 => {
__reduce64(__action, __lookahead_start, __states, __symbols, ::std::marker::PhantomData::<(&())>)
}
_ => panic!("invalid action code {}", __action)
};
let __states_len = __states.len();
__states.truncate(__states_len - __pop_states);
let __state = *__states.last().unwrap() as usize;
let __next_state = __GOTO[__state * 33 + __nonterminal] - 1;
__states.push(__next_state);
None
}
fn __pop_Variant5<
'input,
>(
__symbols: &mut ::std::vec::Vec<(usize,__Symbol<'input>,usize)>
) -> (usize, Bare, usize)
{
match __symbols.pop().unwrap() {
(__l, __Symbol::Variant5(__v), __r) => (__l, __v, __r),
_ => panic!("symbol type mismatch")
}
}
fn __pop_Variant2<
'input,
>(
__symbols: &mut ::std::vec::Vec<(usize,__Symbol<'input>,usize)>
) -> (usize, Expression, usize)
{
match __symbols.pop().unwrap() {
(__l, __Symbol::Variant2(__v), __r) => (__l, __v, __r),
_ => panic!("symbol type mismatch")
}
}
fn __pop_Variant8<
'input,
>(
__symbols: &mut ::std::vec::Vec<(usize,__Symbol<'input>,usize)>
) -> (usize, Operator, usize)
{
match __symbols.pop().unwrap() {
(__l, __Symbol::Variant8(__v), __r) => (__l, __v, __r),
_ => panic!("symbol type mismatch")
}
}
fn __pop_Variant9<
'input,
>(
__symbols: &mut ::std::vec::Vec<(usize,__Symbol<'input>,usize)>
) -> (usize, Pipeline, usize)
{
match __symbols.pop().unwrap() {
(__l, __Symbol::Variant9(__v), __r) => (__l, __v, __r),
_ => panic!("symbol type mismatch")
}
}
fn __pop_Variant10<
'input,
>(
__symbols: &mut ::std::vec::Vec<(usize,__Symbol<'input>,usize)>
) -> (usize, Spanned<Operator>, usize)
{
match __symbols.pop().unwrap() {
(__l, __Symbol::Variant10(__v), __r) => (__l, __v, __r),
_ => panic!("symbol type mismatch")
}
}
fn __pop_Variant0<
'input,
>(
__symbols: &mut ::std::vec::Vec<(usize,__Symbol<'input>,usize)>
) -> (usize, SpannedToken<'input>, usize)
{
match __symbols.pop().unwrap() {
(__l, __Symbol::Variant0(__v), __r) => (__l, __v, __r),
_ => panic!("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),
_ => panic!("symbol type mismatch")
}
}
fn __pop_Variant6<
'input,
>(
__symbols: &mut ::std::vec::Vec<(usize,__Symbol<'input>,usize)>
) -> (usize, i64, usize)
{
match __symbols.pop().unwrap() {
(__l, __Symbol::Variant6(__v), __r) => (__l, __v, __r),
_ => panic!("symbol type mismatch")
}
}
fn __pop_Variant4<
'input,
>(
__symbols: &mut ::std::vec::Vec<(usize,__Symbol<'input>,usize)>
) -> (usize, usize, usize)
{
match __symbols.pop().unwrap() {
(__l, __Symbol::Variant4(__v), __r) => (__l, __v, __r),
_ => panic!("symbol type mismatch")
}
}
fn __pop_Variant3<
'input,
>(
__symbols: &mut ::std::vec::Vec<(usize,__Symbol<'input>,usize)>
) -> (usize, ::std::vec::Vec<Expression>, usize)
{
match __symbols.pop().unwrap() {
(__l, __Symbol::Variant3(__v), __r) => (__l, __v, __r),
_ => panic!("symbol type mismatch")
}
}
fn __pop_Variant1<
'input,
>(
__symbols: &mut ::std::vec::Vec<(usize,__Symbol<'input>,usize)>
) -> (usize, ::std::vec::Vec<SpannedToken<'input>>, usize)
{
match __symbols.pop().unwrap() {
(__l, __Symbol::Variant1(__v), __r) => (__l, __v, __r),
_ => panic!("symbol type mismatch")
}
}
pub(crate) fn __reduce0<
'input,
>(
__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 ())>,
) -> (usize, usize)
{
// ("???." <"member">) = "???.", "member" => ActionFn(53);
let __sym1 = __pop_Variant0(__symbols);
let __sym0 = __pop_Variant0(__symbols);
let __start = __sym0.0.clone();
let __end = __sym1.2.clone();
let __nt = super::__action53::<>(__sym0, __sym1);
__symbols.push((__start, __Symbol::Variant0(__nt), __end));
(2, 0)
}
pub(crate) fn __reduce1<
'input,
>(
__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 ())>,
) -> (usize, usize)
{
// ("???." <"member">)+ = "???.", "member" => ActionFn(64);
let __sym1 = __pop_Variant0(__symbols);
let __sym0 = __pop_Variant0(__symbols);
let __start = __sym0.0.clone();
let __end = __sym1.2.clone();
let __nt = super::__action64::<>(__sym0, __sym1);
__symbols.push((__start, __Symbol::Variant1(__nt), __end));
(2, 1)
}
pub(crate) fn __reduce2<
'input,
>(
__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 ())>,
) -> (usize, usize)
{
// ("???." <"member">)+ = ("???." <"member">)+, "???.", "member" => ActionFn(65);
let __sym2 = __pop_Variant0(__symbols);
let __sym1 = __pop_Variant0(__symbols);
let __sym0 = __pop_Variant1(__symbols);
let __start = __sym0.0.clone();
let __end = __sym2.2.clone();
let __nt = super::__action65::<>(__sym0, __sym1, __sym2);
__symbols.push((__start, __Symbol::Variant1(__nt), __end));
(3, 1)
}
pub(crate) fn __reduce3<
'input,
>(
__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 ())>,
) -> (usize, usize)
{
// ("|" <PipelineElement>) = "|", PipelineElement => ActionFn(60);
let __sym1 = __pop_Variant2(__symbols);
let __sym0 = __pop_Variant0(__symbols);
let __start = __sym0.0.clone();
let __end = __sym1.2.clone();
let __nt = super::__action60::<>(__sym0, __sym1);
__symbols.push((__start, __Symbol::Variant2(__nt), __end));
(2, 2)
}
pub(crate) fn __reduce4<
'input,
>(
__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 ())>,
) -> (usize, usize)
{
// ("|" <PipelineElement>)* = => ActionFn(58);
let __start = __symbols.last().map(|s| s.2.clone()).unwrap_or_default();
let __end = __lookahead_start.cloned().unwrap_or_else(|| __start.clone());
let __nt = super::__action58::<>(&__start, &__end);
__symbols.push((__start, __Symbol::Variant3(__nt), __end));
(0, 3)
}
pub(crate) fn __reduce5<
'input,
>(
__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 ())>,
) -> (usize, usize)
{
// ("|" <PipelineElement>)* = ("|" <PipelineElement>)+ => ActionFn(59);
let __sym0 = __pop_Variant3(__symbols);
let __start = __sym0.0.clone();
let __end = __sym0.2.clone();
let __nt = super::__action59::<>(__sym0);
__symbols.push((__start, __Symbol::Variant3(__nt), __end));
(1, 3)
}
pub(crate) fn __reduce6<
'input,
>(
__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 ())>,
) -> (usize, usize)
{
// ("|" <PipelineElement>)+ = "|", PipelineElement => ActionFn(66);
let __sym1 = __pop_Variant2(__symbols);
let __sym0 = __pop_Variant0(__symbols);
let __start = __sym0.0.clone();
let __end = __sym1.2.clone();
let __nt = super::__action66::<>(__sym0, __sym1);
__symbols.push((__start, __Symbol::Variant3(__nt), __end));
(2, 4)
}
pub(crate) fn __reduce7<
'input,
>(
__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 ())>,
) -> (usize, usize)
{
// ("|" <PipelineElement>)+ = ("|" <PipelineElement>)+, "|", PipelineElement => ActionFn(67);
let __sym2 = __pop_Variant2(__symbols);
let __sym1 = __pop_Variant0(__symbols);
let __sym0 = __pop_Variant3(__symbols);
let __start = __sym0.0.clone();
let __end = __sym2.2.clone();
let __nt = super::__action67::<>(__sym0, __sym1, __sym2);
__symbols.push((__start, __Symbol::Variant3(__nt), __end));
(3, 4)
}
pub(crate) fn __reduce8<
'input,
>(
__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 ())>,
) -> (usize, usize)
{
// (<CallArgument>) = CallArgument => ActionFn(56);
let __sym0 = __pop_Variant2(__symbols);
let __start = __sym0.0.clone();
let __end = __sym0.2.clone();
let __nt = super::__action56::<>(__sym0);
__symbols.push((__start, __Symbol::Variant2(__nt), __end));
(1, 5)
}
pub(crate) fn __reduce9<
'input,
>(
__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 ())>,
) -> (usize, usize)
{
// (<CallArgument>)+ = CallArgument => ActionFn(70);
let __sym0 = __pop_Variant2(__symbols);
let __start = __sym0.0.clone();
let __end = __sym0.2.clone();
let __nt = super::__action70::<>(__sym0);
__symbols.push((__start, __Symbol::Variant3(__nt), __end));
(1, 6)
}
pub(crate) fn __reduce10<
'input,
>(
__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 ())>,
) -> (usize, usize)
{
// (<CallArgument>)+ = (<CallArgument>)+, CallArgument => ActionFn(71);
let __sym1 = __pop_Variant2(__symbols);
let __sym0 = __pop_Variant3(__symbols);
let __start = __sym0.0.clone();
let __end = __sym1.2.clone();
let __nt = super::__action71::<>(__sym0, __sym1);
__symbols.push((__start, __Symbol::Variant3(__nt), __end));
(2, 6)
}
pub(crate) fn __reduce11<
'input,
>(
__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 ())>,
) -> (usize, usize)
{
// @L = => ActionFn(61);
let __start = __symbols.last().map(|s| s.2.clone()).unwrap_or_default();
let __end = __lookahead_start.cloned().unwrap_or_else(|| __start.clone());
let __nt = super::__action61::<>(&__start, &__end);
__symbols.push((__start, __Symbol::Variant4(__nt), __end));
(0, 7)
}
pub(crate) fn __reduce12<
'input,
>(
__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 ())>,
) -> (usize, usize)
{
// @R = => ActionFn(57);
let __start = __symbols.last().map(|s| s.2.clone()).unwrap_or_default();
let __end = __lookahead_start.cloned().unwrap_or_else(|| __start.clone());
let __nt = super::__action57::<>(&__start, &__end);
__symbols.push((__start, __Symbol::Variant4(__nt), __end));
(0, 8)
}
pub(crate) fn __reduce13<
'input,
>(
__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 ())>,
) -> (usize, usize)
{
// ArgumentExpression = Expression => ActionFn(23);
let __sym0 = __pop_Variant2(__symbols);
let __start = __sym0.0.clone();
let __end = __sym0.2.clone();
let __nt = super::__action23::<>(__sym0);
__symbols.push((__start, __Symbol::Variant2(__nt), __end));
(1, 9)
}
pub(crate) fn __reduce14<
'input,
>(
__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 ())>,
) -> (usize, usize)
{
// ArgumentExpression = BareExpression => ActionFn(24);
let __sym0 = __pop_Variant2(__symbols);
let __start = __sym0.0.clone();
let __end = __sym0.2.clone();
let __nt = super::__action24::<>(__sym0);
__symbols.push((__start, __Symbol::Variant2(__nt), __end));
(1, 9)
}
pub(crate) fn __reduce15<
'input,
>(
__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 ())>,
) -> (usize, usize)
{
// Bare = "bare" => ActionFn(34);
let __sym0 = __pop_Variant0(__symbols);
let __start = __sym0.0.clone();
let __end = __sym0.2.clone();
let __nt = super::__action34::<>(__sym0);
__symbols.push((__start, __Symbol::Variant5(__nt), __end));
(1, 10)
}
pub(crate) fn __reduce16<
'input,
>(
__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 ())>,
) -> (usize, usize)
{
// BareExpression = Bare => ActionFn(95);
let __sym0 = __pop_Variant5(__symbols);
let __start = __sym0.0.clone();
let __end = __sym0.2.clone();
let __nt = super::__action95::<>(__sym0);
__symbols.push((__start, __Symbol::Variant2(__nt), __end));
(1, 11)
}
pub(crate) fn __reduce17<
'input,
>(
__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 ())>,
) -> (usize, usize)
{
// Binary = ArgumentExpression, SpannedOperator, ArgumentExpression => ActionFn(96);
let __sym2 = __pop_Variant2(__symbols);
let __sym1 = __pop_Variant10(__symbols);
let __sym0 = __pop_Variant2(__symbols);
let __start = __sym0.0.clone();
let __end = __sym2.2.clone();
let __nt = super::__action96::<>(__sym0, __sym1, __sym2);
__symbols.push((__start, __Symbol::Variant2(__nt), __end));
(3, 12)
}
pub(crate) fn __reduce18<
'input,
>(
__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 ())>,
) -> (usize, usize)
{
// Block = "{", SingleExpression, "}" => ActionFn(97);
let __sym2 = __pop_Variant0(__symbols);
let __sym1 = __pop_Variant2(__symbols);
let __sym0 = __pop_Variant0(__symbols);
let __start = __sym0.0.clone();
let __end = __sym2.2.clone();
let __nt = super::__action97::<>(__sym0, __sym1, __sym2);
__symbols.push((__start, __Symbol::Variant2(__nt), __end));
(3, 13)
}
pub(crate) fn __reduce19<
'input,
>(
__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 ())>,
) -> (usize, usize)
{
// Block = "{", BareExpression, "}" => ActionFn(98);
let __sym2 = __pop_Variant0(__symbols);
let __sym1 = __pop_Variant2(__symbols);
let __sym0 = __pop_Variant0(__symbols);
let __start = __sym0.0.clone();
let __end = __sym2.2.clone();
let __nt = super::__action98::<>(__sym0, __sym1, __sym2);
__symbols.push((__start, __Symbol::Variant2(__nt), __end));
(3, 13)
}
pub(crate) fn __reduce20<
'input,
>(
__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 ())>,
) -> (usize, usize)
{
// Call = Expression, SingleCallArgument => ActionFn(99);
let __sym1 = __pop_Variant2(__symbols);
let __sym0 = __pop_Variant2(__symbols);
let __start = __sym0.0.clone();
let __end = __sym1.2.clone();
let __nt = super::__action99::<>(__sym0, __sym1);
__symbols.push((__start, __Symbol::Variant2(__nt), __end));
(2, 14)
}
pub(crate) fn __reduce21<
'input,
>(
__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 ())>,
) -> (usize, usize)
{
// Call = Expression, CallArgument, (<CallArgument>)+ => ActionFn(100);
let __sym2 = __pop_Variant3(__symbols);
let __sym1 = __pop_Variant2(__symbols);
let __sym0 = __pop_Variant2(__symbols);
let __start = __sym0.0.clone();
let __end = __sym2.2.clone();
let __nt = super::__action100::<>(__sym0, __sym1, __sym2);
__symbols.push((__start, __Symbol::Variant2(__nt), __end));
(3, 14)
}
pub(crate) fn __reduce22<
'input,
>(
__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 ())>,
) -> (usize, usize)
{
// Call = BareExpression, SingleCallArgument => ActionFn(101);
let __sym1 = __pop_Variant2(__symbols);
let __sym0 = __pop_Variant2(__symbols);
let __start = __sym0.0.clone();
let __end = __sym1.2.clone();
let __nt = super::__action101::<>(__sym0, __sym1);
__symbols.push((__start, __Symbol::Variant2(__nt), __end));
(2, 14)
}
pub(crate) fn __reduce23<
'input,
>(
__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 ())>,
) -> (usize, usize)
{
// Call = BareExpression, CallArgument, (<CallArgument>)+ => ActionFn(102);
let __sym2 = __pop_Variant3(__symbols);
let __sym1 = __pop_Variant2(__symbols);
let __sym0 = __pop_Variant2(__symbols);
let __start = __sym0.0.clone();
let __end = __sym2.2.clone();
let __nt = super::__action102::<>(__sym0, __sym1, __sym2);
__symbols.push((__start, __Symbol::Variant2(__nt), __end));
(3, 14)
}
pub(crate) fn __reduce24<
'input,
>(
__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 ())>,
) -> (usize, usize)
{
// CallArgument = ArgumentExpression => ActionFn(25);
let __sym0 = __pop_Variant2(__symbols);
let __start = __sym0.0.clone();
let __end = __sym0.2.clone();
let __nt = super::__action25::<>(__sym0);
__symbols.push((__start, __Symbol::Variant2(__nt), __end));
(1, 15)
}
pub(crate) fn __reduce25<
'input,
>(
__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 ())>,
) -> (usize, usize)
{
// CallArgument = Flag => ActionFn(26);
let __sym0 = __pop_Variant2(__symbols);
let __start = __sym0.0.clone();
let __end = __sym0.2.clone();
let __nt = super::__action26::<>(__sym0);
__symbols.push((__start, __Symbol::Variant2(__nt), __end));
(1, 15)
}
pub(crate) fn __reduce26<
'input,
>(
__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 ())>,
) -> (usize, usize)
{
// Expression = MemberHeadExpression => ActionFn(21);
let __sym0 = __pop_Variant2(__symbols);
let __start = __sym0.0.clone();
let __end = __sym0.2.clone();
let __nt = super::__action21::<>(__sym0);
__symbols.push((__start, __Symbol::Variant2(__nt), __end));
(1, 16)
}
pub(crate) fn __reduce27<
'input,
>(
__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 ())>,
) -> (usize, usize)
{
// Expression = MemberHeadExpression, ("???." <"member">)+ => ActionFn(103);
let __sym1 = __pop_Variant1(__symbols);
let __sym0 = __pop_Variant2(__symbols);
let __start = __sym0.0.clone();
let __end = __sym1.2.clone();
let __nt = super::__action103::<>(__sym0, __sym1);
__symbols.push((__start, __Symbol::Variant2(__nt), __end));
(2, 16)
}
pub(crate) fn __reduce28<
'input,
>(
__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 ())>,
) -> (usize, usize)
{
// Flag = "-", Bare => ActionFn(104);
let __sym1 = __pop_Variant5(__symbols);
let __sym0 = __pop_Variant0(__symbols);
let __start = __sym0.0.clone();
let __end = __sym1.2.clone();
let __nt = super::__action104::<>(__sym0, __sym1);
__symbols.push((__start, __Symbol::Variant2(__nt), __end));
(2, 17)
}
pub(crate) fn __reduce29<
'input,
>(
__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 ())>,
) -> (usize, usize)
{
// Flag = "--", Bare => ActionFn(105);
let __sym1 = __pop_Variant5(__symbols);
let __sym0 = __pop_Variant0(__symbols);
let __start = __sym0.0.clone();
let __end = __sym1.2.clone();
let __nt = super::__action105::<>(__sym0, __sym1);
__symbols.push((__start, __Symbol::Variant2(__nt), __end));
(2, 17)
}
pub(crate) fn __reduce30<
'input,
>(
__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 ())>,
) -> (usize, usize)
{
// Int = "num" => ActionFn(44);
let __sym0 = __pop_Variant0(__symbols);
let __start = __sym0.0.clone();
let __end = __sym0.2.clone();
let __nt = super::__action44::<>(__sym0);
__symbols.push((__start, __Symbol::Variant6(__nt), __end));
(1, 18)
}
pub(crate) fn __reduce31<
'input,
>(
__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 ())>,
) -> (usize, usize)
{
// LeafExpression = String => ActionFn(5);
let __sym0 = __pop_Variant2(__symbols);
let __start = __sym0.0.clone();
let __end = __sym0.2.clone();
let __nt = super::__action5::<>(__sym0);
__symbols.push((__start, __Symbol::Variant2(__nt), __end));
(1, 19)
}
pub(crate) fn __reduce32<
'input,
>(
__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 ())>,
) -> (usize, usize)
{
// LeafExpression = Int => ActionFn(106);
let __sym0 = __pop_Variant6(__symbols);
let __start = __sym0.0.clone();
let __end = __sym0.2.clone();
let __nt = super::__action106::<>(__sym0);
__symbols.push((__start, __Symbol::Variant2(__nt), __end));
(1, 19)
}
pub(crate) fn __reduce33<
'input,
>(
__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 ())>,
) -> (usize, usize)
{
// LeafExpression = UnitsNum => ActionFn(7);
let __sym0 = __pop_Variant2(__symbols);
let __start = __sym0.0.clone();
let __end = __sym0.2.clone();
let __nt = super::__action7::<>(__sym0);
__symbols.push((__start, __Symbol::Variant2(__nt), __end));
(1, 19)
}
pub(crate) fn __reduce34<
'input,
>(
__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 ())>,
) -> (usize, usize)
{
// LeafExpression = Var => ActionFn(8);
let __sym0 = __pop_Variant2(__symbols);
let __start = __sym0.0.clone();
let __end = __sym0.2.clone();
let __nt = super::__action8::<>(__sym0);
__symbols.push((__start, __Symbol::Variant2(__nt), __end));
(1, 19)
}
pub(crate) fn __reduce35<
'input,
>(
__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 ())>,
) -> (usize, usize)
{
// Member = "member" => ActionFn(35);
let __sym0 = __pop_Variant0(__symbols);
let __start = __sym0.0.clone();
let __end = __sym0.2.clone();
let __nt = super::__action35::<>(__sym0);
__symbols.push((__start, __Symbol::Variant7(__nt), __end));
(1, 20)
}
pub(crate) fn __reduce36<
'input,
>(
__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 ())>,
) -> (usize, usize)
{
// Member = "dqmember" => ActionFn(36);
let __sym0 = __pop_Variant0(__symbols);
let __start = __sym0.0.clone();
let __end = __sym0.2.clone();
let __nt = super::__action36::<>(__sym0);
__symbols.push((__start, __Symbol::Variant7(__nt), __end));
(1, 20)
}
pub(crate) fn __reduce37<
'input,
>(
__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 ())>,
) -> (usize, usize)
{
// Member = "sqmember" => ActionFn(37);
let __sym0 = __pop_Variant0(__symbols);
let __start = __sym0.0.clone();
let __end = __sym0.2.clone();
let __nt = super::__action37::<>(__sym0);
__symbols.push((__start, __Symbol::Variant7(__nt), __end));
(1, 20)
}
pub(crate) fn __reduce38<
'input,
>(
__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 ())>,
) -> (usize, usize)
{
// MemberHeadExpression = LeafExpression => ActionFn(16);
let __sym0 = __pop_Variant2(__symbols);
let __start = __sym0.0.clone();
let __end = __sym0.2.clone();
let __nt = super::__action16::<>(__sym0);
__symbols.push((__start, __Symbol::Variant2(__nt), __end));
(1, 21)
}
pub(crate) fn __reduce39<
'input,
>(
__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 ())>,
) -> (usize, usize)
{
// MemberHeadExpression = Block => ActionFn(17);
let __sym0 = __pop_Variant2(__symbols);
let __start = __sym0.0.clone();
let __end = __sym0.2.clone();
let __nt = super::__action17::<>(__sym0);
__symbols.push((__start, __Symbol::Variant2(__nt), __end));
(1, 21)
}
pub(crate) fn __reduce40<
'input,
>(
__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 ())>,
) -> (usize, usize)
{
// MemberHeadExpression = "(", Call, ")" => ActionFn(107);
let __sym2 = __pop_Variant0(__symbols);
let __sym1 = __pop_Variant2(__symbols);
let __sym0 = __pop_Variant0(__symbols);
let __start = __sym0.0.clone();
let __end = __sym2.2.clone();
let __nt = super::__action107::<>(__sym0, __sym1, __sym2);
__symbols.push((__start, __Symbol::Variant2(__nt), __end));
(3, 21)
}
pub(crate) fn __reduce41<
'input,
>(
__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 ())>,
) -> (usize, usize)
{
// MemberHeadExpression = "(", BareExpression, ")" => ActionFn(108);
let __sym2 = __pop_Variant0(__symbols);
let __sym1 = __pop_Variant2(__symbols);
let __sym0 = __pop_Variant0(__symbols);
let __start = __sym0.0.clone();
let __end = __sym2.2.clone();
let __nt = super::__action108::<>(__sym0, __sym1, __sym2);
__symbols.push((__start, __Symbol::Variant2(__nt), __end));
(3, 21)
}
pub(crate) fn __reduce42<
'input,
>(
__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 ())>,
) -> (usize, usize)
{
// MemberHeadExpression = "(", Binary, ")" => ActionFn(109);
let __sym2 = __pop_Variant0(__symbols);
let __sym1 = __pop_Variant2(__symbols);
let __sym0 = __pop_Variant0(__symbols);
let __start = __sym0.0.clone();
let __end = __sym2.2.clone();
let __nt = super::__action109::<>(__sym0, __sym1, __sym2);
__symbols.push((__start, __Symbol::Variant2(__nt), __end));
(3, 21)
}
pub(crate) fn __reduce43<
'input,
>(
__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 ())>,
) -> (usize, usize)
{
// Operator = "==" => ActionFn(38);
let __sym0 = __pop_Variant0(__symbols);
let __start = __sym0.0.clone();
let __end = __sym0.2.clone();
let __nt = super::__action38::<>(__sym0);
__symbols.push((__start, __Symbol::Variant8(__nt), __end));
(1, 22)
}
pub(crate) fn __reduce44<
'input,
>(
__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 ())>,
) -> (usize, usize)
{
// Operator = "!=" => ActionFn(39);
let __sym0 = __pop_Variant0(__symbols);
let __start = __sym0.0.clone();
let __end = __sym0.2.clone();
let __nt = super::__action39::<>(__sym0);
__symbols.push((__start, __Symbol::Variant8(__nt), __end));
(1, 22)
}
pub(crate) fn __reduce45<
'input,
>(
__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 ())>,
) -> (usize, usize)
{
// Operator = "<" => ActionFn(40);
let __sym0 = __pop_Variant0(__symbols);
let __start = __sym0.0.clone();
let __end = __sym0.2.clone();
let __nt = super::__action40::<>(__sym0);
__symbols.push((__start, __Symbol::Variant8(__nt), __end));
(1, 22)
}
pub(crate) fn __reduce46<
'input,
>(
__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 ())>,
) -> (usize, usize)
{
// Operator = ">" => ActionFn(41);
let __sym0 = __pop_Variant0(__symbols);
let __start = __sym0.0.clone();
let __end = __sym0.2.clone();
let __nt = super::__action41::<>(__sym0);
__symbols.push((__start, __Symbol::Variant8(__nt), __end));
(1, 22)
}
pub(crate) fn __reduce47<
'input,
>(
__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 ())>,
) -> (usize, usize)
{
// Operator = "<=" => ActionFn(42);
let __sym0 = __pop_Variant0(__symbols);
let __start = __sym0.0.clone();
let __end = __sym0.2.clone();
let __nt = super::__action42::<>(__sym0);
__symbols.push((__start, __Symbol::Variant8(__nt), __end));
(1, 22)
}
pub(crate) fn __reduce48<
'input,
>(
__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 ())>,
) -> (usize, usize)
{
// Operator = ">=" => ActionFn(43);
let __sym0 = __pop_Variant0(__symbols);
let __start = __sym0.0.clone();
let __end = __sym0.2.clone();
let __nt = super::__action43::<>(__sym0);
__symbols.push((__start, __Symbol::Variant8(__nt), __end));
(1, 22)
}
pub(crate) fn __reduce49<
'input,
>(
__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 ())>,
) -> (usize, usize)
{
// Pipeline = PipelineElement => ActionFn(110);
let __sym0 = __pop_Variant2(__symbols);
let __start = __sym0.0.clone();
let __end = __sym0.2.clone();
let __nt = super::__action110::<>(__sym0);
__symbols.push((__start, __Symbol::Variant9(__nt), __end));
(1, 23)
}
pub(crate) fn __reduce50<
'input,
>(
__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 ())>,
) -> (usize, usize)
{
// Pipeline = PipelineElement, ("|" <PipelineElement>)+ => ActionFn(111);
let __sym1 = __pop_Variant3(__symbols);
let __sym0 = __pop_Variant2(__symbols);
let __start = __sym0.0.clone();
let __end = __sym1.2.clone();
let __nt = super::__action111::<>(__sym0, __sym1);
__symbols.push((__start, __Symbol::Variant9(__nt), __end));
(2, 23)
}
pub(crate) fn __reduce51<
'input,
>(
__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 ())>,
) -> (usize, usize)
{
// PipelineElement = BareExpression => ActionFn(112);
let __sym0 = __pop_Variant2(__symbols);
let __start = __sym0.0.clone();
let __end = __sym0.2.clone();
let __nt = super::__action112::<>(__sym0);
__symbols.push((__start, __Symbol::Variant2(__nt), __end));
(1, 24)
}
pub(crate) fn __reduce52<
'input,
>(
__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 ())>,
) -> (usize, usize)
{
// PipelineElement = SingleExpression => ActionFn(4);
let __sym0 = __pop_Variant2(__symbols);
let __start = __sym0.0.clone();
let __end = __sym0.2.clone();
let __nt = super::__action4::<>(__sym0);
__symbols.push((__start, __Symbol::Variant2(__nt), __end));
(1, 24)
}
pub(crate) fn __reduce53<
'input,
>(
__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 ())>,
) -> (usize, usize)
{
// SingleCallArgument = CallArgument => ActionFn(27);
let __sym0 = __pop_Variant2(__symbols);
let __start = __sym0.0.clone();
let __end = __sym0.2.clone();
let __nt = super::__action27::<>(__sym0);
__symbols.push((__start, __Symbol::Variant2(__nt), __end));
(1, 25)
}
pub(crate) fn __reduce54<
'input,
>(
__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 ())>,
) -> (usize, usize)
{
// SingleCallArgument = Binary => ActionFn(28);
let __sym0 = __pop_Variant2(__symbols);
let __start = __sym0.0.clone();
let __end = __sym0.2.clone();
let __nt = super::__action28::<>(__sym0);
__symbols.push((__start, __Symbol::Variant2(__nt), __end));
(1, 25)
}
pub(crate) fn __reduce55<
'input,
>(
__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 ())>,
) -> (usize, usize)
{
// SingleExpression = Expression => ActionFn(29);
let __sym0 = __pop_Variant2(__symbols);
let __start = __sym0.0.clone();
let __end = __sym0.2.clone();
let __nt = super::__action29::<>(__sym0);
__symbols.push((__start, __Symbol::Variant2(__nt), __end));
(1, 26)
}
pub(crate) fn __reduce56<
'input,
>(
__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 ())>,
) -> (usize, usize)
{
// SingleExpression = Call => ActionFn(30);
let __sym0 = __pop_Variant2(__symbols);
let __start = __sym0.0.clone();
let __end = __sym0.2.clone();
let __nt = super::__action30::<>(__sym0);
__symbols.push((__start, __Symbol::Variant2(__nt), __end));
(1, 26)
}
pub(crate) fn __reduce57<
'input,
>(
__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 ())>,
) -> (usize, usize)
{
// SingleExpression = Binary => ActionFn(31);
let __sym0 = __pop_Variant2(__symbols);
let __start = __sym0.0.clone();
let __end = __sym0.2.clone();
let __nt = super::__action31::<>(__sym0);
__symbols.push((__start, __Symbol::Variant2(__nt), __end));
(1, 26)
}
pub(crate) fn __reduce58<
'input,
>(
__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 ())>,
) -> (usize, usize)
{
// SpannedOperator = Operator => ActionFn(113);
let __sym0 = __pop_Variant8(__symbols);
let __start = __sym0.0.clone();
let __end = __sym0.2.clone();
let __nt = super::__action113::<>(__sym0);
__symbols.push((__start, __Symbol::Variant10(__nt), __end));
(1, 27)
}
pub(crate) fn __reduce59<
'input,
>(
__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 ())>,
) -> (usize, usize)
{
// String = "sqstring" => ActionFn(114);
let __sym0 = __pop_Variant0(__symbols);
let __start = __sym0.0.clone();
let __end = __sym0.2.clone();
let __nt = super::__action114::<>(__sym0);
__symbols.push((__start, __Symbol::Variant2(__nt), __end));
(1, 28)
}
pub(crate) fn __reduce60<
'input,
>(
__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 ())>,
) -> (usize, usize)
{
// String = "dqstring" => ActionFn(115);
let __sym0 = __pop_Variant0(__symbols);
let __start = __sym0.0.clone();
let __end = __sym0.2.clone();
let __nt = super::__action115::<>(__sym0);
__symbols.push((__start, __Symbol::Variant2(__nt), __end));
(1, 28)
}
pub(crate) fn __reduce61<
'input,
>(
__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 ())>,
) -> (usize, usize)
{
// UnitsNum = Int, "unit" => ActionFn(116);
let __sym1 = __pop_Variant0(__symbols);
let __sym0 = __pop_Variant6(__symbols);
let __start = __sym0.0.clone();
let __end = __sym1.2.clone();
let __nt = super::__action116::<>(__sym0, __sym1);
__symbols.push((__start, __Symbol::Variant2(__nt), __end));
(2, 29)
}
pub(crate) fn __reduce62<
'input,
>(
__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 ())>,
) -> (usize, usize)
{
// Var = "$", "variable" => ActionFn(117);
let __sym1 = __pop_Variant0(__symbols);
let __sym0 = __pop_Variant0(__symbols);
let __start = __sym0.0.clone();
let __end = __sym1.2.clone();
let __nt = super::__action117::<>(__sym0, __sym1);
__symbols.push((__start, __Symbol::Variant2(__nt), __end));
(2, 30)
}
pub(crate) fn __reduce64<
'input,
>(
__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 ())>,
) -> (usize, usize)
{
// __Pipeline = Pipeline => ActionFn(0);
let __sym0 = __pop_Variant9(__symbols);
let __start = __sym0.0.clone();
let __end = __sym0.2.clone();
let __nt = super::__action0::<>(__sym0);
__symbols.push((__start, __Symbol::Variant9(__nt), __end));
(1, 32)
}
}
pub use self::__parse__Call::CallParser;
#[cfg_attr(rustfmt, rustfmt_skip)]
mod __parse__Pipeline {
#![allow(non_snake_case, non_camel_case_types, unused_mut, unused_variables, unused_imports, unused_parens)]
use std::str::FromStr;
use crate::parser::ast::*;
use crate::prelude::*;
use crate::parser::lexer::{SpannedToken, Spanned, Span, Token};
use byte_unit::Byte;
#[allow(unused_extern_crates)]
extern crate lalrpop_util as __lalrpop_util;
#[allow(unused_imports)]
use self::__lalrpop_util::state_machine as __state_machine;
use super::__ToTriple;
#[allow(dead_code)]
pub enum __Symbol<'input>
{
Variant0(SpannedToken<'input>),
Variant1(::std::vec::Vec<SpannedToken<'input>>),
Variant2(Expression),
Variant3(::std::vec::Vec<Expression>),
Variant4(usize),
Variant5(Bare),
Variant6(i64),
Variant7(String),
Variant8(Operator),
Variant9(Pipeline),
Variant10(Spanned<Operator>),
}
const __ACTION: &'static [i8] = &[
// State 0
0, 18, 19, 0, 0, 0, 0, 0, 0, 0, 0, 0, 20, 0, 21, 0, 22, 0, 23, 0, 0, 24, 0, 0,
// State 1
27, 0, 0, 0, 0, 0, 28, 29, 30, 31, 32, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
// State 2
-17, -17, -17, -17, -17, -17, -17, -17, -17, -17, -17, 0, -17, 0, -17, 0, -17, 0, -17, 0, 0, -17, -17, -17,
// State 3
-15, 18, 19, 0, 40, 41, -15, -15, -15, -15, -15, 0, 20, 0, 21, 0, 22, 0, 23, 0, 0, 24, -52, 0,
// State 4
0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, -58, -58,
// State 5
-40, -40, -40, -40, -40, -40, -40, -40, -40, -40, -40, -40, -40, 0, -40, 0, -40, 0, -40, 0, 0, -40, -40, -40,
// State 6
0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, -57, -57,
// State 7
-14, 18, 19, 0, 40, 41, -14, -14, -14, -14, -14, 0, 20, 0, 21, 0, 22, 0, 23, 0, 0, 24, -56, -56,
// State 8
-33, -33, -33, -33, -33, -33, -33, -33, -33, -33, -33, -33, -33, 0, -33, 0, -33, 0, -33, 44, 0, -33, -33, -33,
// State 9
-39, -39, -39, -39, -39, -39, -39, -39, -39, -39, -39, -39, -39, 0, -39, 0, -39, 0, -39, 0, 0, -39, -39, -39,
// State 10
-27, -27, -27, -27, -27, -27, -27, -27, -27, -27, -27, 46, -27, 0, -27, 0, -27, 0, -27, 0, 0, -27, -27, -27,
// State 11
0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
// State 12
0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 48, 0,
// State 13
0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, -53, 0,
// State 14
-32, -32, -32, -32, -32, -32, -32, -32, -32, -32, -32, -32, -32, 0, -32, 0, -32, 0, -32, 0, 0, -32, -32, -32,
// State 15
-34, -34, -34, -34, -34, -34, -34, -34, -34, -34, -34, -34, -34, 0, -34, 0, -34, 0, -34, 0, 0, -34, -34, -34,
// State 16
-35, -35, -35, -35, -35, -35, -35, -35, -35, -35, -35, -35, -35, 0, -35, 0, -35, 0, -35, 0, 0, -35, -35, -35,
// State 17
0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 49, 0, 0, 0,
// State 18
0, 18, 19, 0, 0, 0, 0, 0, 0, 0, 0, 0, 20, 0, 21, 0, 22, 0, 23, 0, 0, 24, 0, 0,
// State 19
-16, -16, -16, -16, -16, -16, -16, -16, -16, -16, -16, 0, -16, 0, -16, 0, -16, 0, -16, 0, 0, -16, -16, -16,
// State 20
-61, -61, -61, -61, -61, -61, -61, -61, -61, -61, -61, -61, -61, 0, -61, 0, -61, 0, -61, 0, 0, -61, -61, -61,
// State 21
-31, -31, -31, -31, -31, -31, -31, -31, -31, -31, -31, -31, -31, 0, -31, 0, -31, 0, -31, -31, 0, -31, -31, -31,
// State 22
-60, -60, -60, -60, -60, -60, -60, -60, -60, -60, -60, -60, -60, 0, -60, 0, -60, 0, -60, 0, 0, -60, -60, -60,
// State 23
0, 18, 19, 0, 0, 0, 0, 0, 0, 0, 0, 0, 20, 0, 21, 0, 22, 0, 23, 0, 0, 24, 0, 0,
// State 24
0, -59, -59, 0, 0, 0, 0, 0, 0, 0, 0, 0, -59, 0, -59, 0, -59, 0, -59, 0, 0, -59, 0, 0,
// State 25
0, 18, 19, 0, 0, 0, 0, 0, 0, 0, 0, 0, 20, 0, 21, 0, 22, 0, 23, 0, 0, 24, 0, 0,
// State 26
0, -45, -45, 0, 0, 0, 0, 0, 0, 0, 0, 0, -45, 0, -45, 0, -45, 0, -45, 0, 0, -45, 0, 0,
// State 27
0, -46, -46, 0, 0, 0, 0, 0, 0, 0, 0, 0, -46, 0, -46, 0, -46, 0, -46, 0, 0, -46, 0, 0,
// State 28
0, -48, -48, 0, 0, 0, 0, 0, 0, 0, 0, 0, -48, 0, -48, 0, -48, 0, -48, 0, 0, -48, 0, 0,
// State 29
0, -44, -44, 0, 0, 0, 0, 0, 0, 0, 0, 0, -44, 0, -44, 0, -44, 0, -44, 0, 0, -44, 0, 0,
// State 30
0, -47, -47, 0, 0, 0, 0, 0, 0, 0, 0, 0, -47, 0, -47, 0, -47, 0, -47, 0, 0, -47, 0, 0,
// State 31
0, -49, -49, 0, 0, 0, 0, 0, 0, 0, 0, 0, -49, 0, -49, 0, -49, 0, -49, 0, 0, -49, 0, 0,
// State 32
27, -25, -25, -25, -25, -25, 28, 29, 30, 31, 32, 0, -25, 0, -25, 0, -25, 0, -25, 0, 0, -25, -25, -25,
// State 33
-15, -15, -15, -15, -15, -15, -15, -15, -15, -15, -15, 0, -15, 0, -15, 0, -15, 0, -15, 0, 0, -15, -15, -15,
// State 34
0, 0, 0, -55, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, -55, -55,
// State 35
0, 18, 19, -54, 40, 41, 0, 0, 0, 0, 0, 0, 20, 0, 21, 0, 22, 0, 23, 0, 0, 24, -54, -54,
// State 36
-14, -14, -14, -14, -14, -14, -14, -14, -14, -14, -14, 0, -14, 0, -14, 0, -14, 0, -14, 0, 0, -14, -14, -14,
// State 37
0, -26, -26, -26, -26, -26, 0, 0, 0, 0, 0, 0, -26, 0, -26, 0, -26, 0, -26, 0, 0, -26, -26, -26,
// State 38
0, 0, 0, -23, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, -23, -23,
// State 39
0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 20, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
// State 40
0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 20, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
// State 41
0, 18, 19, -54, 40, 41, 0, 0, 0, 0, 0, 0, 20, 0, 21, 0, 22, 0, 23, 0, 0, 24, -54, -54,
// State 42
0, 0, 0, -21, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, -21, -21,
// State 43
-62, -62, -62, -62, -62, -62, -62, -62, -62, -62, -62, -62, -62, 0, -62, 0, -62, 0, -62, 0, 0, -62, -62, -62,
// State 44
-28, -28, -28, -28, -28, -28, -28, -28, -28, -28, -28, 63, -28, 0, -28, 0, -28, 0, -28, 0, 0, -28, -28, -28,
// State 45
0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 64, 0, 0, 0, 0, 0, 0, 0, 0,
// State 46
0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 65, 0,
// State 47
0, 18, 19, 0, 0, 0, 0, 0, 0, 0, 0, 0, 20, 0, 21, 0, 22, 0, 23, 0, 0, 24, 0, 0,
// State 48
-63, -63, -63, -63, -63, -63, -63, -63, -63, -63, -63, -63, -63, 0, -63, 0, -63, 0, -63, 0, 0, -63, -63, -63,
// State 49
-15, 18, 19, 67, 40, 41, -15, -15, -15, -15, -15, 0, 20, 0, 21, 0, 22, 0, 23, 0, 0, 24, 0, 0,
// State 50
0, 0, 0, 68, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
// State 51
0, 0, 0, 69, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
// State 52
-14, 18, 19, 0, 40, 41, -14, -14, -14, -14, -14, 0, 20, 0, 21, 0, 22, 0, 23, 0, 0, 24, 0, 0,
// State 53
-15, 18, 19, 0, 40, 41, -15, -15, -15, -15, -15, 0, 20, 0, 21, 0, 22, 0, 23, 0, 0, 24, 0, 70,
// State 54
0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 71,
// State 55
0, 0, 0, -18, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, -18, -18,
// State 56
0, 18, 19, -24, 40, 41, 0, 0, 0, 0, 0, 0, 20, 0, 21, 0, 22, 0, 23, 0, 0, 24, -24, -24,
// State 57
0, -25, -25, -25, -25, -25, 0, 0, 0, 0, 0, 0, -25, 0, -25, 0, -25, 0, -25, 0, 0, -25, -25, -25,
// State 58
0, -10, -10, -10, -10, -10, 0, 0, 0, 0, 0, 0, -10, 0, -10, 0, -10, 0, -10, 0, 0, -10, -10, -10,
// State 59
0, -29, -29, -29, -29, -29, 0, 0, 0, 0, 0, 0, -29, 0, -29, 0, -29, 0, -29, 0, 0, -29, -29, -29,
// State 60
0, -30, -30, -30, -30, -30, 0, 0, 0, 0, 0, 0, -30, 0, -30, 0, -30, 0, -30, 0, 0, -30, -30, -30,
// State 61
0, 18, 19, -22, 40, 41, 0, 0, 0, 0, 0, 0, 20, 0, 21, 0, 22, 0, 23, 0, 0, 24, -22, -22,
// State 62
0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 73, 0, 0, 0, 0, 0, 0, 0, 0,
// State 63
-2, -2, -2, -2, -2, -2, -2, -2, -2, -2, -2, -2, -2, 0, -2, 0, -2, 0, -2, 0, 0, -2, -2, -2,
// State 64
0, 18, 19, 0, 0, 0, 0, 0, 0, 0, 0, 0, 20, 0, 21, 0, 22, 0, 23, 0, 0, 24, 0, 0,
// State 65
0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, -7, 0,
// State 66
-42, -42, -42, -42, -42, -42, -42, -42, -42, -42, -42, -42, -42, 0, -42, 0, -42, 0, -42, 0, 0, -42, -42, -42,
// State 67
-43, -43, -43, -43, -43, -43, -43, -43, -43, -43, -43, -43, -43, 0, -43, 0, -43, 0, -43, 0, 0, -43, -43, -43,
// State 68
-41, -41, -41, -41, -41, -41, -41, -41, -41, -41, -41, -41, -41, 0, -41, 0, -41, 0, -41, 0, 0, -41, -41, -41,
// State 69
-20, -20, -20, -20, -20, -20, -20, -20, -20, -20, -20, -20, -20, 0, -20, 0, -20, 0, -20, 0, 0, -20, -20, -20,
// State 70
-19, -19, -19, -19, -19, -19, -19, -19, -19, -19, -19, -19, -19, 0, -19, 0, -19, 0, -19, 0, 0, -19, -19, -19,
// State 71
0, -11, -11, -11, -11, -11, 0, 0, 0, 0, 0, 0, -11, 0, -11, 0, -11, 0, -11, 0, 0, -11, -11, -11,
// State 72
-3, -3, -3, -3, -3, -3, -3, -3, -3, -3, -3, -3, -3, 0, -3, 0, -3, 0, -3, 0, 0, -3, -3, -3,
// State 73
0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, -8, 0,
];
const __EOF_ACTION: &'static [i8] = &[
// State 0
0,
// State 1
0,
// State 2
-17,
// State 3
-52,
// State 4
-58,
// State 5
-40,
// State 6
-57,
// State 7
-56,
// State 8
-33,
// State 9
-39,
// State 10
-27,
// State 11
-65,
// State 12
-50,
// State 13
-53,
// State 14
-32,
// State 15
-34,
// State 16
-35,
// State 17
0,
// State 18
0,
// State 19
-16,
// State 20
-61,
// State 21
-31,
// State 22
-60,
// State 23
0,
// State 24
0,
// State 25
0,
// State 26
0,
// State 27
0,
// State 28
0,
// State 29
0,
// State 30
0,
// State 31
0,
// State 32
-25,
// State 33
-15,
// State 34
-55,
// State 35
-54,
// State 36
-14,
// State 37
-26,
// State 38
-23,
// State 39
0,
// State 40
0,
// State 41
-54,
// State 42
-21,
// State 43
-62,
// State 44
-28,
// State 45
0,
// State 46
-51,
// State 47
0,
// State 48
-63,
// State 49
0,
// State 50
0,
// State 51
0,
// State 52
0,
// State 53
0,
// State 54
0,
// State 55
-18,
// State 56
-24,
// State 57
-25,
// State 58
-10,
// State 59
-29,
// State 60
-30,
// State 61
-22,
// State 62
0,
// State 63
-2,
// State 64
0,
// State 65
-7,
// State 66
-42,
// State 67
-43,
// State 68
-41,
// State 69
-20,
// State 70
-19,
// State 71
-11,
// State 72
-3,
// State 73
-8,
];
const __GOTO: &'static [i8] = &[
// State 0
0, 0, 0, 0, 0, 0, 0, 0, 0, 2, 3, 4, 5, 6, 7, 0, 8, 0, 9, 10, 0, 11, 0, 12, 13, 0, 14, 0, 15, 16, 17, 0, 0,
// State 1
0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 25, 0, 0, 0, 0, 26, 0, 0, 0, 0, 0,
// State 2
0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
// State 3
0, 0, 0, 0, 0, 0, 0, 0, 0, 33, 3, 34, 35, 6, 0, 36, 37, 38, 9, 10, 0, 11, 0, 0, 0, 39, 0, 0, 15, 16, 17, 0, 0,
// State 4
0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
// State 5
0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
// State 6
0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
// State 7
0, 0, 0, 0, 0, 0, 0, 0, 0, 33, 3, 34, 35, 6, 0, 42, 37, 38, 9, 10, 0, 11, 0, 0, 0, 43, 0, 0, 15, 16, 17, 0, 0,
// State 8
0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
// State 9
0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
// State 10
0, 45, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
// State 11
0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
// State 12
0, 0, 0, 0, 47, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
// State 13
0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
// State 14
0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
// State 15
0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
// State 16
0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
// State 17
0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
// State 18
0, 0, 0, 0, 0, 0, 0, 0, 0, 2, 3, 50, 51, 6, 52, 0, 53, 0, 9, 10, 0, 11, 0, 0, 0, 0, 0, 0, 15, 16, 17, 0, 0,
// State 19
0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
// State 20
0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
// State 21
0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
// State 22
0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
// State 23
0, 0, 0, 0, 0, 0, 0, 0, 0, 2, 3, 54, 5, 6, 7, 0, 8, 0, 9, 10, 0, 11, 0, 0, 0, 0, 55, 0, 15, 16, 17, 0, 0,
// State 24
0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
// State 25
0, 0, 0, 0, 0, 0, 0, 0, 0, 56, 3, 34, 0, 6, 0, 0, 37, 0, 9, 10, 0, 11, 0, 0, 0, 0, 0, 0, 15, 16, 17, 0, 0,
// State 26
0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
// State 27
0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
// State 28
0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
// State 29
0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
// State 30
0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
// State 31
0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
// State 32
0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 25, 0, 0, 0, 0, 26, 0, 0, 0, 0, 0,
// State 33
0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
// State 34
0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
// State 35
0, 0, 0, 0, 0, 0, 57, 0, 0, 58, 3, 34, 0, 6, 0, 59, 37, 38, 9, 10, 0, 11, 0, 0, 0, 0, 0, 0, 15, 16, 17, 0, 0,
// State 36
0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
// State 37
0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
// State 38
0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
// State 39
0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 60, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
// State 40
0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 61, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
// State 41
0, 0, 0, 0, 0, 0, 62, 0, 0, 58, 3, 34, 0, 6, 0, 59, 37, 38, 9, 10, 0, 11, 0, 0, 0, 0, 0, 0, 15, 16, 17, 0, 0,
// State 42
0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
// State 43
0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
// State 44
0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
// State 45
0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
// State 46
0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
// State 47
0, 0, 0, 0, 0, 0, 0, 0, 0, 2, 3, 4, 5, 6, 7, 0, 8, 0, 9, 10, 0, 11, 0, 0, 66, 0, 14, 0, 15, 16, 17, 0, 0,
// State 48
0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
// State 49
0, 0, 0, 0, 0, 0, 0, 0, 0, 33, 3, 34, 35, 6, 0, 36, 37, 38, 9, 10, 0, 11, 0, 0, 0, 39, 0, 0, 15, 16, 17, 0, 0,
// State 50
0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
// State 51
0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
// State 52
0, 0, 0, 0, 0, 0, 0, 0, 0, 33, 3, 34, 35, 6, 0, 42, 37, 38, 9, 10, 0, 11, 0, 0, 0, 43, 0, 0, 15, 16, 17, 0, 0,
// State 53
0, 0, 0, 0, 0, 0, 0, 0, 0, 33, 3, 34, 35, 6, 0, 36, 37, 38, 9, 10, 0, 11, 0, 0, 0, 39, 0, 0, 15, 16, 17, 0, 0,
// State 54
0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
// State 55
0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
// State 56
0, 0, 0, 0, 0, 0, 0, 0, 0, 58, 3, 34, 0, 6, 0, 72, 37, 38, 9, 10, 0, 11, 0, 0, 0, 0, 0, 0, 15, 16, 17, 0, 0,
// State 57
0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
// State 58
0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
// State 59
0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
// State 60
0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
// State 61
0, 0, 0, 0, 0, 0, 0, 0, 0, 58, 3, 34, 0, 6, 0, 72, 37, 38, 9, 10, 0, 11, 0, 0, 0, 0, 0, 0, 15, 16, 17, 0, 0,
// State 62
0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
// State 63
0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
// State 64
0, 0, 0, 0, 0, 0, 0, 0, 0, 2, 3, 4, 5, 6, 7, 0, 8, 0, 9, 10, 0, 11, 0, 0, 74, 0, 14, 0, 15, 16, 17, 0, 0,
// State 65
0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
// State 66
0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
// State 67
0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
// State 68
0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
// State 69
0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
// State 70
0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
// State 71
0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
// State 72
0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
// State 73
0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
];
fn __expected_tokens(__state: usize) -> Vec<::std::string::String> {
const __TERMINAL: &'static [&'static str] = &[
r###""!=""###,
r###""$""###,
r###""(""###,
r###"")""###,
r###""-""###,
r###""--""###,
r###""<""###,
r###""<=""###,
r###""==""###,
r###"">""###,
r###"">=""###,
r###""???.""###,
r###""bare""###,
r###""dqmember""###,
r###""dqstring""###,
r###""member""###,
r###""num""###,
r###""sqmember""###,
r###""sqstring""###,
r###""unit""###,
r###""variable""###,
r###""{""###,
r###""|""###,
r###""}""###,
];
__ACTION[(__state * 24)..].iter().zip(__TERMINAL).filter_map(|(&state, terminal)| {
if state == 0 {
None
} else {
Some(terminal.to_string())
}
}).collect()
}
pub struct __StateMachine<'input>
where
{
__phantom: ::std::marker::PhantomData<(&'input ())>,
}
impl<'input> __state_machine::ParserDefinition for __StateMachine<'input>
where
{
type Location = usize;
type Error = ShellError;
type Token = SpannedToken<'input>;
type TokenIndex = usize;
type Symbol = __Symbol<'input>;
type Success = Pipeline;
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 as usize) * 24 + integer]
}
#[inline]
fn error_action(&self, state: i8) -> i8 {
__ACTION[(state as usize) * 24 + (24 - 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 as usize) * 33 + nt] - 1
}
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 as usize)
}
#[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(
action,
start_location,
states,
symbols,
::std::marker::PhantomData::<(&())>,
)
}
fn simulate_reduce(&self, action: i8) -> __state_machine::SimulatedReduce<Self> {
__simulate_reduce(action, ::std::marker::PhantomData::<(&())>)
}
}
fn __token_to_integer<
'input,
>(
__token: &SpannedToken<'input>,
_: ::std::marker::PhantomData<(&'input ())>,
) -> Option<usize>
{
match *__token {
SpannedToken { token: Token::OpNeq, .. } if true => Some(0),
SpannedToken { token: Token::Dollar, .. } if true => Some(1),
SpannedToken { token: Token::OpenParen, .. } if true => Some(2),
SpannedToken { token: Token::CloseParen, .. } if true => Some(3),
SpannedToken { token: Token::Dash, .. } if true => Some(4),
SpannedToken { token: Token::DashDash, .. } if true => Some(5),
SpannedToken { token: Token::OpLt, .. } if true => Some(6),
SpannedToken { token: Token::OpLte, .. } if true => Some(7),
SpannedToken { token: Token::OpEq, .. } if true => Some(8),
SpannedToken { token: Token::OpGt, .. } if true => Some(9),
SpannedToken { token: Token::OpGte, .. } if true => Some(10),
SpannedToken { token: Token::PathDot, .. } if true => Some(11),
SpannedToken { token: Token::Bare, .. } if true => Some(12),
SpannedToken { token: Token::SQMember, .. } if true => Some(13),
SpannedToken { token: Token::DQString, .. } if true => Some(14),
SpannedToken { token: Token::Member, .. } if true => Some(15),
SpannedToken { token: Token::Num, .. } if true => Some(16),
SpannedToken { token: Token::SQMember, .. } if true => Some(17),
SpannedToken { token: Token::SQString, .. } if true => Some(18),
SpannedToken { token: Token::Unit, .. } if true => Some(19),
SpannedToken { token: Token::Variable, .. } if true => Some(20),
SpannedToken { token: Token::OpenBrace, .. } if true => Some(21),
SpannedToken { token: Token::Pipe, .. } if true => Some(22),
SpannedToken { token: Token::CloseBrace, .. } if true => Some(23),
_ => None,
}
}
fn __token_to_symbol<
'input,
>(
__token_index: usize,
__token: SpannedToken<'input>,
_: ::std::marker::PhantomData<(&'input ())>,
) -> __Symbol<'input>
{
match __token_index {
0 => match __token {
__tok @ SpannedToken { token: Token::OpNeq, .. } => __Symbol::Variant0((__tok)),
_ => unreachable!(),
},
1 => match __token {
__tok @ SpannedToken { token: Token::Dollar, .. } => __Symbol::Variant0((__tok)),
_ => unreachable!(),
},
2 => match __token {
__tok @ SpannedToken { token: Token::OpenParen, .. } => __Symbol::Variant0((__tok)),
_ => unreachable!(),
},
3 => match __token {
__tok @ SpannedToken { token: Token::CloseParen, .. } => __Symbol::Variant0((__tok)),
_ => unreachable!(),
},
4 => match __token {
__tok @ SpannedToken { token: Token::Dash, .. } => __Symbol::Variant0((__tok)),
_ => unreachable!(),
},
5 => match __token {
__tok @ SpannedToken { token: Token::DashDash, .. } => __Symbol::Variant0((__tok)),
_ => unreachable!(),
},
6 => match __token {
__tok @ SpannedToken { token: Token::OpLt, .. } => __Symbol::Variant0((__tok)),
_ => unreachable!(),
},
7 => match __token {
__tok @ SpannedToken { token: Token::OpLte, .. } => __Symbol::Variant0((__tok)),
_ => unreachable!(),
},
8 => match __token {
__tok @ SpannedToken { token: Token::OpEq, .. } => __Symbol::Variant0((__tok)),
_ => unreachable!(),
},
9 => match __token {
__tok @ SpannedToken { token: Token::OpGt, .. } => __Symbol::Variant0((__tok)),
_ => unreachable!(),
},
10 => match __token {
__tok @ SpannedToken { token: Token::OpGte, .. } => __Symbol::Variant0((__tok)),
_ => unreachable!(),
},
11 => match __token {
__tok @ SpannedToken { token: Token::PathDot, .. } => __Symbol::Variant0((__tok)),
_ => unreachable!(),
},
12 => match __token {
__tok @ SpannedToken { token: Token::Bare, .. } => __Symbol::Variant0((__tok)),
_ => unreachable!(),
},
13 => match __token {
__tok @ SpannedToken { token: Token::SQMember, .. } => __Symbol::Variant0((__tok)),
_ => unreachable!(),
},
14 => match __token {
__tok @ SpannedToken { token: Token::DQString, .. } => __Symbol::Variant0((__tok)),
_ => unreachable!(),
},
15 => match __token {
__tok @ SpannedToken { token: Token::Member, .. } => __Symbol::Variant0((__tok)),
_ => unreachable!(),
},
16 => match __token {
__tok @ SpannedToken { token: Token::Num, .. } => __Symbol::Variant0((__tok)),
_ => unreachable!(),
},
17 => match __token {
__tok @ SpannedToken { token: Token::SQMember, .. } => __Symbol::Variant0((__tok)),
_ => unreachable!(),
},
18 => match __token {
__tok @ SpannedToken { token: Token::SQString, .. } => __Symbol::Variant0((__tok)),
_ => unreachable!(),
},
19 => match __token {
__tok @ SpannedToken { token: Token::Unit, .. } => __Symbol::Variant0((__tok)),
_ => unreachable!(),
},
20 => match __token {
__tok @ SpannedToken { token: Token::Variable, .. } => __Symbol::Variant0((__tok)),
_ => unreachable!(),
},
21 => match __token {
__tok @ SpannedToken { token: Token::OpenBrace, .. } => __Symbol::Variant0((__tok)),
_ => unreachable!(),
},
22 => match __token {
__tok @ SpannedToken { token: Token::Pipe, .. } => __Symbol::Variant0((__tok)),
_ => unreachable!(),
},
23 => match __token {
__tok @ SpannedToken { token: Token::CloseBrace, .. } => __Symbol::Variant0((__tok)),
_ => unreachable!(),
},
_ => unreachable!(),
}
}
fn __simulate_reduce<
'input,
>(
__reduce_index: i8,
_: ::std::marker::PhantomData<(&'input ())>,
) -> __state_machine::SimulatedReduce<__StateMachine<'input>>
{
match __reduce_index {
0 => {
__state_machine::SimulatedReduce::Reduce {
states_to_pop: 2,
nonterminal_produced: 0,
}
}
1 => {
__state_machine::SimulatedReduce::Reduce {
states_to_pop: 2,
nonterminal_produced: 1,
}
}
2 => {
__state_machine::SimulatedReduce::Reduce {
states_to_pop: 3,
nonterminal_produced: 1,
}
}
3 => {
__state_machine::SimulatedReduce::Reduce {
states_to_pop: 2,
nonterminal_produced: 2,
}
}
4 => {
__state_machine::SimulatedReduce::Reduce {
states_to_pop: 0,
nonterminal_produced: 3,
}
}
5 => {
__state_machine::SimulatedReduce::Reduce {
states_to_pop: 1,
nonterminal_produced: 3,
}
}
6 => {
__state_machine::SimulatedReduce::Reduce {
states_to_pop: 2,
nonterminal_produced: 4,
}
}
7 => {
__state_machine::SimulatedReduce::Reduce {
states_to_pop: 3,
nonterminal_produced: 4,
}
}
8 => {
__state_machine::SimulatedReduce::Reduce {
states_to_pop: 1,
nonterminal_produced: 5,
}
}
9 => {
__state_machine::SimulatedReduce::Reduce {
states_to_pop: 1,
nonterminal_produced: 6,
}
}
10 => {
__state_machine::SimulatedReduce::Reduce {
states_to_pop: 2,
nonterminal_produced: 6,
}
}
11 => {
__state_machine::SimulatedReduce::Reduce {
states_to_pop: 0,
nonterminal_produced: 7,
}
}
12 => {
__state_machine::SimulatedReduce::Reduce {
states_to_pop: 0,
nonterminal_produced: 8,
}
}
13 => {
__state_machine::SimulatedReduce::Reduce {
states_to_pop: 1,
nonterminal_produced: 9,
}
}
14 => {
__state_machine::SimulatedReduce::Reduce {
states_to_pop: 1,
nonterminal_produced: 9,
}
}
15 => {
__state_machine::SimulatedReduce::Reduce {
states_to_pop: 1,
nonterminal_produced: 10,
}
}
16 => {
__state_machine::SimulatedReduce::Reduce {
states_to_pop: 1,
nonterminal_produced: 11,
}
}
17 => {
__state_machine::SimulatedReduce::Reduce {
states_to_pop: 3,
nonterminal_produced: 12,
}
}
18 => {
__state_machine::SimulatedReduce::Reduce {
states_to_pop: 3,
nonterminal_produced: 13,
}
}
19 => {
__state_machine::SimulatedReduce::Reduce {
states_to_pop: 3,
nonterminal_produced: 13,
}
}
20 => {
__state_machine::SimulatedReduce::Reduce {
states_to_pop: 2,
nonterminal_produced: 14,
}
}
21 => {
__state_machine::SimulatedReduce::Reduce {
states_to_pop: 3,
nonterminal_produced: 14,
}
}
22 => {
__state_machine::SimulatedReduce::Reduce {
states_to_pop: 2,
nonterminal_produced: 14,
}
}
23 => {
__state_machine::SimulatedReduce::Reduce {
states_to_pop: 3,
nonterminal_produced: 14,
}
}
24 => {
__state_machine::SimulatedReduce::Reduce {
states_to_pop: 1,
nonterminal_produced: 15,
}
}
25 => {
__state_machine::SimulatedReduce::Reduce {
states_to_pop: 1,
nonterminal_produced: 15,
}
}
26 => {
__state_machine::SimulatedReduce::Reduce {
states_to_pop: 1,
nonterminal_produced: 16,
}
}
27 => {
__state_machine::SimulatedReduce::Reduce {
states_to_pop: 2,
nonterminal_produced: 16,
}
}
28 => {
__state_machine::SimulatedReduce::Reduce {
states_to_pop: 2,
nonterminal_produced: 17,
}
}
29 => {
__state_machine::SimulatedReduce::Reduce {
states_to_pop: 2,
nonterminal_produced: 17,
}
}
30 => {
__state_machine::SimulatedReduce::Reduce {
states_to_pop: 1,
nonterminal_produced: 18,
}
}
31 => {
__state_machine::SimulatedReduce::Reduce {
states_to_pop: 1,
nonterminal_produced: 19,
}
}
32 => {
__state_machine::SimulatedReduce::Reduce {
states_to_pop: 1,
nonterminal_produced: 19,
}
}
33 => {
__state_machine::SimulatedReduce::Reduce {
states_to_pop: 1,
nonterminal_produced: 19,
}
}
34 => {
__state_machine::SimulatedReduce::Reduce {
states_to_pop: 1,
nonterminal_produced: 19,
}
}
35 => {
__state_machine::SimulatedReduce::Reduce {
states_to_pop: 1,
nonterminal_produced: 20,
}
}
36 => {
__state_machine::SimulatedReduce::Reduce {
states_to_pop: 1,
nonterminal_produced: 20,
}
}
37 => {
__state_machine::SimulatedReduce::Reduce {
states_to_pop: 1,
nonterminal_produced: 20,
}
}
38 => {
__state_machine::SimulatedReduce::Reduce {
states_to_pop: 1,
nonterminal_produced: 21,
}
}
39 => {
__state_machine::SimulatedReduce::Reduce {
states_to_pop: 1,
nonterminal_produced: 21,
}
}
40 => {
__state_machine::SimulatedReduce::Reduce {
states_to_pop: 3,
nonterminal_produced: 21,
}
}
41 => {
__state_machine::SimulatedReduce::Reduce {
states_to_pop: 3,
nonterminal_produced: 21,
}
}
42 => {
__state_machine::SimulatedReduce::Reduce {
states_to_pop: 3,
nonterminal_produced: 21,
}
}
43 => {
__state_machine::SimulatedReduce::Reduce {
states_to_pop: 1,
nonterminal_produced: 22,
}
}
44 => {
__state_machine::SimulatedReduce::Reduce {
states_to_pop: 1,
nonterminal_produced: 22,
}
}
45 => {
__state_machine::SimulatedReduce::Reduce {
states_to_pop: 1,
nonterminal_produced: 22,
}
}
46 => {
__state_machine::SimulatedReduce::Reduce {
states_to_pop: 1,
nonterminal_produced: 22,
}
}
47 => {
__state_machine::SimulatedReduce::Reduce {
states_to_pop: 1,
nonterminal_produced: 22,
}
}
48 => {
__state_machine::SimulatedReduce::Reduce {
states_to_pop: 1,
nonterminal_produced: 22,
}
}
49 => {
__state_machine::SimulatedReduce::Reduce {
states_to_pop: 1,
nonterminal_produced: 23,
}
}
50 => {
__state_machine::SimulatedReduce::Reduce {
states_to_pop: 2,
nonterminal_produced: 23,
}
}
51 => {
__state_machine::SimulatedReduce::Reduce {
states_to_pop: 1,
nonterminal_produced: 24,
}
}
52 => {
__state_machine::SimulatedReduce::Reduce {
states_to_pop: 1,
nonterminal_produced: 24,
}
}
53 => {
__state_machine::SimulatedReduce::Reduce {
states_to_pop: 1,
nonterminal_produced: 25,
}
}
54 => {
__state_machine::SimulatedReduce::Reduce {
states_to_pop: 1,
nonterminal_produced: 25,
}
}
55 => {
__state_machine::SimulatedReduce::Reduce {
states_to_pop: 1,
nonterminal_produced: 26,
}
}
56 => {
__state_machine::SimulatedReduce::Reduce {
states_to_pop: 1,
nonterminal_produced: 26,
}
}
57 => {
__state_machine::SimulatedReduce::Reduce {
states_to_pop: 1,
nonterminal_produced: 26,
}
}
58 => {
__state_machine::SimulatedReduce::Reduce {
states_to_pop: 1,
nonterminal_produced: 27,
}
}
59 => {
__state_machine::SimulatedReduce::Reduce {
states_to_pop: 1,
nonterminal_produced: 28,
}
}
60 => {
__state_machine::SimulatedReduce::Reduce {
states_to_pop: 1,
nonterminal_produced: 28,
}
}
61 => {
__state_machine::SimulatedReduce::Reduce {
states_to_pop: 2,
nonterminal_produced: 29,
}
}
62 => {
__state_machine::SimulatedReduce::Reduce {
states_to_pop: 2,
nonterminal_produced: 30,
}
}
63 => {
__state_machine::SimulatedReduce::Reduce {
states_to_pop: 1,
nonterminal_produced: 31,
}
}
64 => __state_machine::SimulatedReduce::Accept,
_ => panic!("invalid reduction index {}", __reduce_index)
}
}
pub struct PipelineParser {
_priv: (),
}
impl PipelineParser {
pub fn new() -> PipelineParser {
PipelineParser {
_priv: (),
}
}
#[allow(dead_code)]
pub fn parse<
'input,
__TOKEN: __ToTriple<'input, >,
__TOKENS: IntoIterator<Item=__TOKEN>,
>(
&self,
__tokens0: __TOKENS,
) -> Result<Pipeline, __lalrpop_util::ParseError<usize, SpannedToken<'input>, ShellError>>
{
let __tokens = __tokens0.into_iter();
let mut __tokens = __tokens.map(|t| __ToTriple::to_triple(t));
let __r = __state_machine::Parser::drive(
__StateMachine {
__phantom: ::std::marker::PhantomData::<(&())>,
},
__tokens,
);
__r
}
}
pub(crate) fn __reduce<
'input,
>(
__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<Pipeline,__lalrpop_util::ParseError<usize, SpannedToken<'input>, ShellError>>>
{
let (__pop_states, __nonterminal) = match __action {
0 => {
__reduce0(__action, __lookahead_start, __states, __symbols, ::std::marker::PhantomData::<(&())>)
}
1 => {
__reduce1(__action, __lookahead_start, __states, __symbols, ::std::marker::PhantomData::<(&())>)
}
2 => {
__reduce2(__action, __lookahead_start, __states, __symbols, ::std::marker::PhantomData::<(&())>)
}
3 => {
__reduce3(__action, __lookahead_start, __states, __symbols, ::std::marker::PhantomData::<(&())>)
}
4 => {
__reduce4(__action, __lookahead_start, __states, __symbols, ::std::marker::PhantomData::<(&())>)
}
5 => {
__reduce5(__action, __lookahead_start, __states, __symbols, ::std::marker::PhantomData::<(&())>)
}
6 => {
__reduce6(__action, __lookahead_start, __states, __symbols, ::std::marker::PhantomData::<(&())>)
}
7 => {
__reduce7(__action, __lookahead_start, __states, __symbols, ::std::marker::PhantomData::<(&())>)
}
8 => {
__reduce8(__action, __lookahead_start, __states, __symbols, ::std::marker::PhantomData::<(&())>)
}
9 => {
__reduce9(__action, __lookahead_start, __states, __symbols, ::std::marker::PhantomData::<(&())>)
}
10 => {
__reduce10(__action, __lookahead_start, __states, __symbols, ::std::marker::PhantomData::<(&())>)
}
11 => {
__reduce11(__action, __lookahead_start, __states, __symbols, ::std::marker::PhantomData::<(&())>)
}
12 => {
__reduce12(__action, __lookahead_start, __states, __symbols, ::std::marker::PhantomData::<(&())>)
}
13 => {
__reduce13(__action, __lookahead_start, __states, __symbols, ::std::marker::PhantomData::<(&())>)
}
14 => {
__reduce14(__action, __lookahead_start, __states, __symbols, ::std::marker::PhantomData::<(&())>)
}
15 => {
__reduce15(__action, __lookahead_start, __states, __symbols, ::std::marker::PhantomData::<(&())>)
}
16 => {
__reduce16(__action, __lookahead_start, __states, __symbols, ::std::marker::PhantomData::<(&())>)
}
17 => {
__reduce17(__action, __lookahead_start, __states, __symbols, ::std::marker::PhantomData::<(&())>)
}
18 => {
__reduce18(__action, __lookahead_start, __states, __symbols, ::std::marker::PhantomData::<(&())>)
}
19 => {
__reduce19(__action, __lookahead_start, __states, __symbols, ::std::marker::PhantomData::<(&())>)
}
20 => {
__reduce20(__action, __lookahead_start, __states, __symbols, ::std::marker::PhantomData::<(&())>)
}
21 => {
__reduce21(__action, __lookahead_start, __states, __symbols, ::std::marker::PhantomData::<(&())>)
}
22 => {
__reduce22(__action, __lookahead_start, __states, __symbols, ::std::marker::PhantomData::<(&())>)
}
23 => {
__reduce23(__action, __lookahead_start, __states, __symbols, ::std::marker::PhantomData::<(&())>)
}
24 => {
__reduce24(__action, __lookahead_start, __states, __symbols, ::std::marker::PhantomData::<(&())>)
}
25 => {
__reduce25(__action, __lookahead_start, __states, __symbols, ::std::marker::PhantomData::<(&())>)
}
26 => {
__reduce26(__action, __lookahead_start, __states, __symbols, ::std::marker::PhantomData::<(&())>)
}
27 => {
__reduce27(__action, __lookahead_start, __states, __symbols, ::std::marker::PhantomData::<(&())>)
}
28 => {
__reduce28(__action, __lookahead_start, __states, __symbols, ::std::marker::PhantomData::<(&())>)
}
29 => {
__reduce29(__action, __lookahead_start, __states, __symbols, ::std::marker::PhantomData::<(&())>)
}
30 => {
__reduce30(__action, __lookahead_start, __states, __symbols, ::std::marker::PhantomData::<(&())>)
}
31 => {
__reduce31(__action, __lookahead_start, __states, __symbols, ::std::marker::PhantomData::<(&())>)
}
32 => {
__reduce32(__action, __lookahead_start, __states, __symbols, ::std::marker::PhantomData::<(&())>)
}
33 => {
__reduce33(__action, __lookahead_start, __states, __symbols, ::std::marker::PhantomData::<(&())>)
}
34 => {
__reduce34(__action, __lookahead_start, __states, __symbols, ::std::marker::PhantomData::<(&())>)
}
35 => {
__reduce35(__action, __lookahead_start, __states, __symbols, ::std::marker::PhantomData::<(&())>)
}
36 => {
__reduce36(__action, __lookahead_start, __states, __symbols, ::std::marker::PhantomData::<(&())>)
}
37 => {
__reduce37(__action, __lookahead_start, __states, __symbols, ::std::marker::PhantomData::<(&())>)
}
38 => {
__reduce38(__action, __lookahead_start, __states, __symbols, ::std::marker::PhantomData::<(&())>)
}
39 => {
__reduce39(__action, __lookahead_start, __states, __symbols, ::std::marker::PhantomData::<(&())>)
}
40 => {
__reduce40(__action, __lookahead_start, __states, __symbols, ::std::marker::PhantomData::<(&())>)
}
41 => {
__reduce41(__action, __lookahead_start, __states, __symbols, ::std::marker::PhantomData::<(&())>)
}
42 => {
__reduce42(__action, __lookahead_start, __states, __symbols, ::std::marker::PhantomData::<(&())>)
}
43 => {
__reduce43(__action, __lookahead_start, __states, __symbols, ::std::marker::PhantomData::<(&())>)
}
44 => {
__reduce44(__action, __lookahead_start, __states, __symbols, ::std::marker::PhantomData::<(&())>)
}
45 => {
__reduce45(__action, __lookahead_start, __states, __symbols, ::std::marker::PhantomData::<(&())>)
}
46 => {
__reduce46(__action, __lookahead_start, __states, __symbols, ::std::marker::PhantomData::<(&())>)
}
47 => {
__reduce47(__action, __lookahead_start, __states, __symbols, ::std::marker::PhantomData::<(&())>)
}
48 => {
__reduce48(__action, __lookahead_start, __states, __symbols, ::std::marker::PhantomData::<(&())>)
}
49 => {
__reduce49(__action, __lookahead_start, __states, __symbols, ::std::marker::PhantomData::<(&())>)
}
50 => {
__reduce50(__action, __lookahead_start, __states, __symbols, ::std::marker::PhantomData::<(&())>)
}
51 => {
__reduce51(__action, __lookahead_start, __states, __symbols, ::std::marker::PhantomData::<(&())>)
}
52 => {
__reduce52(__action, __lookahead_start, __states, __symbols, ::std::marker::PhantomData::<(&())>)
}
53 => {
__reduce53(__action, __lookahead_start, __states, __symbols, ::std::marker::PhantomData::<(&())>)
}
54 => {
__reduce54(__action, __lookahead_start, __states, __symbols, ::std::marker::PhantomData::<(&())>)
}
55 => {
__reduce55(__action, __lookahead_start, __states, __symbols, ::std::marker::PhantomData::<(&())>)
}
56 => {
__reduce56(__action, __lookahead_start, __states, __symbols, ::std::marker::PhantomData::<(&())>)
}
57 => {
__reduce57(__action, __lookahead_start, __states, __symbols, ::std::marker::PhantomData::<(&())>)
}
58 => {
__reduce58(__action, __lookahead_start, __states, __symbols, ::std::marker::PhantomData::<(&())>)
}
59 => {
__reduce59(__action, __lookahead_start, __states, __symbols, ::std::marker::PhantomData::<(&())>)
}
60 => {
__reduce60(__action, __lookahead_start, __states, __symbols, ::std::marker::PhantomData::<(&())>)
}
61 => {
__reduce61(__action, __lookahead_start, __states, __symbols, ::std::marker::PhantomData::<(&())>)
}
62 => {
__reduce62(__action, __lookahead_start, __states, __symbols, ::std::marker::PhantomData::<(&())>)
}
63 => {
__reduce63(__action, __lookahead_start, __states, __symbols, ::std::marker::PhantomData::<(&())>)
}
64 => {
// __Pipeline = Pipeline => ActionFn(0);
let __sym0 = __pop_Variant9(__symbols);
let __start = __sym0.0.clone();
let __end = __sym0.2.clone();
let __nt = super::__action0::<>(__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() as usize;
let __next_state = __GOTO[__state * 33 + __nonterminal] - 1;
__states.push(__next_state);
None
}
fn __pop_Variant5<
'input,
>(
__symbols: &mut ::std::vec::Vec<(usize,__Symbol<'input>,usize)>
) -> (usize, Bare, usize)
{
match __symbols.pop().unwrap() {
(__l, __Symbol::Variant5(__v), __r) => (__l, __v, __r),
_ => panic!("symbol type mismatch")
}
}
fn __pop_Variant2<
'input,
>(
__symbols: &mut ::std::vec::Vec<(usize,__Symbol<'input>,usize)>
) -> (usize, Expression, usize)
{
match __symbols.pop().unwrap() {
(__l, __Symbol::Variant2(__v), __r) => (__l, __v, __r),
_ => panic!("symbol type mismatch")
}
}
fn __pop_Variant8<
'input,
>(
__symbols: &mut ::std::vec::Vec<(usize,__Symbol<'input>,usize)>
) -> (usize, Operator, usize)
{
match __symbols.pop().unwrap() {
(__l, __Symbol::Variant8(__v), __r) => (__l, __v, __r),
_ => panic!("symbol type mismatch")
}
}
fn __pop_Variant9<
'input,
>(
__symbols: &mut ::std::vec::Vec<(usize,__Symbol<'input>,usize)>
) -> (usize, Pipeline, usize)
{
match __symbols.pop().unwrap() {
(__l, __Symbol::Variant9(__v), __r) => (__l, __v, __r),
_ => panic!("symbol type mismatch")
}
}
fn __pop_Variant10<
'input,
>(
__symbols: &mut ::std::vec::Vec<(usize,__Symbol<'input>,usize)>
) -> (usize, Spanned<Operator>, usize)
{
match __symbols.pop().unwrap() {
(__l, __Symbol::Variant10(__v), __r) => (__l, __v, __r),
_ => panic!("symbol type mismatch")
}
}
fn __pop_Variant0<
'input,
>(
__symbols: &mut ::std::vec::Vec<(usize,__Symbol<'input>,usize)>
) -> (usize, SpannedToken<'input>, usize)
{
match __symbols.pop().unwrap() {
(__l, __Symbol::Variant0(__v), __r) => (__l, __v, __r),
_ => panic!("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),
_ => panic!("symbol type mismatch")
}
}
fn __pop_Variant6<
'input,
>(
__symbols: &mut ::std::vec::Vec<(usize,__Symbol<'input>,usize)>
) -> (usize, i64, usize)
{
match __symbols.pop().unwrap() {
(__l, __Symbol::Variant6(__v), __r) => (__l, __v, __r),
_ => panic!("symbol type mismatch")
}
}
fn __pop_Variant4<
'input,
>(
__symbols: &mut ::std::vec::Vec<(usize,__Symbol<'input>,usize)>
) -> (usize, usize, usize)
{
match __symbols.pop().unwrap() {
(__l, __Symbol::Variant4(__v), __r) => (__l, __v, __r),
_ => panic!("symbol type mismatch")
}
}
fn __pop_Variant3<
'input,
>(
__symbols: &mut ::std::vec::Vec<(usize,__Symbol<'input>,usize)>
) -> (usize, ::std::vec::Vec<Expression>, usize)
{
match __symbols.pop().unwrap() {
(__l, __Symbol::Variant3(__v), __r) => (__l, __v, __r),
_ => panic!("symbol type mismatch")
}
}
fn __pop_Variant1<
'input,
>(
__symbols: &mut ::std::vec::Vec<(usize,__Symbol<'input>,usize)>
) -> (usize, ::std::vec::Vec<SpannedToken<'input>>, usize)
{
match __symbols.pop().unwrap() {
(__l, __Symbol::Variant1(__v), __r) => (__l, __v, __r),
_ => panic!("symbol type mismatch")
}
}
pub(crate) fn __reduce0<
'input,
>(
__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 ())>,
) -> (usize, usize)
{
// ("???." <"member">) = "???.", "member" => ActionFn(53);
let __sym1 = __pop_Variant0(__symbols);
let __sym0 = __pop_Variant0(__symbols);
let __start = __sym0.0.clone();
let __end = __sym1.2.clone();
let __nt = super::__action53::<>(__sym0, __sym1);
__symbols.push((__start, __Symbol::Variant0(__nt), __end));
(2, 0)
}
pub(crate) fn __reduce1<
'input,
>(
__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 ())>,
) -> (usize, usize)
{
// ("???." <"member">)+ = "???.", "member" => ActionFn(64);
let __sym1 = __pop_Variant0(__symbols);
let __sym0 = __pop_Variant0(__symbols);
let __start = __sym0.0.clone();
let __end = __sym1.2.clone();
let __nt = super::__action64::<>(__sym0, __sym1);
__symbols.push((__start, __Symbol::Variant1(__nt), __end));
(2, 1)
}
pub(crate) fn __reduce2<
'input,
>(
__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 ())>,
) -> (usize, usize)
{
// ("???." <"member">)+ = ("???." <"member">)+, "???.", "member" => ActionFn(65);
let __sym2 = __pop_Variant0(__symbols);
let __sym1 = __pop_Variant0(__symbols);
let __sym0 = __pop_Variant1(__symbols);
let __start = __sym0.0.clone();
let __end = __sym2.2.clone();
let __nt = super::__action65::<>(__sym0, __sym1, __sym2);
__symbols.push((__start, __Symbol::Variant1(__nt), __end));
(3, 1)
}
pub(crate) fn __reduce3<
'input,
>(
__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 ())>,
) -> (usize, usize)
{
// ("|" <PipelineElement>) = "|", PipelineElement => ActionFn(60);
let __sym1 = __pop_Variant2(__symbols);
let __sym0 = __pop_Variant0(__symbols);
let __start = __sym0.0.clone();
let __end = __sym1.2.clone();
let __nt = super::__action60::<>(__sym0, __sym1);
__symbols.push((__start, __Symbol::Variant2(__nt), __end));
(2, 2)
}
pub(crate) fn __reduce4<
'input,
>(
__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 ())>,
) -> (usize, usize)
{
// ("|" <PipelineElement>)* = => ActionFn(58);
let __start = __symbols.last().map(|s| s.2.clone()).unwrap_or_default();
let __end = __lookahead_start.cloned().unwrap_or_else(|| __start.clone());
let __nt = super::__action58::<>(&__start, &__end);
__symbols.push((__start, __Symbol::Variant3(__nt), __end));
(0, 3)
}
pub(crate) fn __reduce5<
'input,
>(
__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 ())>,
) -> (usize, usize)
{
// ("|" <PipelineElement>)* = ("|" <PipelineElement>)+ => ActionFn(59);
let __sym0 = __pop_Variant3(__symbols);
let __start = __sym0.0.clone();
let __end = __sym0.2.clone();
let __nt = super::__action59::<>(__sym0);
__symbols.push((__start, __Symbol::Variant3(__nt), __end));
(1, 3)
}
pub(crate) fn __reduce6<
'input,
>(
__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 ())>,
) -> (usize, usize)
{
// ("|" <PipelineElement>)+ = "|", PipelineElement => ActionFn(66);
let __sym1 = __pop_Variant2(__symbols);
let __sym0 = __pop_Variant0(__symbols);
let __start = __sym0.0.clone();
let __end = __sym1.2.clone();
let __nt = super::__action66::<>(__sym0, __sym1);
__symbols.push((__start, __Symbol::Variant3(__nt), __end));
(2, 4)
}
pub(crate) fn __reduce7<
'input,
>(
__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 ())>,
) -> (usize, usize)
{
// ("|" <PipelineElement>)+ = ("|" <PipelineElement>)+, "|", PipelineElement => ActionFn(67);
let __sym2 = __pop_Variant2(__symbols);
let __sym1 = __pop_Variant0(__symbols);
let __sym0 = __pop_Variant3(__symbols);
let __start = __sym0.0.clone();
let __end = __sym2.2.clone();
let __nt = super::__action67::<>(__sym0, __sym1, __sym2);
__symbols.push((__start, __Symbol::Variant3(__nt), __end));
(3, 4)
}
pub(crate) fn __reduce8<
'input,
>(
__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 ())>,
) -> (usize, usize)
{
// (<CallArgument>) = CallArgument => ActionFn(56);
let __sym0 = __pop_Variant2(__symbols);
let __start = __sym0.0.clone();
let __end = __sym0.2.clone();
let __nt = super::__action56::<>(__sym0);
__symbols.push((__start, __Symbol::Variant2(__nt), __end));
(1, 5)
}
pub(crate) fn __reduce9<
'input,
>(
__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 ())>,
) -> (usize, usize)
{
// (<CallArgument>)+ = CallArgument => ActionFn(70);
let __sym0 = __pop_Variant2(__symbols);
let __start = __sym0.0.clone();
let __end = __sym0.2.clone();
let __nt = super::__action70::<>(__sym0);
__symbols.push((__start, __Symbol::Variant3(__nt), __end));
(1, 6)
}
pub(crate) fn __reduce10<
'input,
>(
__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 ())>,
) -> (usize, usize)
{
// (<CallArgument>)+ = (<CallArgument>)+, CallArgument => ActionFn(71);
let __sym1 = __pop_Variant2(__symbols);
let __sym0 = __pop_Variant3(__symbols);
let __start = __sym0.0.clone();
let __end = __sym1.2.clone();
let __nt = super::__action71::<>(__sym0, __sym1);
__symbols.push((__start, __Symbol::Variant3(__nt), __end));
(2, 6)
}
pub(crate) fn __reduce11<
'input,
>(
__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 ())>,
) -> (usize, usize)
{
// @L = => ActionFn(61);
let __start = __symbols.last().map(|s| s.2.clone()).unwrap_or_default();
let __end = __lookahead_start.cloned().unwrap_or_else(|| __start.clone());
let __nt = super::__action61::<>(&__start, &__end);
__symbols.push((__start, __Symbol::Variant4(__nt), __end));
(0, 7)
}
pub(crate) fn __reduce12<
'input,
>(
__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 ())>,
) -> (usize, usize)
{
// @R = => ActionFn(57);
let __start = __symbols.last().map(|s| s.2.clone()).unwrap_or_default();
let __end = __lookahead_start.cloned().unwrap_or_else(|| __start.clone());
let __nt = super::__action57::<>(&__start, &__end);
__symbols.push((__start, __Symbol::Variant4(__nt), __end));
(0, 8)
}
pub(crate) fn __reduce13<
'input,
>(
__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 ())>,
) -> (usize, usize)
{
// ArgumentExpression = Expression => ActionFn(23);
let __sym0 = __pop_Variant2(__symbols);
let __start = __sym0.0.clone();
let __end = __sym0.2.clone();
let __nt = super::__action23::<>(__sym0);
__symbols.push((__start, __Symbol::Variant2(__nt), __end));
(1, 9)
}
pub(crate) fn __reduce14<
'input,
>(
__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 ())>,
) -> (usize, usize)
{
// ArgumentExpression = BareExpression => ActionFn(24);
let __sym0 = __pop_Variant2(__symbols);
let __start = __sym0.0.clone();
let __end = __sym0.2.clone();
let __nt = super::__action24::<>(__sym0);
__symbols.push((__start, __Symbol::Variant2(__nt), __end));
(1, 9)
}
pub(crate) fn __reduce15<
'input,
>(
__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 ())>,
) -> (usize, usize)
{
// Bare = "bare" => ActionFn(34);
let __sym0 = __pop_Variant0(__symbols);
let __start = __sym0.0.clone();
let __end = __sym0.2.clone();
let __nt = super::__action34::<>(__sym0);
__symbols.push((__start, __Symbol::Variant5(__nt), __end));
(1, 10)
}
pub(crate) fn __reduce16<
'input,
>(
__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 ())>,
) -> (usize, usize)
{
// BareExpression = Bare => ActionFn(95);
let __sym0 = __pop_Variant5(__symbols);
let __start = __sym0.0.clone();
let __end = __sym0.2.clone();
let __nt = super::__action95::<>(__sym0);
__symbols.push((__start, __Symbol::Variant2(__nt), __end));
(1, 11)
}
pub(crate) fn __reduce17<
'input,
>(
__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 ())>,
) -> (usize, usize)
{
// Binary = ArgumentExpression, SpannedOperator, ArgumentExpression => ActionFn(96);
let __sym2 = __pop_Variant2(__symbols);
let __sym1 = __pop_Variant10(__symbols);
let __sym0 = __pop_Variant2(__symbols);
let __start = __sym0.0.clone();
let __end = __sym2.2.clone();
let __nt = super::__action96::<>(__sym0, __sym1, __sym2);
__symbols.push((__start, __Symbol::Variant2(__nt), __end));
(3, 12)
}
pub(crate) fn __reduce18<
'input,
>(
__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 ())>,
) -> (usize, usize)
{
// Block = "{", SingleExpression, "}" => ActionFn(97);
let __sym2 = __pop_Variant0(__symbols);
let __sym1 = __pop_Variant2(__symbols);
let __sym0 = __pop_Variant0(__symbols);
let __start = __sym0.0.clone();
let __end = __sym2.2.clone();
let __nt = super::__action97::<>(__sym0, __sym1, __sym2);
__symbols.push((__start, __Symbol::Variant2(__nt), __end));
(3, 13)
}
pub(crate) fn __reduce19<
'input,
>(
__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 ())>,
) -> (usize, usize)
{
// Block = "{", BareExpression, "}" => ActionFn(98);
let __sym2 = __pop_Variant0(__symbols);
let __sym1 = __pop_Variant2(__symbols);
let __sym0 = __pop_Variant0(__symbols);
let __start = __sym0.0.clone();
let __end = __sym2.2.clone();
let __nt = super::__action98::<>(__sym0, __sym1, __sym2);
__symbols.push((__start, __Symbol::Variant2(__nt), __end));
(3, 13)
}
pub(crate) fn __reduce20<
'input,
>(
__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 ())>,
) -> (usize, usize)
{
// Call = Expression, SingleCallArgument => ActionFn(99);
let __sym1 = __pop_Variant2(__symbols);
let __sym0 = __pop_Variant2(__symbols);
let __start = __sym0.0.clone();
let __end = __sym1.2.clone();
let __nt = super::__action99::<>(__sym0, __sym1);
__symbols.push((__start, __Symbol::Variant2(__nt), __end));
(2, 14)
}
pub(crate) fn __reduce21<
'input,
>(
__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 ())>,
) -> (usize, usize)
{
// Call = Expression, CallArgument, (<CallArgument>)+ => ActionFn(100);
let __sym2 = __pop_Variant3(__symbols);
let __sym1 = __pop_Variant2(__symbols);
let __sym0 = __pop_Variant2(__symbols);
let __start = __sym0.0.clone();
let __end = __sym2.2.clone();
let __nt = super::__action100::<>(__sym0, __sym1, __sym2);
__symbols.push((__start, __Symbol::Variant2(__nt), __end));
(3, 14)
}
pub(crate) fn __reduce22<
'input,
>(
__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 ())>,
) -> (usize, usize)
{
// Call = BareExpression, SingleCallArgument => ActionFn(101);
let __sym1 = __pop_Variant2(__symbols);
let __sym0 = __pop_Variant2(__symbols);
let __start = __sym0.0.clone();
let __end = __sym1.2.clone();
let __nt = super::__action101::<>(__sym0, __sym1);
__symbols.push((__start, __Symbol::Variant2(__nt), __end));
(2, 14)
}
pub(crate) fn __reduce23<
'input,
>(
__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 ())>,
) -> (usize, usize)
{
// Call = BareExpression, CallArgument, (<CallArgument>)+ => ActionFn(102);
let __sym2 = __pop_Variant3(__symbols);
let __sym1 = __pop_Variant2(__symbols);
let __sym0 = __pop_Variant2(__symbols);
let __start = __sym0.0.clone();
let __end = __sym2.2.clone();
let __nt = super::__action102::<>(__sym0, __sym1, __sym2);
__symbols.push((__start, __Symbol::Variant2(__nt), __end));
(3, 14)
}
pub(crate) fn __reduce24<
'input,
>(
__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 ())>,
) -> (usize, usize)
{
// CallArgument = ArgumentExpression => ActionFn(25);
let __sym0 = __pop_Variant2(__symbols);
let __start = __sym0.0.clone();
let __end = __sym0.2.clone();
let __nt = super::__action25::<>(__sym0);
__symbols.push((__start, __Symbol::Variant2(__nt), __end));
(1, 15)
}
pub(crate) fn __reduce25<
'input,
>(
__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 ())>,
) -> (usize, usize)
{
// CallArgument = Flag => ActionFn(26);
let __sym0 = __pop_Variant2(__symbols);
let __start = __sym0.0.clone();
let __end = __sym0.2.clone();
let __nt = super::__action26::<>(__sym0);
__symbols.push((__start, __Symbol::Variant2(__nt), __end));
(1, 15)
}
pub(crate) fn __reduce26<
'input,
>(
__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 ())>,
) -> (usize, usize)
{
// Expression = MemberHeadExpression => ActionFn(21);
let __sym0 = __pop_Variant2(__symbols);
let __start = __sym0.0.clone();
let __end = __sym0.2.clone();
let __nt = super::__action21::<>(__sym0);
__symbols.push((__start, __Symbol::Variant2(__nt), __end));
(1, 16)
}
pub(crate) fn __reduce27<
'input,
>(
__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 ())>,
) -> (usize, usize)
{
// Expression = MemberHeadExpression, ("???." <"member">)+ => ActionFn(103);
let __sym1 = __pop_Variant1(__symbols);
let __sym0 = __pop_Variant2(__symbols);
let __start = __sym0.0.clone();
let __end = __sym1.2.clone();
let __nt = super::__action103::<>(__sym0, __sym1);
__symbols.push((__start, __Symbol::Variant2(__nt), __end));
(2, 16)
}
pub(crate) fn __reduce28<
'input,
>(
__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 ())>,
) -> (usize, usize)
{
// Flag = "-", Bare => ActionFn(104);
let __sym1 = __pop_Variant5(__symbols);
let __sym0 = __pop_Variant0(__symbols);
let __start = __sym0.0.clone();
let __end = __sym1.2.clone();
let __nt = super::__action104::<>(__sym0, __sym1);
__symbols.push((__start, __Symbol::Variant2(__nt), __end));
(2, 17)
}
pub(crate) fn __reduce29<
'input,
>(
__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 ())>,
) -> (usize, usize)
{
// Flag = "--", Bare => ActionFn(105);
let __sym1 = __pop_Variant5(__symbols);
let __sym0 = __pop_Variant0(__symbols);
let __start = __sym0.0.clone();
let __end = __sym1.2.clone();
let __nt = super::__action105::<>(__sym0, __sym1);
__symbols.push((__start, __Symbol::Variant2(__nt), __end));
(2, 17)
}
pub(crate) fn __reduce30<
'input,
>(
__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 ())>,
) -> (usize, usize)
{
// Int = "num" => ActionFn(44);
let __sym0 = __pop_Variant0(__symbols);
let __start = __sym0.0.clone();
let __end = __sym0.2.clone();
let __nt = super::__action44::<>(__sym0);
__symbols.push((__start, __Symbol::Variant6(__nt), __end));
(1, 18)
}
pub(crate) fn __reduce31<
'input,
>(
__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 ())>,
) -> (usize, usize)
{
// LeafExpression = String => ActionFn(5);
let __sym0 = __pop_Variant2(__symbols);
let __start = __sym0.0.clone();
let __end = __sym0.2.clone();
let __nt = super::__action5::<>(__sym0);
__symbols.push((__start, __Symbol::Variant2(__nt), __end));
(1, 19)
}
pub(crate) fn __reduce32<
'input,
>(
__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 ())>,
) -> (usize, usize)
{
// LeafExpression = Int => ActionFn(106);
let __sym0 = __pop_Variant6(__symbols);
let __start = __sym0.0.clone();
let __end = __sym0.2.clone();
let __nt = super::__action106::<>(__sym0);
__symbols.push((__start, __Symbol::Variant2(__nt), __end));
(1, 19)
}
pub(crate) fn __reduce33<
'input,
>(
__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 ())>,
) -> (usize, usize)
{
// LeafExpression = UnitsNum => ActionFn(7);
let __sym0 = __pop_Variant2(__symbols);
let __start = __sym0.0.clone();
let __end = __sym0.2.clone();
let __nt = super::__action7::<>(__sym0);
__symbols.push((__start, __Symbol::Variant2(__nt), __end));
(1, 19)
}
pub(crate) fn __reduce34<
'input,
>(
__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 ())>,
) -> (usize, usize)
{
// LeafExpression = Var => ActionFn(8);
let __sym0 = __pop_Variant2(__symbols);
let __start = __sym0.0.clone();
let __end = __sym0.2.clone();
let __nt = super::__action8::<>(__sym0);
__symbols.push((__start, __Symbol::Variant2(__nt), __end));
(1, 19)
}
pub(crate) fn __reduce35<
'input,
>(
__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 ())>,
) -> (usize, usize)
{
// Member = "member" => ActionFn(35);
let __sym0 = __pop_Variant0(__symbols);
let __start = __sym0.0.clone();
let __end = __sym0.2.clone();
let __nt = super::__action35::<>(__sym0);
__symbols.push((__start, __Symbol::Variant7(__nt), __end));
(1, 20)
}
pub(crate) fn __reduce36<
'input,
>(
__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 ())>,
) -> (usize, usize)
{
// Member = "dqmember" => ActionFn(36);
let __sym0 = __pop_Variant0(__symbols);
let __start = __sym0.0.clone();
let __end = __sym0.2.clone();
let __nt = super::__action36::<>(__sym0);
__symbols.push((__start, __Symbol::Variant7(__nt), __end));
(1, 20)
}
pub(crate) fn __reduce37<
'input,
>(
__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 ())>,
) -> (usize, usize)
{
// Member = "sqmember" => ActionFn(37);
let __sym0 = __pop_Variant0(__symbols);
let __start = __sym0.0.clone();
let __end = __sym0.2.clone();
let __nt = super::__action37::<>(__sym0);
__symbols.push((__start, __Symbol::Variant7(__nt), __end));
(1, 20)
}
pub(crate) fn __reduce38<
'input,
>(
__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 ())>,
) -> (usize, usize)
{
// MemberHeadExpression = LeafExpression => ActionFn(16);
let __sym0 = __pop_Variant2(__symbols);
let __start = __sym0.0.clone();
let __end = __sym0.2.clone();
let __nt = super::__action16::<>(__sym0);
__symbols.push((__start, __Symbol::Variant2(__nt), __end));
(1, 21)
}
pub(crate) fn __reduce39<
'input,
>(
__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 ())>,
) -> (usize, usize)
{
// MemberHeadExpression = Block => ActionFn(17);
let __sym0 = __pop_Variant2(__symbols);
let __start = __sym0.0.clone();
let __end = __sym0.2.clone();
let __nt = super::__action17::<>(__sym0);
__symbols.push((__start, __Symbol::Variant2(__nt), __end));
(1, 21)
}
pub(crate) fn __reduce40<
'input,
>(
__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 ())>,
) -> (usize, usize)
{
// MemberHeadExpression = "(", Call, ")" => ActionFn(107);
let __sym2 = __pop_Variant0(__symbols);
let __sym1 = __pop_Variant2(__symbols);
let __sym0 = __pop_Variant0(__symbols);
let __start = __sym0.0.clone();
let __end = __sym2.2.clone();
let __nt = super::__action107::<>(__sym0, __sym1, __sym2);
__symbols.push((__start, __Symbol::Variant2(__nt), __end));
(3, 21)
}
pub(crate) fn __reduce41<
'input,
>(
__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 ())>,
) -> (usize, usize)
{
// MemberHeadExpression = "(", BareExpression, ")" => ActionFn(108);
let __sym2 = __pop_Variant0(__symbols);
let __sym1 = __pop_Variant2(__symbols);
let __sym0 = __pop_Variant0(__symbols);
let __start = __sym0.0.clone();
let __end = __sym2.2.clone();
let __nt = super::__action108::<>(__sym0, __sym1, __sym2);
__symbols.push((__start, __Symbol::Variant2(__nt), __end));
(3, 21)
}
pub(crate) fn __reduce42<
'input,
>(
__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 ())>,
) -> (usize, usize)
{
// MemberHeadExpression = "(", Binary, ")" => ActionFn(109);
let __sym2 = __pop_Variant0(__symbols);
let __sym1 = __pop_Variant2(__symbols);
let __sym0 = __pop_Variant0(__symbols);
let __start = __sym0.0.clone();
let __end = __sym2.2.clone();
let __nt = super::__action109::<>(__sym0, __sym1, __sym2);
__symbols.push((__start, __Symbol::Variant2(__nt), __end));
(3, 21)
}
pub(crate) fn __reduce43<
'input,
>(
__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 ())>,
) -> (usize, usize)
{
// Operator = "==" => ActionFn(38);
let __sym0 = __pop_Variant0(__symbols);
let __start = __sym0.0.clone();
let __end = __sym0.2.clone();
let __nt = super::__action38::<>(__sym0);
__symbols.push((__start, __Symbol::Variant8(__nt), __end));
(1, 22)
}
pub(crate) fn __reduce44<
'input,
>(
__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 ())>,
) -> (usize, usize)
{
// Operator = "!=" => ActionFn(39);
let __sym0 = __pop_Variant0(__symbols);
let __start = __sym0.0.clone();
let __end = __sym0.2.clone();
let __nt = super::__action39::<>(__sym0);
__symbols.push((__start, __Symbol::Variant8(__nt), __end));
(1, 22)
}
pub(crate) fn __reduce45<
'input,
>(
__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 ())>,
) -> (usize, usize)
{
// Operator = "<" => ActionFn(40);
let __sym0 = __pop_Variant0(__symbols);
let __start = __sym0.0.clone();
let __end = __sym0.2.clone();
let __nt = super::__action40::<>(__sym0);
__symbols.push((__start, __Symbol::Variant8(__nt), __end));
(1, 22)
}
pub(crate) fn __reduce46<
'input,
>(
__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 ())>,
) -> (usize, usize)
{
// Operator = ">" => ActionFn(41);
let __sym0 = __pop_Variant0(__symbols);
let __start = __sym0.0.clone();
let __end = __sym0.2.clone();
let __nt = super::__action41::<>(__sym0);
__symbols.push((__start, __Symbol::Variant8(__nt), __end));
(1, 22)
}
pub(crate) fn __reduce47<
'input,
>(
__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 ())>,
) -> (usize, usize)
{
// Operator = "<=" => ActionFn(42);
let __sym0 = __pop_Variant0(__symbols);
let __start = __sym0.0.clone();
let __end = __sym0.2.clone();
let __nt = super::__action42::<>(__sym0);
__symbols.push((__start, __Symbol::Variant8(__nt), __end));
(1, 22)
}
pub(crate) fn __reduce48<
'input,
>(
__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 ())>,
) -> (usize, usize)
{
// Operator = ">=" => ActionFn(43);
let __sym0 = __pop_Variant0(__symbols);
let __start = __sym0.0.clone();
let __end = __sym0.2.clone();
let __nt = super::__action43::<>(__sym0);
__symbols.push((__start, __Symbol::Variant8(__nt), __end));
(1, 22)
}
pub(crate) fn __reduce49<
'input,
>(
__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 ())>,
) -> (usize, usize)
{
// Pipeline = PipelineElement => ActionFn(110);
let __sym0 = __pop_Variant2(__symbols);
let __start = __sym0.0.clone();
let __end = __sym0.2.clone();
let __nt = super::__action110::<>(__sym0);
__symbols.push((__start, __Symbol::Variant9(__nt), __end));
(1, 23)
}
pub(crate) fn __reduce50<
'input,
>(
__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 ())>,
) -> (usize, usize)
{
// Pipeline = PipelineElement, ("|" <PipelineElement>)+ => ActionFn(111);
let __sym1 = __pop_Variant3(__symbols);
let __sym0 = __pop_Variant2(__symbols);
let __start = __sym0.0.clone();
let __end = __sym1.2.clone();
let __nt = super::__action111::<>(__sym0, __sym1);
__symbols.push((__start, __Symbol::Variant9(__nt), __end));
(2, 23)
}
pub(crate) fn __reduce51<
'input,
>(
__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 ())>,
) -> (usize, usize)
{
// PipelineElement = BareExpression => ActionFn(112);
let __sym0 = __pop_Variant2(__symbols);
let __start = __sym0.0.clone();
let __end = __sym0.2.clone();
let __nt = super::__action112::<>(__sym0);
__symbols.push((__start, __Symbol::Variant2(__nt), __end));
(1, 24)
}
pub(crate) fn __reduce52<
'input,
>(
__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 ())>,
) -> (usize, usize)
{
// PipelineElement = SingleExpression => ActionFn(4);
let __sym0 = __pop_Variant2(__symbols);
let __start = __sym0.0.clone();
let __end = __sym0.2.clone();
let __nt = super::__action4::<>(__sym0);
__symbols.push((__start, __Symbol::Variant2(__nt), __end));
(1, 24)
}
pub(crate) fn __reduce53<
'input,
>(
__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 ())>,
) -> (usize, usize)
{
// SingleCallArgument = CallArgument => ActionFn(27);
let __sym0 = __pop_Variant2(__symbols);
let __start = __sym0.0.clone();
let __end = __sym0.2.clone();
let __nt = super::__action27::<>(__sym0);
__symbols.push((__start, __Symbol::Variant2(__nt), __end));
(1, 25)
}
pub(crate) fn __reduce54<
'input,
>(
__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 ())>,
) -> (usize, usize)
{
// SingleCallArgument = Binary => ActionFn(28);
let __sym0 = __pop_Variant2(__symbols);
let __start = __sym0.0.clone();
let __end = __sym0.2.clone();
let __nt = super::__action28::<>(__sym0);
__symbols.push((__start, __Symbol::Variant2(__nt), __end));
(1, 25)
}
pub(crate) fn __reduce55<
'input,
>(
__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 ())>,
) -> (usize, usize)
{
// SingleExpression = Expression => ActionFn(29);
let __sym0 = __pop_Variant2(__symbols);
let __start = __sym0.0.clone();
let __end = __sym0.2.clone();
let __nt = super::__action29::<>(__sym0);
__symbols.push((__start, __Symbol::Variant2(__nt), __end));
(1, 26)
}
pub(crate) fn __reduce56<
'input,
>(
__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 ())>,
) -> (usize, usize)
{
// SingleExpression = Call => ActionFn(30);
let __sym0 = __pop_Variant2(__symbols);
let __start = __sym0.0.clone();
let __end = __sym0.2.clone();
let __nt = super::__action30::<>(__sym0);
__symbols.push((__start, __Symbol::Variant2(__nt), __end));
(1, 26)
}
pub(crate) fn __reduce57<
'input,
>(
__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 ())>,
) -> (usize, usize)
{
// SingleExpression = Binary => ActionFn(31);
let __sym0 = __pop_Variant2(__symbols);
let __start = __sym0.0.clone();
let __end = __sym0.2.clone();
let __nt = super::__action31::<>(__sym0);
__symbols.push((__start, __Symbol::Variant2(__nt), __end));
(1, 26)
}
pub(crate) fn __reduce58<
'input,
>(
__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 ())>,
) -> (usize, usize)
{
// SpannedOperator = Operator => ActionFn(113);
let __sym0 = __pop_Variant8(__symbols);
let __start = __sym0.0.clone();
let __end = __sym0.2.clone();
let __nt = super::__action113::<>(__sym0);
__symbols.push((__start, __Symbol::Variant10(__nt), __end));
(1, 27)
}
pub(crate) fn __reduce59<
'input,
>(
__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 ())>,
) -> (usize, usize)
{
// String = "sqstring" => ActionFn(114);
let __sym0 = __pop_Variant0(__symbols);
let __start = __sym0.0.clone();
let __end = __sym0.2.clone();
let __nt = super::__action114::<>(__sym0);
__symbols.push((__start, __Symbol::Variant2(__nt), __end));
(1, 28)
}
pub(crate) fn __reduce60<
'input,
>(
__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 ())>,
) -> (usize, usize)
{
// String = "dqstring" => ActionFn(115);
let __sym0 = __pop_Variant0(__symbols);
let __start = __sym0.0.clone();
let __end = __sym0.2.clone();
let __nt = super::__action115::<>(__sym0);
__symbols.push((__start, __Symbol::Variant2(__nt), __end));
(1, 28)
}
pub(crate) fn __reduce61<
'input,
>(
__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 ())>,
) -> (usize, usize)
{
// UnitsNum = Int, "unit" => ActionFn(116);
let __sym1 = __pop_Variant0(__symbols);
let __sym0 = __pop_Variant6(__symbols);
let __start = __sym0.0.clone();
let __end = __sym1.2.clone();
let __nt = super::__action116::<>(__sym0, __sym1);
__symbols.push((__start, __Symbol::Variant2(__nt), __end));
(2, 29)
}
pub(crate) fn __reduce62<
'input,
>(
__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 ())>,
) -> (usize, usize)
{
// Var = "$", "variable" => ActionFn(117);
let __sym1 = __pop_Variant0(__symbols);
let __sym0 = __pop_Variant0(__symbols);
let __start = __sym0.0.clone();
let __end = __sym1.2.clone();
let __nt = super::__action117::<>(__sym0, __sym1);
__symbols.push((__start, __Symbol::Variant2(__nt), __end));
(2, 30)
}
pub(crate) fn __reduce63<
'input,
>(
__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 ())>,
) -> (usize, usize)
{
// __Call = Call => ActionFn(1);
let __sym0 = __pop_Variant2(__symbols);
let __start = __sym0.0.clone();
let __end = __sym0.2.clone();
let __nt = super::__action1::<>(__sym0);
__symbols.push((__start, __Symbol::Variant2(__nt), __end));
(1, 31)
}
}
pub use self::__parse__Pipeline::PipelineParser;
fn __action0<
'input,
>(
(_, __0, _): (usize, Pipeline, usize),
) -> Pipeline
{
(__0)
}
fn __action1<
'input,
>(
(_, __0, _): (usize, Expression, usize),
) -> Expression
{
(__0)
}
fn __action2<
'input,
>(
(_, l, _): (usize, usize, usize),
(_, first, _): (usize, Expression, usize),
(_, rest, _): (usize, ::std::vec::Vec<Expression>, usize),
(_, r, _): (usize, usize, usize),
) -> Pipeline
{
Pipeline::from_parts(first, rest, l, r)
}
fn __action3<
'input,
>(
(_, l, _): (usize, usize, usize),
(_, bare, _): (usize, Expression, usize),
(_, r, _): (usize, usize, usize),
) -> Expression
{
ExpressionBuilder::spanned_call((bare, vec![]), l, r)
}
fn __action4<
'input,
>(
(_, __0, _): (usize, Expression, usize),
) -> Expression
{
__0
}
fn __action5<
'input,
>(
(_, __0, _): (usize, Expression, usize),
) -> Expression
{
(__0)
}
fn __action6<
'input,
>(
(_, l, _): (usize, usize, usize),
(_, int, _): (usize, i64, usize),
(_, r, _): (usize, usize, usize),
) -> Expression
{
ExpressionBuilder::spanned_int(int, l, r)
}
fn __action7<
'input,
>(
(_, __0, _): (usize, Expression, usize),
) -> Expression
{
(__0)
}
fn __action8<
'input,
>(
(_, __0, _): (usize, Expression, usize),
) -> Expression
{
(__0)
}
fn __action9<
'input,
>(
(_, l, _): (usize, usize, usize),
(_, expr, _): (usize, Expression, usize),
(_, rest, _): (usize, Expression, usize),
(_, r, _): (usize, usize, usize),
) -> Expression
{
ExpressionBuilder::spanned_call((expr, vec![rest]), l, r)
}
fn __action10<
'input,
>(
(_, l, _): (usize, usize, usize),
(_, expr, _): (usize, Expression, usize),
(_, first, _): (usize, Expression, usize),
(_, rest, _): (usize, ::std::vec::Vec<Expression>, usize),
(_, r, _): (usize, usize, usize),
) -> Expression
{
ExpressionBuilder::spanned_call((expr, { let mut rest = rest; let mut v = vec![first]; v.append(&mut rest); v }), l, r)
}
fn __action11<
'input,
>(
(_, l, _): (usize, usize, usize),
(_, expr, _): (usize, Expression, usize),
(_, rest, _): (usize, Expression, usize),
(_, r, _): (usize, usize, usize),
) -> Expression
{
ExpressionBuilder::spanned_call((expr, vec![rest]), l, r)
}
fn __action12<
'input,
>(
(_, l, _): (usize, usize, usize),
(_, expr, _): (usize, Expression, usize),
(_, first, _): (usize, Expression, usize),
(_, rest, _): (usize, ::std::vec::Vec<Expression>, usize),
(_, r, _): (usize, usize, usize),
) -> Expression
{
ExpressionBuilder::spanned_call((expr, { let mut v = vec![first]; let mut rest = rest; v.append(&mut rest); v }), l, r)
}
fn __action13<
'input,
>(
(_, l, _): (usize, usize, usize),
(_, left, _): (usize, Expression, usize),
(_, op, _): (usize, Spanned<Operator>, usize),
(_, right, _): (usize, Expression, usize),
(_, r, _): (usize, usize, usize),
) -> Expression
{
ExpressionBuilder::spanned_binary((left, op, right), l, r)
}
fn __action14<
'input,
>(
(_, l, _): (usize, usize, usize),
(_, _, _): (usize, SpannedToken<'input>, usize),
(_, expr, _): (usize, Expression, usize),
(_, _, _): (usize, SpannedToken<'input>, usize),
(_, r, _): (usize, usize, usize),
) -> Expression
{
ExpressionBuilder::spanned_block(expr, l, r)
}
fn __action15<
'input,
>(
(_, l, _): (usize, usize, usize),
(_, _, _): (usize, SpannedToken<'input>, usize),
(_, bare, _): (usize, Expression, usize),
(_, _, _): (usize, SpannedToken<'input>, usize),
(_, r, _): (usize, usize, usize),
) -> Expression
{
{
let call = ExpressionBuilder::spanned_call(bare.clone(), bare.span.start, bare.span.end);
ExpressionBuilder::spanned_block(call, l, r)
}
}
fn __action16<
'input,
>(
(_, __0, _): (usize, Expression, usize),
) -> Expression
{
__0
}
fn __action17<
'input,
>(
(_, __0, _): (usize, Expression, usize),
) -> Expression
{
__0
}
fn __action18<
'input,
>(
(_, l, _): (usize, usize, usize),
(_, _, _): (usize, SpannedToken<'input>, usize),
(_, expr, _): (usize, Expression, usize),
(_, _, _): (usize, SpannedToken<'input>, usize),
(_, r, _): (usize, usize, usize),
) -> Expression
{
ExpressionBuilder::spanned_call(expr, l, r)
}
fn __action19<
'input,
>(
(_, l, _): (usize, usize, usize),
(_, _, _): (usize, SpannedToken<'input>, usize),
(_, expr, _): (usize, Expression, usize),
(_, _, _): (usize, SpannedToken<'input>, usize),
(_, r, _): (usize, usize, usize),
) -> Expression
{
ExpressionBuilder::spanned_call((expr, vec![]), l, r)
}
fn __action20<
'input,
>(
(_, l, _): (usize, usize, usize),
(_, _, _): (usize, SpannedToken<'input>, usize),
(_, expr, _): (usize, Expression, usize),
(_, _, _): (usize, SpannedToken<'input>, usize),
(_, r, _): (usize, usize, usize),
) -> Expression
{
ExpressionBuilder::spanned_parens(expr, l, r)
}
fn __action21<
'input,
>(
(_, __0, _): (usize, Expression, usize),
) -> Expression
{
__0
}
fn __action22<
'input,
>(
(_, l, _): (usize, usize, usize),
(_, expr, _): (usize, Expression, usize),
(_, rest, _): (usize, ::std::vec::Vec<SpannedToken<'input>>, usize),
(_, r, _): (usize, usize, usize),
) -> Expression
{
ExpressionBuilder::spanned_path((expr, rest.iter().map(|i| i.to_spanned_string()).collect()), l, r)
}
fn __action23<
'input,
>(
(_, __0, _): (usize, Expression, usize),
) -> Expression
{
(__0)
}
fn __action24<
'input,
>(
(_, __0, _): (usize, Expression, usize),
) -> Expression
{
(__0)
}
fn __action25<
'input,
>(
(_, __0, _): (usize, Expression, usize),
) -> Expression
{
(__0)
}
fn __action26<
'input,
>(
(_, __0, _): (usize, Expression, usize),
) -> Expression
{
(__0)
}
fn __action27<
'input,
>(
(_, __0, _): (usize, Expression, usize),
) -> Expression
{
(__0)
}
fn __action28<
'input,
>(
(_, __0, _): (usize, Expression, usize),
) -> Expression
{
(__0)
}
fn __action29<
'input,
>(
(_, __0, _): (usize, Expression, usize),
) -> Expression
{
(__0)
}
fn __action30<
'input,
>(
(_, __0, _): (usize, Expression, usize),
) -> Expression
{
(__0)
}
fn __action31<
'input,
>(
(_, __0, _): (usize, Expression, usize),
) -> Expression
{
(__0)
}
fn __action32<
'input,
>(
(_, l, _): (usize, usize, usize),
(_, bare, _): (usize, Bare, usize),
(_, r, _): (usize, usize, usize),
) -> Expression
{
ExpressionBuilder::spanned_bare(bare, l, r)
}
fn __action33<
'input,
>(
(_, l, _): (usize, usize, usize),
(_, op, _): (usize, Operator, usize),
(_, r, _): (usize, usize, usize),
) -> Spanned<Operator>
{
Spanned::from_item(op, Span::from((l, r)))
}
fn __action34<
'input,
>(
(_, head, _): (usize, SpannedToken<'input>, usize),
) -> Bare
{
Bare::from_string(head.as_slice())
}
fn __action35<
'input,
>(
(_, __0, _): (usize, SpannedToken<'input>, usize),
) -> String
{
__0.to_string()
}
fn __action36<
'input,
>(
(_, __0, _): (usize, SpannedToken<'input>, usize),
) -> String
{
__0.to_string()
}
fn __action37<
'input,
>(
(_, __0, _): (usize, SpannedToken<'input>, usize),
) -> String
{
__0.to_string()
}
fn __action38<
'input,
>(
(_, __0, _): (usize, SpannedToken<'input>, usize),
) -> Operator
{
Operator::Equal
}
fn __action39<
'input,
>(
(_, __0, _): (usize, SpannedToken<'input>, usize),
) -> Operator
{
Operator::NotEqual
}
fn __action40<
'input,
>(
(_, __0, _): (usize, SpannedToken<'input>, usize),
) -> Operator
{
Operator::LessThan
}
fn __action41<
'input,
>(
(_, __0, _): (usize, SpannedToken<'input>, usize),
) -> Operator
{
Operator::GreaterThan
}
fn __action42<
'input,
>(
(_, __0, _): (usize, SpannedToken<'input>, usize),
) -> Operator
{
Operator::LessThanOrEqual
}
fn __action43<
'input,
>(
(_, __0, _): (usize, SpannedToken<'input>, usize),
) -> Operator
{
Operator::GreaterThanOrEqual
}
fn __action44<
'input,
>(
(_, n, _): (usize, SpannedToken<'input>, usize),
) -> i64
{
i64::from_str(n.as_slice()).unwrap()
}
fn __action45<
'input,
>(
(_, l, _): (usize, usize, usize),
(_, num, _): (usize, i64, usize),
(_, unit, _): (usize, SpannedToken<'input>, usize),
(_, r, _): (usize, usize, usize),
) -> Expression
{
ExpressionBuilder::spanned_unit((num, Unit::from_str(unit.as_slice()).unwrap()), l, r)
}
fn __action46<
'input,
>(
(_, l, _): (usize, usize, usize),
(_, s, _): (usize, SpannedToken<'input>, usize),
(_, r, _): (usize, usize, usize),
) -> Expression
{
ExpressionBuilder::spanned_string(&s.as_slice()[1..(s.as_slice().len() - 1)], l, r)
}
fn __action47<
'input,
>(
(_, l, _): (usize, usize, usize),
(_, s, _): (usize, SpannedToken<'input>, usize),
(_, r, _): (usize, usize, usize),
) -> Expression
{
ExpressionBuilder::spanned_string(&s.as_slice()[1..(s.as_slice().len() - 1)], l, r)
}
fn __action48<
'input,
>(
(_, l, _): (usize, usize, usize),
(_, _, _): (usize, SpannedToken<'input>, usize),
(_, b, _): (usize, Bare, usize),
(_, r, _): (usize, usize, usize),
) -> Expression
{
ExpressionBuilder::spanned_shorthand(b.to_string(), l, r)
}
fn __action49<
'input,
>(
(_, l, _): (usize, usize, usize),
(_, _, _): (usize, SpannedToken<'input>, usize),
(_, b, _): (usize, Bare, usize),
(_, r, _): (usize, usize, usize),
) -> Expression
{
ExpressionBuilder::spanned_flag(b.to_string(), l, r)
}
fn __action50<
'input,
>(
(_, l, _): (usize, usize, usize),
(_, _, _): (usize, SpannedToken<'input>, usize),
(_, v, _): (usize, SpannedToken<'input>, usize),
(_, r, _): (usize, usize, usize),
) -> Expression
{
ExpressionBuilder::spanned_var(v.as_slice(), l, r)
}
fn __action51<
'input,
>(
(_, __0, _): (usize, SpannedToken<'input>, usize),
) -> ::std::vec::Vec<SpannedToken<'input>>
{
vec![__0]
}
fn __action52<
'input,
>(
(_, v, _): (usize, ::std::vec::Vec<SpannedToken<'input>>, usize),
(_, e, _): (usize, SpannedToken<'input>, usize),
) -> ::std::vec::Vec<SpannedToken<'input>>
{
{ let mut v = v; v.push(e); v }
}
fn __action53<
'input,
>(
(_, _, _): (usize, SpannedToken<'input>, usize),
(_, __0, _): (usize, SpannedToken<'input>, usize),
) -> SpannedToken<'input>
{
(__0)
}
fn __action54<
'input,
>(
(_, __0, _): (usize, Expression, usize),
) -> ::std::vec::Vec<Expression>
{
vec![__0]
}
fn __action55<
'input,
>(
(_, v, _): (usize, ::std::vec::Vec<Expression>, usize),
(_, e, _): (usize, Expression, usize),
) -> ::std::vec::Vec<Expression>
{
{ let mut v = v; v.push(e); v }
}
fn __action56<
'input,
>(
(_, __0, _): (usize, Expression, usize),
) -> Expression
{
(__0)
}
fn __action57<
'input,
>(
__lookbehind: &usize,
__lookahead: &usize,
) -> usize
{
__lookbehind.clone()
}
fn __action58<
'input,
>(
__lookbehind: &usize,
__lookahead: &usize,
) -> ::std::vec::Vec<Expression>
{
vec![]
}
fn __action59<
'input,
>(
(_, v, _): (usize, ::std::vec::Vec<Expression>, usize),
) -> ::std::vec::Vec<Expression>
{
v
}
fn __action60<
'input,
>(
(_, _, _): (usize, SpannedToken<'input>, usize),
(_, __0, _): (usize, Expression, usize),
) -> Expression
{
(__0)
}
fn __action61<
'input,
>(
__lookbehind: &usize,
__lookahead: &usize,
) -> usize
{
__lookahead.clone()
}
fn __action62<
'input,
>(
(_, __0, _): (usize, Expression, usize),
) -> ::std::vec::Vec<Expression>
{
vec![__0]
}
fn __action63<
'input,
>(
(_, v, _): (usize, ::std::vec::Vec<Expression>, usize),
(_, e, _): (usize, Expression, usize),
) -> ::std::vec::Vec<Expression>
{
{ let mut v = v; v.push(e); v }
}
fn __action64<
'input,
>(
__0: (usize, SpannedToken<'input>, usize),
__1: (usize, SpannedToken<'input>, usize),
) -> ::std::vec::Vec<SpannedToken<'input>>
{
let __start0 = __0.0.clone();
let __end0 = __1.2.clone();
let __temp0 = __action53(
__0,
__1,
);
let __temp0 = (__start0, __temp0, __end0);
__action51(
__temp0,
)
}
fn __action65<
'input,
>(
__0: (usize, ::std::vec::Vec<SpannedToken<'input>>, usize),
__1: (usize, SpannedToken<'input>, usize),
__2: (usize, SpannedToken<'input>, usize),
) -> ::std::vec::Vec<SpannedToken<'input>>
{
let __start0 = __1.0.clone();
let __end0 = __2.2.clone();
let __temp0 = __action53(
__1,
__2,
);
let __temp0 = (__start0, __temp0, __end0);
__action52(
__0,
__temp0,
)
}
fn __action66<
'input,
>(
__0: (usize, SpannedToken<'input>, usize),
__1: (usize, Expression, usize),
) -> ::std::vec::Vec<Expression>
{
let __start0 = __0.0.clone();
let __end0 = __1.2.clone();
let __temp0 = __action60(
__0,
__1,
);
let __temp0 = (__start0, __temp0, __end0);
__action62(
__temp0,
)
}
fn __action67<
'input,
>(
__0: (usize, ::std::vec::Vec<Expression>, usize),
__1: (usize, SpannedToken<'input>, usize),
__2: (usize, Expression, usize),
) -> ::std::vec::Vec<Expression>
{
let __start0 = __1.0.clone();
let __end0 = __2.2.clone();
let __temp0 = __action60(
__1,
__2,
);
let __temp0 = (__start0, __temp0, __end0);
__action63(
__0,
__temp0,
)
}
fn __action68<
'input,
>(
__0: (usize, usize, usize),
__1: (usize, Expression, usize),
__2: (usize, usize, usize),
) -> Pipeline
{
let __start0 = __1.2.clone();
let __end0 = __2.0.clone();
let __temp0 = __action58(
&__start0,
&__end0,
);
let __temp0 = (__start0, __temp0, __end0);
__action2(
__0,
__1,
__temp0,
__2,
)
}
fn __action69<
'input,
>(
__0: (usize, usize, usize),
__1: (usize, Expression, usize),
__2: (usize, ::std::vec::Vec<Expression>, usize),
__3: (usize, usize, usize),
) -> Pipeline
{
let __start0 = __2.0.clone();
let __end0 = __2.2.clone();
let __temp0 = __action59(
__2,
);
let __temp0 = (__start0, __temp0, __end0);
__action2(
__0,
__1,
__temp0,
__3,
)
}
fn __action70<
'input,
>(
__0: (usize, Expression, usize),
) -> ::std::vec::Vec<Expression>
{
let __start0 = __0.0.clone();
let __end0 = __0.2.clone();
let __temp0 = __action56(
__0,
);
let __temp0 = (__start0, __temp0, __end0);
__action54(
__temp0,
)
}
fn __action71<
'input,
>(
__0: (usize, ::std::vec::Vec<Expression>, usize),
__1: (usize, Expression, usize),
) -> ::std::vec::Vec<Expression>
{
let __start0 = __1.0.clone();
let __end0 = __1.2.clone();
let __temp0 = __action56(
__1,
);
let __temp0 = (__start0, __temp0, __end0);
__action55(
__0,
__temp0,
)
}
fn __action72<
'input,
>(
__0: (usize, Bare, usize),
__1: (usize, usize, usize),
) -> Expression
{
let __start0 = __0.0.clone();
let __end0 = __0.0.clone();
let __temp0 = __action61(
&__start0,
&__end0,
);
let __temp0 = (__start0, __temp0, __end0);
__action32(
__temp0,
__0,
__1,
)
}
fn __action73<
'input,
>(
__0: (usize, Expression, usize),
__1: (usize, Spanned<Operator>, usize),
__2: (usize, Expression, usize),
__3: (usize, usize, usize),
) -> Expression
{
let __start0 = __0.0.clone();
let __end0 = __0.0.clone();
let __temp0 = __action61(
&__start0,
&__end0,
);
let __temp0 = (__start0, __temp0, __end0);
__action13(
__temp0,
__0,
__1,
__2,
__3,
)
}
fn __action74<
'input,
>(
__0: (usize, SpannedToken<'input>, usize),
__1: (usize, Expression, usize),
__2: (usize, SpannedToken<'input>, usize),
__3: (usize, usize, usize),
) -> Expression
{
let __start0 = __0.0.clone();
let __end0 = __0.0.clone();
let __temp0 = __action61(
&__start0,
&__end0,
);
let __temp0 = (__start0, __temp0, __end0);
__action14(
__temp0,
__0,
__1,
__2,
__3,
)
}
fn __action75<
'input,
>(
__0: (usize, SpannedToken<'input>, usize),
__1: (usize, Expression, usize),
__2: (usize, SpannedToken<'input>, usize),
__3: (usize, usize, usize),
) -> Expression
{
let __start0 = __0.0.clone();
let __end0 = __0.0.clone();
let __temp0 = __action61(
&__start0,
&__end0,
);
let __temp0 = (__start0, __temp0, __end0);
__action15(
__temp0,
__0,
__1,
__2,
__3,
)
}
fn __action76<
'input,
>(
__0: (usize, Expression, usize),
__1: (usize, Expression, usize),
__2: (usize, usize, usize),
) -> Expression
{
let __start0 = __0.0.clone();
let __end0 = __0.0.clone();
let __temp0 = __action61(
&__start0,
&__end0,
);
let __temp0 = (__start0, __temp0, __end0);
__action9(
__temp0,
__0,
__1,
__2,
)
}
fn __action77<
'input,
>(
__0: (usize, Expression, usize),
__1: (usize, Expression, usize),
__2: (usize, ::std::vec::Vec<Expression>, usize),
__3: (usize, usize, usize),
) -> Expression
{
let __start0 = __0.0.clone();
let __end0 = __0.0.clone();
let __temp0 = __action61(
&__start0,
&__end0,
);
let __temp0 = (__start0, __temp0, __end0);
__action10(
__temp0,
__0,
__1,
__2,
__3,
)
}
fn __action78<
'input,
>(
__0: (usize, Expression, usize),
__1: (usize, Expression, usize),
__2: (usize, usize, usize),
) -> Expression
{
let __start0 = __0.0.clone();
let __end0 = __0.0.clone();
let __temp0 = __action61(
&__start0,
&__end0,
);
let __temp0 = (__start0, __temp0, __end0);
__action11(
__temp0,
__0,
__1,
__2,
)
}
fn __action79<
'input,
>(
__0: (usize, Expression, usize),
__1: (usize, Expression, usize),
__2: (usize, ::std::vec::Vec<Expression>, usize),
__3: (usize, usize, usize),
) -> Expression
{
let __start0 = __0.0.clone();
let __end0 = __0.0.clone();
let __temp0 = __action61(
&__start0,
&__end0,
);
let __temp0 = (__start0, __temp0, __end0);
__action12(
__temp0,
__0,
__1,
__2,
__3,
)
}
fn __action80<
'input,
>(
__0: (usize, Expression, usize),
__1: (usize, ::std::vec::Vec<SpannedToken<'input>>, usize),
__2: (usize, usize, usize),
) -> Expression
{
let __start0 = __0.0.clone();
let __end0 = __0.0.clone();
let __temp0 = __action61(
&__start0,
&__end0,
);
let __temp0 = (__start0, __temp0, __end0);
__action22(
__temp0,
__0,
__1,
__2,
)
}
fn __action81<
'input,
>(
__0: (usize, SpannedToken<'input>, usize),
__1: (usize, Bare, usize),
__2: (usize, usize, usize),
) -> Expression
{
let __start0 = __0.0.clone();
let __end0 = __0.0.clone();
let __temp0 = __action61(
&__start0,
&__end0,
);
let __temp0 = (__start0, __temp0, __end0);
__action48(
__temp0,
__0,
__1,
__2,
)
}
fn __action82<
'input,
>(
__0: (usize, SpannedToken<'input>, usize),
__1: (usize, Bare, usize),
__2: (usize, usize, usize),
) -> Expression
{
let __start0 = __0.0.clone();
let __end0 = __0.0.clone();
let __temp0 = __action61(
&__start0,
&__end0,
);
let __temp0 = (__start0, __temp0, __end0);
__action49(
__temp0,
__0,
__1,
__2,
)
}
fn __action83<
'input,
>(
__0: (usize, i64, usize),
__1: (usize, usize, usize),
) -> Expression
{
let __start0 = __0.0.clone();
let __end0 = __0.0.clone();
let __temp0 = __action61(
&__start0,
&__end0,
);
let __temp0 = (__start0, __temp0, __end0);
__action6(
__temp0,
__0,
__1,
)
}
fn __action84<
'input,
>(
__0: (usize, SpannedToken<'input>, usize),
__1: (usize, Expression, usize),
__2: (usize, SpannedToken<'input>, usize),
__3: (usize, usize, usize),
) -> Expression
{
let __start0 = __0.0.clone();
let __end0 = __0.0.clone();
let __temp0 = __action61(
&__start0,
&__end0,
);
let __temp0 = (__start0, __temp0, __end0);
__action18(
__temp0,
__0,
__1,
__2,
__3,
)
}
fn __action85<
'input,
>(
__0: (usize, SpannedToken<'input>, usize),
__1: (usize, Expression, usize),
__2: (usize, SpannedToken<'input>, usize),
__3: (usize, usize, usize),
) -> Expression
{
let __start0 = __0.0.clone();
let __end0 = __0.0.clone();
let __temp0 = __action61(
&__start0,
&__end0,
);
let __temp0 = (__start0, __temp0, __end0);
__action19(
__temp0,
__0,
__1,
__2,
__3,
)
}
fn __action86<
'input,
>(
__0: (usize, SpannedToken<'input>, usize),
__1: (usize, Expression, usize),
__2: (usize, SpannedToken<'input>, usize),
__3: (usize, usize, usize),
) -> Expression
{
let __start0 = __0.0.clone();
let __end0 = __0.0.clone();
let __temp0 = __action61(
&__start0,
&__end0,
);
let __temp0 = (__start0, __temp0, __end0);
__action20(
__temp0,
__0,
__1,
__2,
__3,
)
}
fn __action87<
'input,
>(
__0: (usize, Expression, usize),
__1: (usize, usize, usize),
) -> Pipeline
{
let __start0 = __0.0.clone();
let __end0 = __0.0.clone();
let __temp0 = __action61(
&__start0,
&__end0,
);
let __temp0 = (__start0, __temp0, __end0);
__action68(
__temp0,
__0,
__1,
)
}
fn __action88<
'input,
>(
__0: (usize, Expression, usize),
__1: (usize, ::std::vec::Vec<Expression>, usize),
__2: (usize, usize, usize),
) -> Pipeline
{
let __start0 = __0.0.clone();
let __end0 = __0.0.clone();
let __temp0 = __action61(
&__start0,
&__end0,
);
let __temp0 = (__start0, __temp0, __end0);
__action69(
__temp0,
__0,
__1,
__2,
)
}
fn __action89<
'input,
>(
__0: (usize, Expression, usize),
__1: (usize, usize, usize),
) -> Expression
{
let __start0 = __0.0.clone();
let __end0 = __0.0.clone();
let __temp0 = __action61(
&__start0,
&__end0,
);
let __temp0 = (__start0, __temp0, __end0);
__action3(
__temp0,
__0,
__1,
)
}
fn __action90<
'input,
>(
__0: (usize, Operator, usize),
__1: (usize, usize, usize),
) -> Spanned<Operator>
{
let __start0 = __0.0.clone();
let __end0 = __0.0.clone();
let __temp0 = __action61(
&__start0,
&__end0,
);
let __temp0 = (__start0, __temp0, __end0);
__action33(
__temp0,
__0,
__1,
)
}
fn __action91<
'input,
>(
__0: (usize, SpannedToken<'input>, usize),
__1: (usize, usize, usize),
) -> Expression
{
let __start0 = __0.0.clone();
let __end0 = __0.0.clone();
let __temp0 = __action61(
&__start0,
&__end0,
);
let __temp0 = (__start0, __temp0, __end0);
__action46(
__temp0,
__0,
__1,
)
}
fn __action92<
'input,
>(
__0: (usize, SpannedToken<'input>, usize),
__1: (usize, usize, usize),
) -> Expression
{
let __start0 = __0.0.clone();
let __end0 = __0.0.clone();
let __temp0 = __action61(
&__start0,
&__end0,
);
let __temp0 = (__start0, __temp0, __end0);
__action47(
__temp0,
__0,
__1,
)
}
fn __action93<
'input,
>(
__0: (usize, i64, usize),
__1: (usize, SpannedToken<'input>, usize),
__2: (usize, usize, usize),
) -> Expression
{
let __start0 = __0.0.clone();
let __end0 = __0.0.clone();
let __temp0 = __action61(
&__start0,
&__end0,
);
let __temp0 = (__start0, __temp0, __end0);
__action45(
__temp0,
__0,
__1,
__2,
)
}
fn __action94<
'input,
>(
__0: (usize, SpannedToken<'input>, usize),
__1: (usize, SpannedToken<'input>, usize),
__2: (usize, usize, usize),
) -> Expression
{
let __start0 = __0.0.clone();
let __end0 = __0.0.clone();
let __temp0 = __action61(
&__start0,
&__end0,
);
let __temp0 = (__start0, __temp0, __end0);
__action50(
__temp0,
__0,
__1,
__2,
)
}
fn __action95<
'input,
>(
__0: (usize, Bare, usize),
) -> Expression
{
let __start0 = __0.2.clone();
let __end0 = __0.2.clone();
let __temp0 = __action57(
&__start0,
&__end0,
);
let __temp0 = (__start0, __temp0, __end0);
__action72(
__0,
__temp0,
)
}
fn __action96<
'input,
>(
__0: (usize, Expression, usize),
__1: (usize, Spanned<Operator>, usize),
__2: (usize, Expression, usize),
) -> Expression
{
let __start0 = __2.2.clone();
let __end0 = __2.2.clone();
let __temp0 = __action57(
&__start0,
&__end0,
);
let __temp0 = (__start0, __temp0, __end0);
__action73(
__0,
__1,
__2,
__temp0,
)
}
fn __action97<
'input,
>(
__0: (usize, SpannedToken<'input>, usize),
__1: (usize, Expression, usize),
__2: (usize, SpannedToken<'input>, usize),
) -> Expression
{
let __start0 = __2.2.clone();
let __end0 = __2.2.clone();
let __temp0 = __action57(
&__start0,
&__end0,
);
let __temp0 = (__start0, __temp0, __end0);
__action74(
__0,
__1,
__2,
__temp0,
)
}
fn __action98<
'input,
>(
__0: (usize, SpannedToken<'input>, usize),
__1: (usize, Expression, usize),
__2: (usize, SpannedToken<'input>, usize),
) -> Expression
{
let __start0 = __2.2.clone();
let __end0 = __2.2.clone();
let __temp0 = __action57(
&__start0,
&__end0,
);
let __temp0 = (__start0, __temp0, __end0);
__action75(
__0,
__1,
__2,
__temp0,
)
}
fn __action99<
'input,
>(
__0: (usize, Expression, usize),
__1: (usize, Expression, usize),
) -> Expression
{
let __start0 = __1.2.clone();
let __end0 = __1.2.clone();
let __temp0 = __action57(
&__start0,
&__end0,
);
let __temp0 = (__start0, __temp0, __end0);
__action76(
__0,
__1,
__temp0,
)
}
fn __action100<
'input,
>(
__0: (usize, Expression, usize),
__1: (usize, Expression, usize),
__2: (usize, ::std::vec::Vec<Expression>, usize),
) -> Expression
{
let __start0 = __2.2.clone();
let __end0 = __2.2.clone();
let __temp0 = __action57(
&__start0,
&__end0,
);
let __temp0 = (__start0, __temp0, __end0);
__action77(
__0,
__1,
__2,
__temp0,
)
}
fn __action101<
'input,
>(
__0: (usize, Expression, usize),
__1: (usize, Expression, usize),
) -> Expression
{
let __start0 = __1.2.clone();
let __end0 = __1.2.clone();
let __temp0 = __action57(
&__start0,
&__end0,
);
let __temp0 = (__start0, __temp0, __end0);
__action78(
__0,
__1,
__temp0,
)
}
fn __action102<
'input,
>(
__0: (usize, Expression, usize),
__1: (usize, Expression, usize),
__2: (usize, ::std::vec::Vec<Expression>, usize),
) -> Expression
{
let __start0 = __2.2.clone();
let __end0 = __2.2.clone();
let __temp0 = __action57(
&__start0,
&__end0,
);
let __temp0 = (__start0, __temp0, __end0);
__action79(
__0,
__1,
__2,
__temp0,
)
}
fn __action103<
'input,
>(
__0: (usize, Expression, usize),
__1: (usize, ::std::vec::Vec<SpannedToken<'input>>, usize),
) -> Expression
{
let __start0 = __1.2.clone();
let __end0 = __1.2.clone();
let __temp0 = __action57(
&__start0,
&__end0,
);
let __temp0 = (__start0, __temp0, __end0);
__action80(
__0,
__1,
__temp0,
)
}
fn __action104<
'input,
>(
__0: (usize, SpannedToken<'input>, usize),
__1: (usize, Bare, usize),
) -> Expression
{
let __start0 = __1.2.clone();
let __end0 = __1.2.clone();
let __temp0 = __action57(
&__start0,
&__end0,
);
let __temp0 = (__start0, __temp0, __end0);
__action81(
__0,
__1,
__temp0,
)
}
fn __action105<
'input,
>(
__0: (usize, SpannedToken<'input>, usize),
__1: (usize, Bare, usize),
) -> Expression
{
let __start0 = __1.2.clone();
let __end0 = __1.2.clone();
let __temp0 = __action57(
&__start0,
&__end0,
);
let __temp0 = (__start0, __temp0, __end0);
__action82(
__0,
__1,
__temp0,
)
}
fn __action106<
'input,
>(
__0: (usize, i64, usize),
) -> Expression
{
let __start0 = __0.2.clone();
let __end0 = __0.2.clone();
let __temp0 = __action57(
&__start0,
&__end0,
);
let __temp0 = (__start0, __temp0, __end0);
__action83(
__0,
__temp0,
)
}
fn __action107<
'input,
>(
__0: (usize, SpannedToken<'input>, usize),
__1: (usize, Expression, usize),
__2: (usize, SpannedToken<'input>, usize),
) -> Expression
{
let __start0 = __2.2.clone();
let __end0 = __2.2.clone();
let __temp0 = __action57(
&__start0,
&__end0,
);
let __temp0 = (__start0, __temp0, __end0);
__action84(
__0,
__1,
__2,
__temp0,
)
}
fn __action108<
'input,
>(
__0: (usize, SpannedToken<'input>, usize),
__1: (usize, Expression, usize),
__2: (usize, SpannedToken<'input>, usize),
) -> Expression
{
let __start0 = __2.2.clone();
let __end0 = __2.2.clone();
let __temp0 = __action57(
&__start0,
&__end0,
);
let __temp0 = (__start0, __temp0, __end0);
__action85(
__0,
__1,
__2,
__temp0,
)
}
fn __action109<
'input,
>(
__0: (usize, SpannedToken<'input>, usize),
__1: (usize, Expression, usize),
__2: (usize, SpannedToken<'input>, usize),
) -> Expression
{
let __start0 = __2.2.clone();
let __end0 = __2.2.clone();
let __temp0 = __action57(
&__start0,
&__end0,
);
let __temp0 = (__start0, __temp0, __end0);
__action86(
__0,
__1,
__2,
__temp0,
)
}
fn __action110<
'input,
>(
__0: (usize, Expression, usize),
) -> Pipeline
{
let __start0 = __0.2.clone();
let __end0 = __0.2.clone();
let __temp0 = __action57(
&__start0,
&__end0,
);
let __temp0 = (__start0, __temp0, __end0);
__action87(
__0,
__temp0,
)
}
fn __action111<
'input,
>(
__0: (usize, Expression, usize),
__1: (usize, ::std::vec::Vec<Expression>, usize),
) -> Pipeline
{
let __start0 = __1.2.clone();
let __end0 = __1.2.clone();
let __temp0 = __action57(
&__start0,
&__end0,
);
let __temp0 = (__start0, __temp0, __end0);
__action88(
__0,
__1,
__temp0,
)
}
fn __action112<
'input,
>(
__0: (usize, Expression, usize),
) -> Expression
{
let __start0 = __0.2.clone();
let __end0 = __0.2.clone();
let __temp0 = __action57(
&__start0,
&__end0,
);
let __temp0 = (__start0, __temp0, __end0);
__action89(
__0,
__temp0,
)
}
fn __action113<
'input,
>(
__0: (usize, Operator, usize),
) -> Spanned<Operator>
{
let __start0 = __0.2.clone();
let __end0 = __0.2.clone();
let __temp0 = __action57(
&__start0,
&__end0,
);
let __temp0 = (__start0, __temp0, __end0);
__action90(
__0,
__temp0,
)
}
fn __action114<
'input,
>(
__0: (usize, SpannedToken<'input>, usize),
) -> Expression
{
let __start0 = __0.2.clone();
let __end0 = __0.2.clone();
let __temp0 = __action57(
&__start0,
&__end0,
);
let __temp0 = (__start0, __temp0, __end0);
__action91(
__0,
__temp0,
)
}
fn __action115<
'input,
>(
__0: (usize, SpannedToken<'input>, usize),
) -> Expression
{
let __start0 = __0.2.clone();
let __end0 = __0.2.clone();
let __temp0 = __action57(
&__start0,
&__end0,
);
let __temp0 = (__start0, __temp0, __end0);
__action92(
__0,
__temp0,
)
}
fn __action116<
'input,
>(
__0: (usize, i64, usize),
__1: (usize, SpannedToken<'input>, usize),
) -> Expression
{
let __start0 = __1.2.clone();
let __end0 = __1.2.clone();
let __temp0 = __action57(
&__start0,
&__end0,
);
let __temp0 = (__start0, __temp0, __end0);
__action93(
__0,
__1,
__temp0,
)
}
fn __action117<
'input,
>(
__0: (usize, SpannedToken<'input>, usize),
__1: (usize, SpannedToken<'input>, usize),
) -> Expression
{
let __start0 = __1.2.clone();
let __end0 = __1.2.clone();
let __temp0 = __action57(
&__start0,
&__end0,
);
let __temp0 = (__start0, __temp0, __end0);
__action94(
__0,
__1,
__temp0,
)
}
pub trait __ToTriple<'input, > {
fn to_triple(value: Self) -> Result<(usize,SpannedToken<'input>,usize), __lalrpop_util::ParseError<usize, SpannedToken<'input>, ShellError>>;
}
impl<'input, > __ToTriple<'input, > for (usize, SpannedToken<'input>, usize) {
fn to_triple(value: Self) -> Result<(usize,SpannedToken<'input>,usize), __lalrpop_util::ParseError<usize, SpannedToken<'input>, ShellError>> {
Ok(value)
}
}
impl<'input, > __ToTriple<'input, > for Result<(usize, SpannedToken<'input>, usize), ShellError> {
fn to_triple(value: Self) -> Result<(usize,SpannedToken<'input>,usize), __lalrpop_util::ParseError<usize, SpannedToken<'input>, ShellError>> {
match value {
Ok(v) => Ok(v),
Err(error) => Err(__lalrpop_util::ParseError::User { error }),
}
}
}