3391 lines
129 KiB
Rust
3391 lines
129 KiB
Rust
// auto-generated: "lalrpop 0.17.0"
|
||
// sha256: b14d4daa8f97f546c3e6e2cb4a931d9bb69a859a6548dc32fc3a984d93cbc
|
||
use std::str::FromStr;
|
||
use byte_unit::Byte;
|
||
use crate::parser::ast::*;
|
||
#[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__Pipeline {
|
||
#![allow(non_snake_case, non_camel_case_types, unused_mut, unused_variables, unused_imports, unused_parens)]
|
||
|
||
use std::str::FromStr;
|
||
use byte_unit::Byte;
|
||
use crate::parser::ast::*;
|
||
#[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::__intern_token::Token;
|
||
#[allow(dead_code)]
|
||
pub enum __Symbol<'input>
|
||
{
|
||
Variant0(&'input str),
|
||
Variant1(String),
|
||
Variant2(::std::vec::Vec<String>),
|
||
Variant3(ParsedCommand),
|
||
Variant4(::std::vec::Vec<ParsedCommand>),
|
||
Variant5(Expression),
|
||
Variant6(::std::vec::Vec<Expression>),
|
||
Variant7(Flag),
|
||
Variant8(i64),
|
||
Variant9(Operator),
|
||
Variant10(Pipeline),
|
||
Variant11(Variable),
|
||
}
|
||
const __ACTION: &'static [i8] = &[
|
||
// State 0
|
||
0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 6, 0,
|
||
// State 1
|
||
0, 24, 25, 26, 27, 0, 0, 0, 0, 0, 0, 0, 0, 0, 28, -13, 0, 29, 30, 31, 32, 6, 33,
|
||
// State 2
|
||
0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 35, 0, 0, 0, 0, 0, 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,
|
||
// State 4
|
||
-9, -9, -9, -9, -9, 0, 0, 0, -9, -9, -9, -9, -9, -9, -9, -9, 0, -9, -9, -9, -9, -9, -9,
|
||
// State 5
|
||
-44, -44, -44, -44, -44, 0, 0, 0, -44, -44, -44, -44, -44, -44, -44, -44, 0, -44, -44, -44, -44, -44, -44,
|
||
// State 6
|
||
-54, -54, -54, -54, -54, 0, 0, 0, -54, -54, -54, -54, -54, -54, -54, -54, 0, -54, -54, -54, -54, -54, -54,
|
||
// State 7
|
||
-17, -17, -17, -17, -17, 0, 0, 0, 0, -17, -17, -17, -17, -17, -17, -17, 0, -17, -17, -17, -17, -17, -17,
|
||
// State 8
|
||
0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, -15, 0, 0, 0, 0, 0, 0, 0,
|
||
// State 9
|
||
-55, -55, -55, -55, -55, 0, 0, 0, -55, -55, -55, -55, -55, -55, -55, -55, 0, -55, -55, -55, -55, -55, -55,
|
||
// State 10
|
||
-48, -48, -48, -48, -48, -48, 0, 0, -48, -48, -48, -48, -48, -48, -48, -48, -48, -48, -48, -48, -48, -48, -48,
|
||
// State 11
|
||
37, -22, -22, -22, -22, 0, 0, 0, 0, 38, 39, 40, 41, 42, -22, -22, 0, -22, -22, -22, -22, -22, -22,
|
||
// State 12
|
||
0, 24, 25, 26, 27, 0, 0, 0, 0, 0, 0, 0, 0, 0, 28, -14, 0, 29, 30, 31, 32, 6, 33,
|
||
// State 13
|
||
-8, -8, -8, -8, -8, 0, 0, 0, -8, -8, -8, -8, -8, -8, -8, -8, -8, -8, -8, -8, -8, -8, -8,
|
||
// State 14
|
||
-27, -27, -27, -27, -27, -27, 0, 0, -27, -27, -27, -27, -27, -27, -27, -27, -27, -27, -27, -27, -27, -27, -27,
|
||
// State 15
|
||
-7, -7, -7, -7, -7, 0, 0, 0, -7, -7, -7, -7, -7, -7, -7, -7, -7, -7, -7, -7, -7, -7, -7,
|
||
// State 16
|
||
-19, -19, -19, -19, -19, 0, 0, 0, 0, -19, -19, -19, -19, -19, -19, -19, 0, -19, -19, -19, -19, -19, -19,
|
||
// State 17
|
||
-47, -47, -47, -47, -47, -47, 0, 0, -47, -47, -47, -47, -47, -47, -47, -47, -47, -47, -47, -47, -47, -47, -47,
|
||
// State 18
|
||
-28, -28, -28, -28, -28, -28, 0, 0, -28, -28, -28, -28, -28, -28, -28, -28, -28, -28, -28, -28, -28, -28, -28,
|
||
// State 19
|
||
-26, -26, -26, -26, -26, -26, 0, 0, -26, -26, -26, -26, -26, -26, -26, -26, -26, -26, -26, -26, -26, -26, -26,
|
||
// State 20
|
||
-29, -29, -29, -29, -29, -29, 0, 0, -29, -29, -29, -29, -29, -29, -29, -29, -29, -29, -29, -29, -29, -29, -29,
|
||
// State 21
|
||
-52, -52, -52, -52, -52, -52, 0, 0, -52, -52, -52, -52, -52, -52, -52, -52, -52, -52, -52, -52, -52, -52, -52,
|
||
// State 22
|
||
-18, -18, -18, -18, -18, 0, 0, 0, 45, -18, -18, -18, -18, -18, -18, -18, 0, -18, -18, -18, -18, -18, -18,
|
||
// State 23
|
||
-50, -50, -50, -50, -50, -50, 0, 0, -50, -50, -50, -50, -50, -50, -50, -50, -50, -50, -50, -50, -50, -50, -50,
|
||
// State 24
|
||
-51, -51, -51, -51, -51, -51, 0, 0, -51, -51, -51, -51, -51, -51, -51, -51, -51, -51, -51, -51, -51, -51, -51,
|
||
// State 25
|
||
-49, -49, -49, -49, -49, -49, 0, 0, -49, -49, -49, -49, -49, -49, -49, -49, -49, -49, -49, -49, -49, -49, -49,
|
||
// State 26
|
||
0, 24, 25, 26, 27, 0, 0, 0, 0, 0, 0, 0, 0, 0, 28, 0, 0, 29, 30, 31, 32, 6, 33,
|
||
// State 27
|
||
0, 24, 25, 26, 27, 0, 0, 0, 0, 0, 0, 0, 0, 0, 28, 0, 0, 29, 30, 31, 32, 6, 33,
|
||
// State 28
|
||
-16, -16, -16, -16, -16, -16, 0, 0, -16, -16, -16, -16, -16, -16, -16, -16, -16, -16, -16, -16, -16, -16, -16,
|
||
// State 29
|
||
-45, -45, -45, -45, -45, -45, 0, 0, -45, -45, -45, -45, -45, -45, -45, -45, -45, -45, -45, -45, -45, -45, -45,
|
||
// State 30
|
||
-32, -32, -32, -32, -32, -32, 0, 0, -32, -32, -32, -32, -32, -32, -32, -32, -32, -32, -32, -32, -32, -32, -32,
|
||
// State 31
|
||
-46, -46, -46, -46, -46, -46, 0, 0, -46, -46, -46, -46, -46, -46, -46, -46, -46, -46, -46, -46, -46, -46, -46,
|
||
// State 32
|
||
-53, -53, -53, -53, -53, -53, 0, 0, -53, -53, -53, -53, -53, -53, -53, -53, -53, -53, -53, -53, -53, -53, -53,
|
||
// State 33
|
||
0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 51, 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, 6, 0,
|
||
// State 35
|
||
0, 24, 25, 26, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 29, 30, 31, 32, 0, 33,
|
||
// State 36
|
||
0, -34, -34, -34, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, -34, -34, -34, -34, 0, -34,
|
||
// State 37
|
||
0, -35, -35, -35, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, -35, -35, -35, -35, 0, -35,
|
||
// State 38
|
||
0, -37, -37, -37, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, -37, -37, -37, -37, 0, -37,
|
||
// State 39
|
||
0, -33, -33, -33, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, -33, -33, -33, -33, 0, -33,
|
||
// State 40
|
||
0, -36, -36, -36, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, -36, -36, -36, -36, 0, -36,
|
||
// State 41
|
||
0, -38, -38, -38, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, -38, -38, -38, -38, 0, -38,
|
||
// State 42
|
||
0, -23, -23, -23, -23, 0, 0, 0, 0, 0, 0, 0, 0, 0, -23, -23, 0, -23, -23, -23, -23, -23, -23,
|
||
// State 43
|
||
-41, -41, -41, -41, -41, 0, 0, 0, 54, -41, -41, -41, -41, -41, -41, -41, 0, -41, -41, -41, -41, -41, -41,
|
||
// State 44
|
||
0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 29, 30, 0, 0, 6, 0,
|
||
// State 45
|
||
0, 0, 0, 0, 0, 58, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
|
||
// State 46
|
||
37, 0, 0, 0, 0, 0, 0, 0, 0, 38, 39, 40, 41, 42, 0, 0, 0, 0, 0, 0, 0, 0, 0,
|
||
// State 47
|
||
-8, 0, 0, 0, 0, 59, 0, 0, -8, -8, -8, -8, -8, -8, 0, 0, 0, 0, 0, 0, 0, 0, 0,
|
||
// State 48
|
||
-54, 0, 0, 0, 0, 0, 0, 0, -54, -54, -54, -54, -54, -54, 0, 0, 60, 0, 0, 0, 0, 0, 0,
|
||
// State 49
|
||
0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 61, 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, 6, 0,
|
||
// State 51
|
||
0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, -5, 0, 0, 0, 0, 0, 0, 0,
|
||
// State 52
|
||
0, 0, 0, 0, 0, -10, 0, 0, 0, 0, 0, 0, 0, 0, 0, -10, -10, 0, 0, 0, 0, 0, 0,
|
||
// State 53
|
||
0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 29, 30, 0, 0, 6, 0,
|
||
// State 54
|
||
-30, -30, -30, -30, -30, 0, 0, 0, -30, -30, -30, -30, -30, -30, -30, -30, 0, -30, -30, -30, -30, -30, -30,
|
||
// State 55
|
||
-2, -2, -2, -2, -2, 0, 0, 0, -2, -2, -2, -2, -2, -2, -2, -2, 0, -2, -2, -2, -2, -2, -2,
|
||
// State 56
|
||
-31, -31, -31, -31, -31, 0, 0, 0, -31, -31, -31, -31, -31, -31, -31, -31, 0, -31, -31, -31, -31, -31, -31,
|
||
// State 57
|
||
-40, -40, -40, -40, -40, 0, 0, 0, -40, -40, -40, -40, -40, -40, -40, -40, -40, -40, -40, -40, -40, -40, -40,
|
||
// State 58
|
||
-39, -39, -39, -39, -39, 0, 0, 0, -39, -39, -39, -39, -39, -39, -39, -39, -39, -39, -39, -39, -39, -39, -39,
|
||
// State 59
|
||
-11, -11, -11, -11, -11, 0, 0, 0, -11, -11, -11, -11, -11, -11, -11, -11, 0, -11, -11, -11, -11, -11, -11,
|
||
// State 60
|
||
-12, -12, -12, -12, -12, 0, 0, 0, -12, -12, -12, -12, -12, -12, -12, -12, 0, -12, -12, -12, -12, -12, -12,
|
||
// State 61
|
||
0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, -6, 0, 0, 0, 0, 0, 0, 0,
|
||
// State 62
|
||
-3, -3, -3, -3, -3, 0, 0, 0, -3, -3, -3, -3, -3, -3, -3, -3, 0, -3, -3, -3, -3, -3, -3,
|
||
];
|
||
const __EOF_ACTION: &'static [i8] = &[
|
||
// State 0
|
||
0,
|
||
// State 1
|
||
-13,
|
||
// State 2
|
||
-42,
|
||
// State 3
|
||
-56,
|
||
// State 4
|
||
-9,
|
||
// State 5
|
||
-44,
|
||
// State 6
|
||
-54,
|
||
// State 7
|
||
-17,
|
||
// State 8
|
||
-15,
|
||
// State 9
|
||
-55,
|
||
// State 10
|
||
-48,
|
||
// State 11
|
||
-22,
|
||
// State 12
|
||
-14,
|
||
// State 13
|
||
-8,
|
||
// State 14
|
||
-27,
|
||
// State 15
|
||
-7,
|
||
// State 16
|
||
-19,
|
||
// State 17
|
||
-47,
|
||
// State 18
|
||
-28,
|
||
// State 19
|
||
-26,
|
||
// State 20
|
||
-29,
|
||
// State 21
|
||
-52,
|
||
// State 22
|
||
-18,
|
||
// State 23
|
||
-50,
|
||
// State 24
|
||
-51,
|
||
// State 25
|
||
-49,
|
||
// State 26
|
||
0,
|
||
// State 27
|
||
0,
|
||
// State 28
|
||
-16,
|
||
// State 29
|
||
-45,
|
||
// State 30
|
||
-32,
|
||
// State 31
|
||
-46,
|
||
// State 32
|
||
-53,
|
||
// State 33
|
||
-43,
|
||
// 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
|
||
-23,
|
||
// State 43
|
||
-41,
|
||
// State 44
|
||
0,
|
||
// State 45
|
||
0,
|
||
// State 46
|
||
0,
|
||
// State 47
|
||
0,
|
||
// State 48
|
||
0,
|
||
// State 49
|
||
0,
|
||
// State 50
|
||
0,
|
||
// State 51
|
||
-5,
|
||
// State 52
|
||
-10,
|
||
// State 53
|
||
0,
|
||
// State 54
|
||
-30,
|
||
// State 55
|
||
-2,
|
||
// State 56
|
||
-31,
|
||
// State 57
|
||
-40,
|
||
// State 58
|
||
-39,
|
||
// State 59
|
||
-11,
|
||
// State 60
|
||
-12,
|
||
// State 61
|
||
-6,
|
||
// State 62
|
||
-3,
|
||
];
|
||
const __GOTO: &'static [i8] = &[
|
||
// State 0
|
||
0, 0, 0, 0, 0, 2, 0, 0, 3, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 4, 5, 0, 0, 0, 0, 0, 0, 0,
|
||
// State 1
|
||
0, 0, 0, 0, 7, 8, 9, 10, 0, 11, 12, 0, 13, 0, 14, 0, 15, 0, 16, 17, 0, 5, 18, 19, 20, 21, 22, 23, 0,
|
||
// State 2
|
||
0, 0, 0, 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,
|
||
// 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,
|
||
// 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,
|
||
// 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,
|
||
// 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,
|
||
// 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,
|
||
// 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,
|
||
// 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,
|
||
// 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,
|
||
// State 11
|
||
0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 36, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
|
||
// State 12
|
||
0, 0, 0, 0, 7, 8, 0, 10, 0, 11, 43, 0, 0, 0, 14, 0, 15, 0, 16, 17, 0, 5, 18, 19, 20, 21, 22, 23, 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,
|
||
// 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,
|
||
// 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,
|
||
// 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,
|
||
// 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,
|
||
// State 18
|
||
0, 0, 0, 0, 0, 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 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,
|
||
// 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,
|
||
// 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,
|
||
// State 22
|
||
0, 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,
|
||
// 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,
|
||
// 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,
|
||
// 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,
|
||
// State 26
|
||
0, 0, 0, 0, 7, 8, 46, 10, 0, 11, 47, 0, 0, 0, 48, 0, 15, 0, 16, 17, 0, 5, 18, 19, 20, 21, 22, 23, 0,
|
||
// State 27
|
||
0, 0, 0, 0, 49, 8, 50, 10, 0, 11, 47, 0, 0, 0, 14, 0, 15, 0, 16, 17, 0, 5, 18, 19, 20, 21, 22, 23, 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,
|
||
// 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,
|
||
// 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,
|
||
// 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,
|
||
// 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,
|
||
// 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,
|
||
// State 34
|
||
0, 0, 0, 0, 0, 2, 0, 0, 52, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 5, 0, 0, 0, 0, 0, 0, 0,
|
||
// State 35
|
||
0, 0, 0, 0, 0, 0, 0, 0, 0, 11, 0, 0, 0, 0, 53, 0, 15, 0, 0, 0, 0, 0, 18, 19, 20, 21, 22, 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,
|
||
// 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,
|
||
// 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,
|
||
// State 39
|
||
0, 0, 0, 0, 0, 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 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,
|
||
// 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,
|
||
// 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,
|
||
// 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,
|
||
// State 44
|
||
0, 0, 0, 0, 0, 55, 0, 0, 0, 11, 0, 0, 0, 0, 0, 56, 0, 0, 0, 0, 0, 5, 18, 0, 57, 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,
|
||
// State 46
|
||
0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 36, 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,
|
||
// 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,
|
||
// 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,
|
||
// State 50
|
||
0, 0, 0, 0, 0, 2, 0, 0, 62, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 5, 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,
|
||
// State 52
|
||
0, 0, 0, 0, 0, 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 53
|
||
0, 0, 0, 0, 0, 55, 0, 0, 0, 11, 0, 0, 0, 0, 0, 63, 0, 0, 0, 0, 0, 5, 18, 0, 57, 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,
|
||
// 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,
|
||
// 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,
|
||
// 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,
|
||
// 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,
|
||
// 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,
|
||
// 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,
|
||
// 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,
|
||
// 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,
|
||
];
|
||
fn __expected_tokens(__state: usize) -> Vec<::std::string::String> {
|
||
const __TERMINAL: &'static [&'static str] = &[
|
||
r###""!=""###,
|
||
r###""$false""###,
|
||
r###""$it""###,
|
||
r###""$true""###,
|
||
r###""(""###,
|
||
r###"")""###,
|
||
r###""-""###,
|
||
r###""--""###,
|
||
r###"".""###,
|
||
r###""<""###,
|
||
r###""<=""###,
|
||
r###""==""###,
|
||
r###"">""###,
|
||
r###"">=""###,
|
||
r###""{""###,
|
||
r###""|""###,
|
||
r###""}""###,
|
||
r###"r#"\"([^\"]|\\\\\")*\""#"###,
|
||
r###"r#"\'([^\']|\\\\\')*\'"#"###,
|
||
r###"r#"-?[0-9]+"#"###,
|
||
r###"r#"-?[0-9]+[A-Za-z]+"#"###,
|
||
r###"r#"[^0-9\"\'$\\-\\.][^\\s\"\']*"#"###,
|
||
r###"r#"\\$\\p{XID_Start}(\\p{XID_Continue}|[\\-?!])*"#"###,
|
||
];
|
||
__ACTION[(__state * 23)..].iter().zip(__TERMINAL).filter_map(|(&state, terminal)| {
|
||
if state == 0 {
|
||
None
|
||
} else {
|
||
Some(terminal.to_string())
|
||
}
|
||
}).collect()
|
||
}
|
||
pub struct __StateMachine<'input>
|
||
where
|
||
{
|
||
input: &'input str,
|
||
__phantom: ::std::marker::PhantomData<(&'input ())>,
|
||
}
|
||
impl<'input> __state_machine::ParserDefinition for __StateMachine<'input>
|
||
where
|
||
{
|
||
type Location = usize;
|
||
type Error = &'static str;
|
||
type Token = Token<'input>;
|
||
type TokenIndex = usize;
|
||
type Symbol = __Symbol<'input>;
|
||
type Success = 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) * 23 + integer]
|
||
}
|
||
|
||
#[inline]
|
||
fn error_action(&self, state: i8) -> i8 {
|
||
__ACTION[(state as usize) * 23 + (23 - 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) * 29 + 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(
|
||
self.input,
|
||
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: &Token<'input>,
|
||
_: ::std::marker::PhantomData<(&'input ())>,
|
||
) -> Option<usize>
|
||
{
|
||
match *__token {
|
||
Token(6, _) if true => Some(0),
|
||
Token(7, _) if true => Some(1),
|
||
Token(8, _) if true => Some(2),
|
||
Token(9, _) if true => Some(3),
|
||
Token(10, _) if true => Some(4),
|
||
Token(11, _) if true => Some(5),
|
||
Token(12, _) if true => Some(6),
|
||
Token(13, _) if true => Some(7),
|
||
Token(14, _) if true => Some(8),
|
||
Token(15, _) if true => Some(9),
|
||
Token(16, _) if true => Some(10),
|
||
Token(17, _) if true => Some(11),
|
||
Token(18, _) if true => Some(12),
|
||
Token(19, _) if true => Some(13),
|
||
Token(20, _) if true => Some(14),
|
||
Token(21, _) if true => Some(15),
|
||
Token(22, _) if true => Some(16),
|
||
Token(0, _) if true => Some(17),
|
||
Token(1, _) if true => Some(18),
|
||
Token(2, _) if true => Some(19),
|
||
Token(3, _) if true => Some(20),
|
||
Token(4, _) if true => Some(21),
|
||
Token(5, _) if true => Some(22),
|
||
_ => None,
|
||
}
|
||
}
|
||
fn __token_to_symbol<
|
||
'input,
|
||
>(
|
||
__token_index: usize,
|
||
__token: Token<'input>,
|
||
_: ::std::marker::PhantomData<(&'input ())>,
|
||
) -> __Symbol<'input>
|
||
{
|
||
match __token_index {
|
||
0 => match __token {
|
||
Token(6, __tok0) => __Symbol::Variant0((__tok0)),
|
||
_ => unreachable!(),
|
||
},
|
||
1 => match __token {
|
||
Token(7, __tok0) => __Symbol::Variant0((__tok0)),
|
||
_ => unreachable!(),
|
||
},
|
||
2 => match __token {
|
||
Token(8, __tok0) => __Symbol::Variant0((__tok0)),
|
||
_ => unreachable!(),
|
||
},
|
||
3 => match __token {
|
||
Token(9, __tok0) => __Symbol::Variant0((__tok0)),
|
||
_ => unreachable!(),
|
||
},
|
||
4 => match __token {
|
||
Token(10, __tok0) => __Symbol::Variant0((__tok0)),
|
||
_ => unreachable!(),
|
||
},
|
||
5 => match __token {
|
||
Token(11, __tok0) => __Symbol::Variant0((__tok0)),
|
||
_ => unreachable!(),
|
||
},
|
||
6 => match __token {
|
||
Token(12, __tok0) => __Symbol::Variant0((__tok0)),
|
||
_ => unreachable!(),
|
||
},
|
||
7 => match __token {
|
||
Token(13, __tok0) => __Symbol::Variant0((__tok0)),
|
||
_ => unreachable!(),
|
||
},
|
||
8 => match __token {
|
||
Token(14, __tok0) => __Symbol::Variant0((__tok0)),
|
||
_ => unreachable!(),
|
||
},
|
||
9 => match __token {
|
||
Token(15, __tok0) => __Symbol::Variant0((__tok0)),
|
||
_ => unreachable!(),
|
||
},
|
||
10 => match __token {
|
||
Token(16, __tok0) => __Symbol::Variant0((__tok0)),
|
||
_ => unreachable!(),
|
||
},
|
||
11 => match __token {
|
||
Token(17, __tok0) => __Symbol::Variant0((__tok0)),
|
||
_ => unreachable!(),
|
||
},
|
||
12 => match __token {
|
||
Token(18, __tok0) => __Symbol::Variant0((__tok0)),
|
||
_ => unreachable!(),
|
||
},
|
||
13 => match __token {
|
||
Token(19, __tok0) => __Symbol::Variant0((__tok0)),
|
||
_ => unreachable!(),
|
||
},
|
||
14 => match __token {
|
||
Token(20, __tok0) => __Symbol::Variant0((__tok0)),
|
||
_ => unreachable!(),
|
||
},
|
||
15 => match __token {
|
||
Token(21, __tok0) => __Symbol::Variant0((__tok0)),
|
||
_ => unreachable!(),
|
||
},
|
||
16 => match __token {
|
||
Token(22, __tok0) => __Symbol::Variant0((__tok0)),
|
||
_ => unreachable!(),
|
||
},
|
||
17 => match __token {
|
||
Token(0, __tok0) => __Symbol::Variant0((__tok0)),
|
||
_ => unreachable!(),
|
||
},
|
||
18 => match __token {
|
||
Token(1, __tok0) => __Symbol::Variant0((__tok0)),
|
||
_ => unreachable!(),
|
||
},
|
||
19 => match __token {
|
||
Token(2, __tok0) => __Symbol::Variant0((__tok0)),
|
||
_ => unreachable!(),
|
||
},
|
||
20 => match __token {
|
||
Token(3, __tok0) => __Symbol::Variant0((__tok0)),
|
||
_ => unreachable!(),
|
||
},
|
||
21 => match __token {
|
||
Token(4, __tok0) => __Symbol::Variant0((__tok0)),
|
||
_ => unreachable!(),
|
||
},
|
||
22 => match __token {
|
||
Token(5, __tok0) => __Symbol::Variant0((__tok0)),
|
||
_ => 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: 2,
|
||
nonterminal_produced: 3,
|
||
}
|
||
}
|
||
5 => {
|
||
__state_machine::SimulatedReduce::Reduce {
|
||
states_to_pop: 3,
|
||
nonterminal_produced: 3,
|
||
}
|
||
}
|
||
6 => {
|
||
__state_machine::SimulatedReduce::Reduce {
|
||
states_to_pop: 1,
|
||
nonterminal_produced: 4,
|
||
}
|
||
}
|
||
7 => {
|
||
__state_machine::SimulatedReduce::Reduce {
|
||
states_to_pop: 1,
|
||
nonterminal_produced: 4,
|
||
}
|
||
}
|
||
8 => {
|
||
__state_machine::SimulatedReduce::Reduce {
|
||
states_to_pop: 1,
|
||
nonterminal_produced: 5,
|
||
}
|
||
}
|
||
9 => {
|
||
__state_machine::SimulatedReduce::Reduce {
|
||
states_to_pop: 3,
|
||
nonterminal_produced: 6,
|
||
}
|
||
}
|
||
10 => {
|
||
__state_machine::SimulatedReduce::Reduce {
|
||
states_to_pop: 3,
|
||
nonterminal_produced: 7,
|
||
}
|
||
}
|
||
11 => {
|
||
__state_machine::SimulatedReduce::Reduce {
|
||
states_to_pop: 3,
|
||
nonterminal_produced: 7,
|
||
}
|
||
}
|
||
12 => {
|
||
__state_machine::SimulatedReduce::Reduce {
|
||
states_to_pop: 1,
|
||
nonterminal_produced: 8,
|
||
}
|
||
}
|
||
13 => {
|
||
__state_machine::SimulatedReduce::Reduce {
|
||
states_to_pop: 2,
|
||
nonterminal_produced: 8,
|
||
}
|
||
}
|
||
14 => {
|
||
__state_machine::SimulatedReduce::Reduce {
|
||
states_to_pop: 2,
|
||
nonterminal_produced: 8,
|
||
}
|
||
}
|
||
15 => {
|
||
__state_machine::SimulatedReduce::Reduce {
|
||
states_to_pop: 1,
|
||
nonterminal_produced: 9,
|
||
}
|
||
}
|
||
16 => {
|
||
__state_machine::SimulatedReduce::Reduce {
|
||
states_to_pop: 1,
|
||
nonterminal_produced: 10,
|
||
}
|
||
}
|
||
17 => {
|
||
__state_machine::SimulatedReduce::Reduce {
|
||
states_to_pop: 1,
|
||
nonterminal_produced: 10,
|
||
}
|
||
}
|
||
18 => {
|
||
__state_machine::SimulatedReduce::Reduce {
|
||
states_to_pop: 1,
|
||
nonterminal_produced: 10,
|
||
}
|
||
}
|
||
19 => {
|
||
__state_machine::SimulatedReduce::Reduce {
|
||
states_to_pop: 0,
|
||
nonterminal_produced: 11,
|
||
}
|
||
}
|
||
20 => {
|
||
__state_machine::SimulatedReduce::Reduce {
|
||
states_to_pop: 1,
|
||
nonterminal_produced: 11,
|
||
}
|
||
}
|
||
21 => {
|
||
__state_machine::SimulatedReduce::Reduce {
|
||
states_to_pop: 1,
|
||
nonterminal_produced: 12,
|
||
}
|
||
}
|
||
22 => {
|
||
__state_machine::SimulatedReduce::Reduce {
|
||
states_to_pop: 2,
|
||
nonterminal_produced: 12,
|
||
}
|
||
}
|
||
23 => {
|
||
__state_machine::SimulatedReduce::Reduce {
|
||
states_to_pop: 2,
|
||
nonterminal_produced: 13,
|
||
}
|
||
}
|
||
24 => {
|
||
__state_machine::SimulatedReduce::Reduce {
|
||
states_to_pop: 2,
|
||
nonterminal_produced: 13,
|
||
}
|
||
}
|
||
25 => {
|
||
__state_machine::SimulatedReduce::Reduce {
|
||
states_to_pop: 1,
|
||
nonterminal_produced: 14,
|
||
}
|
||
}
|
||
26 => {
|
||
__state_machine::SimulatedReduce::Reduce {
|
||
states_to_pop: 1,
|
||
nonterminal_produced: 14,
|
||
}
|
||
}
|
||
27 => {
|
||
__state_machine::SimulatedReduce::Reduce {
|
||
states_to_pop: 1,
|
||
nonterminal_produced: 14,
|
||
}
|
||
}
|
||
28 => {
|
||
__state_machine::SimulatedReduce::Reduce {
|
||
states_to_pop: 1,
|
||
nonterminal_produced: 14,
|
||
}
|
||
}
|
||
29 => {
|
||
__state_machine::SimulatedReduce::Reduce {
|
||
states_to_pop: 1,
|
||
nonterminal_produced: 15,
|
||
}
|
||
}
|
||
30 => {
|
||
__state_machine::SimulatedReduce::Reduce {
|
||
states_to_pop: 1,
|
||
nonterminal_produced: 15,
|
||
}
|
||
}
|
||
31 => {
|
||
__state_machine::SimulatedReduce::Reduce {
|
||
states_to_pop: 1,
|
||
nonterminal_produced: 16,
|
||
}
|
||
}
|
||
32 => {
|
||
__state_machine::SimulatedReduce::Reduce {
|
||
states_to_pop: 1,
|
||
nonterminal_produced: 17,
|
||
}
|
||
}
|
||
33 => {
|
||
__state_machine::SimulatedReduce::Reduce {
|
||
states_to_pop: 1,
|
||
nonterminal_produced: 17,
|
||
}
|
||
}
|
||
34 => {
|
||
__state_machine::SimulatedReduce::Reduce {
|
||
states_to_pop: 1,
|
||
nonterminal_produced: 17,
|
||
}
|
||
}
|
||
35 => {
|
||
__state_machine::SimulatedReduce::Reduce {
|
||
states_to_pop: 1,
|
||
nonterminal_produced: 17,
|
||
}
|
||
}
|
||
36 => {
|
||
__state_machine::SimulatedReduce::Reduce {
|
||
states_to_pop: 1,
|
||
nonterminal_produced: 17,
|
||
}
|
||
}
|
||
37 => {
|
||
__state_machine::SimulatedReduce::Reduce {
|
||
states_to_pop: 1,
|
||
nonterminal_produced: 17,
|
||
}
|
||
}
|
||
38 => {
|
||
__state_machine::SimulatedReduce::Reduce {
|
||
states_to_pop: 3,
|
||
nonterminal_produced: 18,
|
||
}
|
||
}
|
||
39 => {
|
||
__state_machine::SimulatedReduce::Reduce {
|
||
states_to_pop: 3,
|
||
nonterminal_produced: 18,
|
||
}
|
||
}
|
||
40 => {
|
||
__state_machine::SimulatedReduce::Reduce {
|
||
states_to_pop: 2,
|
||
nonterminal_produced: 19,
|
||
}
|
||
}
|
||
41 => {
|
||
__state_machine::SimulatedReduce::Reduce {
|
||
states_to_pop: 1,
|
||
nonterminal_produced: 20,
|
||
}
|
||
}
|
||
42 => {
|
||
__state_machine::SimulatedReduce::Reduce {
|
||
states_to_pop: 2,
|
||
nonterminal_produced: 20,
|
||
}
|
||
}
|
||
43 => {
|
||
__state_machine::SimulatedReduce::Reduce {
|
||
states_to_pop: 1,
|
||
nonterminal_produced: 21,
|
||
}
|
||
}
|
||
44 => {
|
||
__state_machine::SimulatedReduce::Reduce {
|
||
states_to_pop: 1,
|
||
nonterminal_produced: 22,
|
||
}
|
||
}
|
||
45 => {
|
||
__state_machine::SimulatedReduce::Reduce {
|
||
states_to_pop: 1,
|
||
nonterminal_produced: 23,
|
||
}
|
||
}
|
||
46 => {
|
||
__state_machine::SimulatedReduce::Reduce {
|
||
states_to_pop: 1,
|
||
nonterminal_produced: 24,
|
||
}
|
||
}
|
||
47 => {
|
||
__state_machine::SimulatedReduce::Reduce {
|
||
states_to_pop: 1,
|
||
nonterminal_produced: 24,
|
||
}
|
||
}
|
||
48 => {
|
||
__state_machine::SimulatedReduce::Reduce {
|
||
states_to_pop: 1,
|
||
nonterminal_produced: 25,
|
||
}
|
||
}
|
||
49 => {
|
||
__state_machine::SimulatedReduce::Reduce {
|
||
states_to_pop: 1,
|
||
nonterminal_produced: 25,
|
||
}
|
||
}
|
||
50 => {
|
||
__state_machine::SimulatedReduce::Reduce {
|
||
states_to_pop: 1,
|
||
nonterminal_produced: 25,
|
||
}
|
||
}
|
||
51 => {
|
||
__state_machine::SimulatedReduce::Reduce {
|
||
states_to_pop: 1,
|
||
nonterminal_produced: 25,
|
||
}
|
||
}
|
||
52 => {
|
||
__state_machine::SimulatedReduce::Reduce {
|
||
states_to_pop: 1,
|
||
nonterminal_produced: 26,
|
||
}
|
||
}
|
||
53 => {
|
||
__state_machine::SimulatedReduce::Reduce {
|
||
states_to_pop: 1,
|
||
nonterminal_produced: 27,
|
||
}
|
||
}
|
||
54 => {
|
||
__state_machine::SimulatedReduce::Reduce {
|
||
states_to_pop: 1,
|
||
nonterminal_produced: 27,
|
||
}
|
||
}
|
||
55 => __state_machine::SimulatedReduce::Accept,
|
||
_ => panic!("invalid reduction index {}", __reduce_index)
|
||
}
|
||
}
|
||
pub struct PipelineParser {
|
||
builder: super::__intern_token::__MatcherBuilder,
|
||
_priv: (),
|
||
}
|
||
|
||
impl PipelineParser {
|
||
pub fn new() -> PipelineParser {
|
||
let __builder = super::__intern_token::__MatcherBuilder::new();
|
||
PipelineParser {
|
||
builder: __builder,
|
||
_priv: (),
|
||
}
|
||
}
|
||
|
||
#[allow(dead_code)]
|
||
pub fn parse<
|
||
'input,
|
||
>(
|
||
&self,
|
||
input: &'input str,
|
||
) -> Result<Pipeline, __lalrpop_util::ParseError<usize, Token<'input>, &'static str>>
|
||
{
|
||
let mut __tokens = self.builder.matcher(input);
|
||
let __r = __state_machine::Parser::drive(
|
||
__StateMachine {
|
||
input,
|
||
__phantom: ::std::marker::PhantomData::<(&())>,
|
||
},
|
||
__tokens,
|
||
);
|
||
__r
|
||
}
|
||
}
|
||
pub(crate) fn __reduce<
|
||
'input,
|
||
>(
|
||
input: &'input str,
|
||
__action: i8,
|
||
__lookahead_start: Option<&usize>,
|
||
__states: &mut ::std::vec::Vec<i8>,
|
||
__symbols: &mut ::std::vec::Vec<(usize,__Symbol<'input>,usize)>,
|
||
_: ::std::marker::PhantomData<(&'input ())>,
|
||
) -> Option<Result<Pipeline,__lalrpop_util::ParseError<usize, Token<'input>, &'static str>>>
|
||
{
|
||
let (__pop_states, __nonterminal) = match __action {
|
||
0 => {
|
||
__reduce0(input, __action, __lookahead_start, __states, __symbols, ::std::marker::PhantomData::<(&())>)
|
||
}
|
||
1 => {
|
||
__reduce1(input, __action, __lookahead_start, __states, __symbols, ::std::marker::PhantomData::<(&())>)
|
||
}
|
||
2 => {
|
||
__reduce2(input, __action, __lookahead_start, __states, __symbols, ::std::marker::PhantomData::<(&())>)
|
||
}
|
||
3 => {
|
||
__reduce3(input, __action, __lookahead_start, __states, __symbols, ::std::marker::PhantomData::<(&())>)
|
||
}
|
||
4 => {
|
||
__reduce4(input, __action, __lookahead_start, __states, __symbols, ::std::marker::PhantomData::<(&())>)
|
||
}
|
||
5 => {
|
||
__reduce5(input, __action, __lookahead_start, __states, __symbols, ::std::marker::PhantomData::<(&())>)
|
||
}
|
||
6 => {
|
||
__reduce6(input, __action, __lookahead_start, __states, __symbols, ::std::marker::PhantomData::<(&())>)
|
||
}
|
||
7 => {
|
||
__reduce7(input, __action, __lookahead_start, __states, __symbols, ::std::marker::PhantomData::<(&())>)
|
||
}
|
||
8 => {
|
||
__reduce8(input, __action, __lookahead_start, __states, __symbols, ::std::marker::PhantomData::<(&())>)
|
||
}
|
||
9 => {
|
||
__reduce9(input, __action, __lookahead_start, __states, __symbols, ::std::marker::PhantomData::<(&())>)
|
||
}
|
||
10 => {
|
||
__reduce10(input, __action, __lookahead_start, __states, __symbols, ::std::marker::PhantomData::<(&())>)
|
||
}
|
||
11 => {
|
||
__reduce11(input, __action, __lookahead_start, __states, __symbols, ::std::marker::PhantomData::<(&())>)
|
||
}
|
||
12 => {
|
||
__reduce12(input, __action, __lookahead_start, __states, __symbols, ::std::marker::PhantomData::<(&())>)
|
||
}
|
||
13 => {
|
||
__reduce13(input, __action, __lookahead_start, __states, __symbols, ::std::marker::PhantomData::<(&())>)
|
||
}
|
||
14 => {
|
||
__reduce14(input, __action, __lookahead_start, __states, __symbols, ::std::marker::PhantomData::<(&())>)
|
||
}
|
||
15 => {
|
||
__reduce15(input, __action, __lookahead_start, __states, __symbols, ::std::marker::PhantomData::<(&())>)
|
||
}
|
||
16 => {
|
||
__reduce16(input, __action, __lookahead_start, __states, __symbols, ::std::marker::PhantomData::<(&())>)
|
||
}
|
||
17 => {
|
||
__reduce17(input, __action, __lookahead_start, __states, __symbols, ::std::marker::PhantomData::<(&())>)
|
||
}
|
||
18 => {
|
||
__reduce18(input, __action, __lookahead_start, __states, __symbols, ::std::marker::PhantomData::<(&())>)
|
||
}
|
||
19 => {
|
||
__reduce19(input, __action, __lookahead_start, __states, __symbols, ::std::marker::PhantomData::<(&())>)
|
||
}
|
||
20 => {
|
||
__reduce20(input, __action, __lookahead_start, __states, __symbols, ::std::marker::PhantomData::<(&())>)
|
||
}
|
||
21 => {
|
||
__reduce21(input, __action, __lookahead_start, __states, __symbols, ::std::marker::PhantomData::<(&())>)
|
||
}
|
||
22 => {
|
||
__reduce22(input, __action, __lookahead_start, __states, __symbols, ::std::marker::PhantomData::<(&())>)
|
||
}
|
||
23 => {
|
||
__reduce23(input, __action, __lookahead_start, __states, __symbols, ::std::marker::PhantomData::<(&())>)
|
||
}
|
||
24 => {
|
||
__reduce24(input, __action, __lookahead_start, __states, __symbols, ::std::marker::PhantomData::<(&())>)
|
||
}
|
||
25 => {
|
||
__reduce25(input, __action, __lookahead_start, __states, __symbols, ::std::marker::PhantomData::<(&())>)
|
||
}
|
||
26 => {
|
||
__reduce26(input, __action, __lookahead_start, __states, __symbols, ::std::marker::PhantomData::<(&())>)
|
||
}
|
||
27 => {
|
||
__reduce27(input, __action, __lookahead_start, __states, __symbols, ::std::marker::PhantomData::<(&())>)
|
||
}
|
||
28 => {
|
||
__reduce28(input, __action, __lookahead_start, __states, __symbols, ::std::marker::PhantomData::<(&())>)
|
||
}
|
||
29 => {
|
||
__reduce29(input, __action, __lookahead_start, __states, __symbols, ::std::marker::PhantomData::<(&())>)
|
||
}
|
||
30 => {
|
||
__reduce30(input, __action, __lookahead_start, __states, __symbols, ::std::marker::PhantomData::<(&())>)
|
||
}
|
||
31 => {
|
||
__reduce31(input, __action, __lookahead_start, __states, __symbols, ::std::marker::PhantomData::<(&())>)
|
||
}
|
||
32 => {
|
||
__reduce32(input, __action, __lookahead_start, __states, __symbols, ::std::marker::PhantomData::<(&())>)
|
||
}
|
||
33 => {
|
||
__reduce33(input, __action, __lookahead_start, __states, __symbols, ::std::marker::PhantomData::<(&())>)
|
||
}
|
||
34 => {
|
||
__reduce34(input, __action, __lookahead_start, __states, __symbols, ::std::marker::PhantomData::<(&())>)
|
||
}
|
||
35 => {
|
||
__reduce35(input, __action, __lookahead_start, __states, __symbols, ::std::marker::PhantomData::<(&())>)
|
||
}
|
||
36 => {
|
||
__reduce36(input, __action, __lookahead_start, __states, __symbols, ::std::marker::PhantomData::<(&())>)
|
||
}
|
||
37 => {
|
||
__reduce37(input, __action, __lookahead_start, __states, __symbols, ::std::marker::PhantomData::<(&())>)
|
||
}
|
||
38 => {
|
||
__reduce38(input, __action, __lookahead_start, __states, __symbols, ::std::marker::PhantomData::<(&())>)
|
||
}
|
||
39 => {
|
||
__reduce39(input, __action, __lookahead_start, __states, __symbols, ::std::marker::PhantomData::<(&())>)
|
||
}
|
||
40 => {
|
||
__reduce40(input, __action, __lookahead_start, __states, __symbols, ::std::marker::PhantomData::<(&())>)
|
||
}
|
||
41 => {
|
||
__reduce41(input, __action, __lookahead_start, __states, __symbols, ::std::marker::PhantomData::<(&())>)
|
||
}
|
||
42 => {
|
||
__reduce42(input, __action, __lookahead_start, __states, __symbols, ::std::marker::PhantomData::<(&())>)
|
||
}
|
||
43 => {
|
||
__reduce43(input, __action, __lookahead_start, __states, __symbols, ::std::marker::PhantomData::<(&())>)
|
||
}
|
||
44 => {
|
||
__reduce44(input, __action, __lookahead_start, __states, __symbols, ::std::marker::PhantomData::<(&())>)
|
||
}
|
||
45 => {
|
||
__reduce45(input, __action, __lookahead_start, __states, __symbols, ::std::marker::PhantomData::<(&())>)
|
||
}
|
||
46 => {
|
||
__reduce46(input, __action, __lookahead_start, __states, __symbols, ::std::marker::PhantomData::<(&())>)
|
||
}
|
||
47 => {
|
||
__reduce47(input, __action, __lookahead_start, __states, __symbols, ::std::marker::PhantomData::<(&())>)
|
||
}
|
||
48 => {
|
||
__reduce48(input, __action, __lookahead_start, __states, __symbols, ::std::marker::PhantomData::<(&())>)
|
||
}
|
||
49 => {
|
||
__reduce49(input, __action, __lookahead_start, __states, __symbols, ::std::marker::PhantomData::<(&())>)
|
||
}
|
||
50 => {
|
||
__reduce50(input, __action, __lookahead_start, __states, __symbols, ::std::marker::PhantomData::<(&())>)
|
||
}
|
||
51 => {
|
||
__reduce51(input, __action, __lookahead_start, __states, __symbols, ::std::marker::PhantomData::<(&())>)
|
||
}
|
||
52 => {
|
||
__reduce52(input, __action, __lookahead_start, __states, __symbols, ::std::marker::PhantomData::<(&())>)
|
||
}
|
||
53 => {
|
||
__reduce53(input, __action, __lookahead_start, __states, __symbols, ::std::marker::PhantomData::<(&())>)
|
||
}
|
||
54 => {
|
||
__reduce54(input, __action, __lookahead_start, __states, __symbols, ::std::marker::PhantomData::<(&())>)
|
||
}
|
||
55 => {
|
||
// __Pipeline = Pipeline => ActionFn(0);
|
||
let __sym0 = __pop_Variant10(__symbols);
|
||
let __start = __sym0.0.clone();
|
||
let __end = __sym0.2.clone();
|
||
let __nt = super::__action0::<>(input, __sym0);
|
||
return Some(Ok(__nt));
|
||
}
|
||
_ => panic!("invalid action code {}", __action)
|
||
};
|
||
let __states_len = __states.len();
|
||
__states.truncate(__states_len - __pop_states);
|
||
let __state = *__states.last().unwrap() as usize;
|
||
let __next_state = __GOTO[__state * 29 + __nonterminal] - 1;
|
||
__states.push(__next_state);
|
||
None
|
||
}
|
||
fn __pop_Variant5<
|
||
'input,
|
||
>(
|
||
__symbols: &mut ::std::vec::Vec<(usize,__Symbol<'input>,usize)>
|
||
) -> (usize, Expression, usize)
|
||
{
|
||
match __symbols.pop().unwrap() {
|
||
(__l, __Symbol::Variant5(__v), __r) => (__l, __v, __r),
|
||
_ => panic!("symbol type mismatch")
|
||
}
|
||
}
|
||
fn __pop_Variant7<
|
||
'input,
|
||
>(
|
||
__symbols: &mut ::std::vec::Vec<(usize,__Symbol<'input>,usize)>
|
||
) -> (usize, Flag, usize)
|
||
{
|
||
match __symbols.pop().unwrap() {
|
||
(__l, __Symbol::Variant7(__v), __r) => (__l, __v, __r),
|
||
_ => panic!("symbol type mismatch")
|
||
}
|
||
}
|
||
fn __pop_Variant9<
|
||
'input,
|
||
>(
|
||
__symbols: &mut ::std::vec::Vec<(usize,__Symbol<'input>,usize)>
|
||
) -> (usize, Operator, usize)
|
||
{
|
||
match __symbols.pop().unwrap() {
|
||
(__l, __Symbol::Variant9(__v), __r) => (__l, __v, __r),
|
||
_ => panic!("symbol type mismatch")
|
||
}
|
||
}
|
||
fn __pop_Variant3<
|
||
'input,
|
||
>(
|
||
__symbols: &mut ::std::vec::Vec<(usize,__Symbol<'input>,usize)>
|
||
) -> (usize, ParsedCommand, usize)
|
||
{
|
||
match __symbols.pop().unwrap() {
|
||
(__l, __Symbol::Variant3(__v), __r) => (__l, __v, __r),
|
||
_ => panic!("symbol type mismatch")
|
||
}
|
||
}
|
||
fn __pop_Variant10<
|
||
'input,
|
||
>(
|
||
__symbols: &mut ::std::vec::Vec<(usize,__Symbol<'input>,usize)>
|
||
) -> (usize, Pipeline, usize)
|
||
{
|
||
match __symbols.pop().unwrap() {
|
||
(__l, __Symbol::Variant10(__v), __r) => (__l, __v, __r),
|
||
_ => panic!("symbol type mismatch")
|
||
}
|
||
}
|
||
fn __pop_Variant1<
|
||
'input,
|
||
>(
|
||
__symbols: &mut ::std::vec::Vec<(usize,__Symbol<'input>,usize)>
|
||
) -> (usize, String, usize)
|
||
{
|
||
match __symbols.pop().unwrap() {
|
||
(__l, __Symbol::Variant1(__v), __r) => (__l, __v, __r),
|
||
_ => panic!("symbol type mismatch")
|
||
}
|
||
}
|
||
fn __pop_Variant11<
|
||
'input,
|
||
>(
|
||
__symbols: &mut ::std::vec::Vec<(usize,__Symbol<'input>,usize)>
|
||
) -> (usize, Variable, usize)
|
||
{
|
||
match __symbols.pop().unwrap() {
|
||
(__l, __Symbol::Variant11(__v), __r) => (__l, __v, __r),
|
||
_ => panic!("symbol type mismatch")
|
||
}
|
||
}
|
||
fn __pop_Variant8<
|
||
'input,
|
||
>(
|
||
__symbols: &mut ::std::vec::Vec<(usize,__Symbol<'input>,usize)>
|
||
) -> (usize, i64, usize)
|
||
{
|
||
match __symbols.pop().unwrap() {
|
||
(__l, __Symbol::Variant8(__v), __r) => (__l, __v, __r),
|
||
_ => panic!("symbol type mismatch")
|
||
}
|
||
}
|
||
fn __pop_Variant6<
|
||
'input,
|
||
>(
|
||
__symbols: &mut ::std::vec::Vec<(usize,__Symbol<'input>,usize)>
|
||
) -> (usize, ::std::vec::Vec<Expression>, 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, ::std::vec::Vec<ParsedCommand>, usize)
|
||
{
|
||
match __symbols.pop().unwrap() {
|
||
(__l, __Symbol::Variant4(__v), __r) => (__l, __v, __r),
|
||
_ => panic!("symbol type mismatch")
|
||
}
|
||
}
|
||
fn __pop_Variant2<
|
||
'input,
|
||
>(
|
||
__symbols: &mut ::std::vec::Vec<(usize,__Symbol<'input>,usize)>
|
||
) -> (usize, ::std::vec::Vec<String>, usize)
|
||
{
|
||
match __symbols.pop().unwrap() {
|
||
(__l, __Symbol::Variant2(__v), __r) => (__l, __v, __r),
|
||
_ => panic!("symbol type mismatch")
|
||
}
|
||
}
|
||
fn __pop_Variant0<
|
||
'input,
|
||
>(
|
||
__symbols: &mut ::std::vec::Vec<(usize,__Symbol<'input>,usize)>
|
||
) -> (usize, &'input str, usize)
|
||
{
|
||
match __symbols.pop().unwrap() {
|
||
(__l, __Symbol::Variant0(__v), __r) => (__l, __v, __r),
|
||
_ => panic!("symbol type mismatch")
|
||
}
|
||
}
|
||
pub(crate) fn __reduce0<
|
||
'input,
|
||
>(
|
||
input: &'input str,
|
||
__action: i8,
|
||
__lookahead_start: Option<&usize>,
|
||
__states: &mut ::std::vec::Vec<i8>,
|
||
__symbols: &mut ::std::vec::Vec<(usize,__Symbol<'input>,usize)>,
|
||
_: ::std::marker::PhantomData<(&'input ())>,
|
||
) -> (usize, usize)
|
||
{
|
||
// ("." <Member>) = ".", Member => ActionFn(47);
|
||
let __sym1 = __pop_Variant1(__symbols);
|
||
let __sym0 = __pop_Variant0(__symbols);
|
||
let __start = __sym0.0.clone();
|
||
let __end = __sym1.2.clone();
|
||
let __nt = super::__action47::<>(input, __sym0, __sym1);
|
||
__symbols.push((__start, __Symbol::Variant1(__nt), __end));
|
||
(2, 0)
|
||
}
|
||
pub(crate) fn __reduce1<
|
||
'input,
|
||
>(
|
||
input: &'input str,
|
||
__action: i8,
|
||
__lookahead_start: Option<&usize>,
|
||
__states: &mut ::std::vec::Vec<i8>,
|
||
__symbols: &mut ::std::vec::Vec<(usize,__Symbol<'input>,usize)>,
|
||
_: ::std::marker::PhantomData<(&'input ())>,
|
||
) -> (usize, usize)
|
||
{
|
||
// ("." <Member>)+ = ".", Member => ActionFn(55);
|
||
let __sym1 = __pop_Variant1(__symbols);
|
||
let __sym0 = __pop_Variant0(__symbols);
|
||
let __start = __sym0.0.clone();
|
||
let __end = __sym1.2.clone();
|
||
let __nt = super::__action55::<>(input, __sym0, __sym1);
|
||
__symbols.push((__start, __Symbol::Variant2(__nt), __end));
|
||
(2, 1)
|
||
}
|
||
pub(crate) fn __reduce2<
|
||
'input,
|
||
>(
|
||
input: &'input str,
|
||
__action: i8,
|
||
__lookahead_start: Option<&usize>,
|
||
__states: &mut ::std::vec::Vec<i8>,
|
||
__symbols: &mut ::std::vec::Vec<(usize,__Symbol<'input>,usize)>,
|
||
_: ::std::marker::PhantomData<(&'input ())>,
|
||
) -> (usize, usize)
|
||
{
|
||
// ("." <Member>)+ = ("." <Member>)+, ".", Member => ActionFn(56);
|
||
let __sym2 = __pop_Variant1(__symbols);
|
||
let __sym1 = __pop_Variant0(__symbols);
|
||
let __sym0 = __pop_Variant2(__symbols);
|
||
let __start = __sym0.0.clone();
|
||
let __end = __sym2.2.clone();
|
||
let __nt = super::__action56::<>(input, __sym0, __sym1, __sym2);
|
||
__symbols.push((__start, __Symbol::Variant2(__nt), __end));
|
||
(3, 1)
|
||
}
|
||
pub(crate) fn __reduce3<
|
||
'input,
|
||
>(
|
||
input: &'input str,
|
||
__action: i8,
|
||
__lookahead_start: Option<&usize>,
|
||
__states: &mut ::std::vec::Vec<i8>,
|
||
__symbols: &mut ::std::vec::Vec<(usize,__Symbol<'input>,usize)>,
|
||
_: ::std::marker::PhantomData<(&'input ())>,
|
||
) -> (usize, usize)
|
||
{
|
||
// ("|" <Command>) = "|", Command => ActionFn(52);
|
||
let __sym1 = __pop_Variant3(__symbols);
|
||
let __sym0 = __pop_Variant0(__symbols);
|
||
let __start = __sym0.0.clone();
|
||
let __end = __sym1.2.clone();
|
||
let __nt = super::__action52::<>(input, __sym0, __sym1);
|
||
__symbols.push((__start, __Symbol::Variant3(__nt), __end));
|
||
(2, 2)
|
||
}
|
||
pub(crate) fn __reduce4<
|
||
'input,
|
||
>(
|
||
input: &'input str,
|
||
__action: i8,
|
||
__lookahead_start: Option<&usize>,
|
||
__states: &mut ::std::vec::Vec<i8>,
|
||
__symbols: &mut ::std::vec::Vec<(usize,__Symbol<'input>,usize)>,
|
||
_: ::std::marker::PhantomData<(&'input ())>,
|
||
) -> (usize, usize)
|
||
{
|
||
// ("|" <Command>)+ = "|", Command => ActionFn(57);
|
||
let __sym1 = __pop_Variant3(__symbols);
|
||
let __sym0 = __pop_Variant0(__symbols);
|
||
let __start = __sym0.0.clone();
|
||
let __end = __sym1.2.clone();
|
||
let __nt = super::__action57::<>(input, __sym0, __sym1);
|
||
__symbols.push((__start, __Symbol::Variant4(__nt), __end));
|
||
(2, 3)
|
||
}
|
||
pub(crate) fn __reduce5<
|
||
'input,
|
||
>(
|
||
input: &'input str,
|
||
__action: i8,
|
||
__lookahead_start: Option<&usize>,
|
||
__states: &mut ::std::vec::Vec<i8>,
|
||
__symbols: &mut ::std::vec::Vec<(usize,__Symbol<'input>,usize)>,
|
||
_: ::std::marker::PhantomData<(&'input ())>,
|
||
) -> (usize, usize)
|
||
{
|
||
// ("|" <Command>)+ = ("|" <Command>)+, "|", Command => ActionFn(58);
|
||
let __sym2 = __pop_Variant3(__symbols);
|
||
let __sym1 = __pop_Variant0(__symbols);
|
||
let __sym0 = __pop_Variant4(__symbols);
|
||
let __start = __sym0.0.clone();
|
||
let __end = __sym2.2.clone();
|
||
let __nt = super::__action58::<>(input, __sym0, __sym1, __sym2);
|
||
__symbols.push((__start, __Symbol::Variant4(__nt), __end));
|
||
(3, 3)
|
||
}
|
||
pub(crate) fn __reduce6<
|
||
'input,
|
||
>(
|
||
input: &'input str,
|
||
__action: i8,
|
||
__lookahead_start: Option<&usize>,
|
||
__states: &mut ::std::vec::Vec<i8>,
|
||
__symbols: &mut ::std::vec::Vec<(usize,__Symbol<'input>,usize)>,
|
||
_: ::std::marker::PhantomData<(&'input ())>,
|
||
) -> (usize, usize)
|
||
{
|
||
// AtomicExpression = Parenthesized => ActionFn(12);
|
||
let __sym0 = __pop_Variant5(__symbols);
|
||
let __start = __sym0.0.clone();
|
||
let __end = __sym0.2.clone();
|
||
let __nt = super::__action12::<>(input, __sym0);
|
||
__symbols.push((__start, __Symbol::Variant5(__nt), __end));
|
||
(1, 4)
|
||
}
|
||
pub(crate) fn __reduce7<
|
||
'input,
|
||
>(
|
||
input: &'input str,
|
||
__action: i8,
|
||
__lookahead_start: Option<&usize>,
|
||
__states: &mut ::std::vec::Vec<i8>,
|
||
__symbols: &mut ::std::vec::Vec<(usize,__Symbol<'input>,usize)>,
|
||
_: ::std::marker::PhantomData<(&'input ())>,
|
||
) -> (usize, usize)
|
||
{
|
||
// AtomicExpression = Leaf => ActionFn(13);
|
||
let __sym0 = __pop_Variant5(__symbols);
|
||
let __start = __sym0.0.clone();
|
||
let __end = __sym0.2.clone();
|
||
let __nt = super::__action13::<>(input, __sym0);
|
||
__symbols.push((__start, __Symbol::Variant5(__nt), __end));
|
||
(1, 4)
|
||
}
|
||
pub(crate) fn __reduce8<
|
||
'input,
|
||
>(
|
||
input: &'input str,
|
||
__action: i8,
|
||
__lookahead_start: Option<&usize>,
|
||
__states: &mut ::std::vec::Vec<i8>,
|
||
__symbols: &mut ::std::vec::Vec<(usize,__Symbol<'input>,usize)>,
|
||
_: ::std::marker::PhantomData<(&'input ())>,
|
||
) -> (usize, usize)
|
||
{
|
||
// BareWord = RawBareWord => ActionFn(38);
|
||
let __sym0 = __pop_Variant1(__symbols);
|
||
let __start = __sym0.0.clone();
|
||
let __end = __sym0.2.clone();
|
||
let __nt = super::__action38::<>(input, __sym0);
|
||
__symbols.push((__start, __Symbol::Variant1(__nt), __end));
|
||
(1, 5)
|
||
}
|
||
pub(crate) fn __reduce9<
|
||
'input,
|
||
>(
|
||
input: &'input str,
|
||
__action: i8,
|
||
__lookahead_start: Option<&usize>,
|
||
__states: &mut ::std::vec::Vec<i8>,
|
||
__symbols: &mut ::std::vec::Vec<(usize,__Symbol<'input>,usize)>,
|
||
_: ::std::marker::PhantomData<(&'input ())>,
|
||
) -> (usize, usize)
|
||
{
|
||
// BinaryExpression = Expr, Operator, Leaf => ActionFn(9);
|
||
let __sym2 = __pop_Variant5(__symbols);
|
||
let __sym1 = __pop_Variant9(__symbols);
|
||
let __sym0 = __pop_Variant5(__symbols);
|
||
let __start = __sym0.0.clone();
|
||
let __end = __sym2.2.clone();
|
||
let __nt = super::__action9::<>(input, __sym0, __sym1, __sym2);
|
||
__symbols.push((__start, __Symbol::Variant5(__nt), __end));
|
||
(3, 6)
|
||
}
|
||
pub(crate) fn __reduce10<
|
||
'input,
|
||
>(
|
||
input: &'input str,
|
||
__action: i8,
|
||
__lookahead_start: Option<&usize>,
|
||
__states: &mut ::std::vec::Vec<i8>,
|
||
__symbols: &mut ::std::vec::Vec<(usize,__Symbol<'input>,usize)>,
|
||
_: ::std::marker::PhantomData<(&'input ())>,
|
||
) -> (usize, usize)
|
||
{
|
||
// Block = "{", AtomicExpression, "}" => ActionFn(14);
|
||
let __sym2 = __pop_Variant0(__symbols);
|
||
let __sym1 = __pop_Variant5(__symbols);
|
||
let __sym0 = __pop_Variant0(__symbols);
|
||
let __start = __sym0.0.clone();
|
||
let __end = __sym2.2.clone();
|
||
let __nt = super::__action14::<>(input, __sym0, __sym1, __sym2);
|
||
__symbols.push((__start, __Symbol::Variant5(__nt), __end));
|
||
(3, 7)
|
||
}
|
||
pub(crate) fn __reduce11<
|
||
'input,
|
||
>(
|
||
input: &'input str,
|
||
__action: i8,
|
||
__lookahead_start: Option<&usize>,
|
||
__states: &mut ::std::vec::Vec<i8>,
|
||
__symbols: &mut ::std::vec::Vec<(usize,__Symbol<'input>,usize)>,
|
||
_: ::std::marker::PhantomData<(&'input ())>,
|
||
) -> (usize, usize)
|
||
{
|
||
// Block = "{", BinaryExpression, "}" => ActionFn(15);
|
||
let __sym2 = __pop_Variant0(__symbols);
|
||
let __sym1 = __pop_Variant5(__symbols);
|
||
let __sym0 = __pop_Variant0(__symbols);
|
||
let __start = __sym0.0.clone();
|
||
let __end = __sym2.2.clone();
|
||
let __nt = super::__action15::<>(input, __sym0, __sym1, __sym2);
|
||
__symbols.push((__start, __Symbol::Variant5(__nt), __end));
|
||
(3, 7)
|
||
}
|
||
pub(crate) fn __reduce12<
|
||
'input,
|
||
>(
|
||
input: &'input str,
|
||
__action: i8,
|
||
__lookahead_start: Option<&usize>,
|
||
__states: &mut ::std::vec::Vec<i8>,
|
||
__symbols: &mut ::std::vec::Vec<(usize,__Symbol<'input>,usize)>,
|
||
_: ::std::marker::PhantomData<(&'input ())>,
|
||
) -> (usize, usize)
|
||
{
|
||
// Command = BareWord => ActionFn(59);
|
||
let __sym0 = __pop_Variant1(__symbols);
|
||
let __start = __sym0.0.clone();
|
||
let __end = __sym0.2.clone();
|
||
let __nt = super::__action59::<>(input, __sym0);
|
||
__symbols.push((__start, __Symbol::Variant3(__nt), __end));
|
||
(1, 8)
|
||
}
|
||
pub(crate) fn __reduce13<
|
||
'input,
|
||
>(
|
||
input: &'input str,
|
||
__action: i8,
|
||
__lookahead_start: Option<&usize>,
|
||
__states: &mut ::std::vec::Vec<i8>,
|
||
__symbols: &mut ::std::vec::Vec<(usize,__Symbol<'input>,usize)>,
|
||
_: ::std::marker::PhantomData<(&'input ())>,
|
||
) -> (usize, usize)
|
||
{
|
||
// Command = BareWord, Expr+ => ActionFn(60);
|
||
let __sym1 = __pop_Variant6(__symbols);
|
||
let __sym0 = __pop_Variant1(__symbols);
|
||
let __start = __sym0.0.clone();
|
||
let __end = __sym1.2.clone();
|
||
let __nt = super::__action60::<>(input, __sym0, __sym1);
|
||
__symbols.push((__start, __Symbol::Variant3(__nt), __end));
|
||
(2, 8)
|
||
}
|
||
pub(crate) fn __reduce14<
|
||
'input,
|
||
>(
|
||
input: &'input str,
|
||
__action: i8,
|
||
__lookahead_start: Option<&usize>,
|
||
__states: &mut ::std::vec::Vec<i8>,
|
||
__symbols: &mut ::std::vec::Vec<(usize,__Symbol<'input>,usize)>,
|
||
_: ::std::marker::PhantomData<(&'input ())>,
|
||
) -> (usize, usize)
|
||
{
|
||
// Command = BareWord, BinaryExpression => ActionFn(4);
|
||
let __sym1 = __pop_Variant5(__symbols);
|
||
let __sym0 = __pop_Variant1(__symbols);
|
||
let __start = __sym0.0.clone();
|
||
let __end = __sym1.2.clone();
|
||
let __nt = super::__action4::<>(input, __sym0, __sym1);
|
||
__symbols.push((__start, __Symbol::Variant3(__nt), __end));
|
||
(2, 8)
|
||
}
|
||
pub(crate) fn __reduce15<
|
||
'input,
|
||
>(
|
||
input: &'input str,
|
||
__action: i8,
|
||
__lookahead_start: Option<&usize>,
|
||
__states: &mut ::std::vec::Vec<i8>,
|
||
__symbols: &mut ::std::vec::Vec<(usize,__Symbol<'input>,usize)>,
|
||
_: ::std::marker::PhantomData<(&'input ())>,
|
||
) -> (usize, usize)
|
||
{
|
||
// DQString = r#"\"([^\"]|\\\\\")*\""# => ActionFn(41);
|
||
let __sym0 = __pop_Variant0(__symbols);
|
||
let __start = __sym0.0.clone();
|
||
let __end = __sym0.2.clone();
|
||
let __nt = super::__action41::<>(input, __sym0);
|
||
__symbols.push((__start, __Symbol::Variant1(__nt), __end));
|
||
(1, 9)
|
||
}
|
||
pub(crate) fn __reduce16<
|
||
'input,
|
||
>(
|
||
input: &'input str,
|
||
__action: i8,
|
||
__lookahead_start: Option<&usize>,
|
||
__states: &mut ::std::vec::Vec<i8>,
|
||
__symbols: &mut ::std::vec::Vec<(usize,__Symbol<'input>,usize)>,
|
||
_: ::std::marker::PhantomData<(&'input ())>,
|
||
) -> (usize, usize)
|
||
{
|
||
// Expr = BareWord => ActionFn(19);
|
||
let __sym0 = __pop_Variant1(__symbols);
|
||
let __start = __sym0.0.clone();
|
||
let __end = __sym0.2.clone();
|
||
let __nt = super::__action19::<>(input, __sym0);
|
||
__symbols.push((__start, __Symbol::Variant5(__nt), __end));
|
||
(1, 10)
|
||
}
|
||
pub(crate) fn __reduce17<
|
||
'input,
|
||
>(
|
||
input: &'input str,
|
||
__action: i8,
|
||
__lookahead_start: Option<&usize>,
|
||
__states: &mut ::std::vec::Vec<i8>,
|
||
__symbols: &mut ::std::vec::Vec<(usize,__Symbol<'input>,usize)>,
|
||
_: ::std::marker::PhantomData<(&'input ())>,
|
||
) -> (usize, usize)
|
||
{
|
||
// Expr = WholeExpression => ActionFn(20);
|
||
let __sym0 = __pop_Variant5(__symbols);
|
||
let __start = __sym0.0.clone();
|
||
let __end = __sym0.2.clone();
|
||
let __nt = super::__action20::<>(input, __sym0);
|
||
__symbols.push((__start, __Symbol::Variant5(__nt), __end));
|
||
(1, 10)
|
||
}
|
||
pub(crate) fn __reduce18<
|
||
'input,
|
||
>(
|
||
input: &'input str,
|
||
__action: i8,
|
||
__lookahead_start: Option<&usize>,
|
||
__states: &mut ::std::vec::Vec<i8>,
|
||
__symbols: &mut ::std::vec::Vec<(usize,__Symbol<'input>,usize)>,
|
||
_: ::std::marker::PhantomData<(&'input ())>,
|
||
) -> (usize, usize)
|
||
{
|
||
// Expr = PathExpression => ActionFn(21);
|
||
let __sym0 = __pop_Variant5(__symbols);
|
||
let __start = __sym0.0.clone();
|
||
let __end = __sym0.2.clone();
|
||
let __nt = super::__action21::<>(input, __sym0);
|
||
__symbols.push((__start, __Symbol::Variant5(__nt), __end));
|
||
(1, 10)
|
||
}
|
||
pub(crate) fn __reduce19<
|
||
'input,
|
||
>(
|
||
input: &'input str,
|
||
__action: i8,
|
||
__lookahead_start: Option<&usize>,
|
||
__states: &mut ::std::vec::Vec<i8>,
|
||
__symbols: &mut ::std::vec::Vec<(usize,__Symbol<'input>,usize)>,
|
||
_: ::std::marker::PhantomData<(&'input ())>,
|
||
) -> (usize, usize)
|
||
{
|
||
// Expr* = => ActionFn(48);
|
||
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::__action48::<>(input, &__start, &__end);
|
||
__symbols.push((__start, __Symbol::Variant6(__nt), __end));
|
||
(0, 11)
|
||
}
|
||
pub(crate) fn __reduce20<
|
||
'input,
|
||
>(
|
||
input: &'input str,
|
||
__action: i8,
|
||
__lookahead_start: Option<&usize>,
|
||
__states: &mut ::std::vec::Vec<i8>,
|
||
__symbols: &mut ::std::vec::Vec<(usize,__Symbol<'input>,usize)>,
|
||
_: ::std::marker::PhantomData<(&'input ())>,
|
||
) -> (usize, usize)
|
||
{
|
||
// Expr* = Expr+ => ActionFn(49);
|
||
let __sym0 = __pop_Variant6(__symbols);
|
||
let __start = __sym0.0.clone();
|
||
let __end = __sym0.2.clone();
|
||
let __nt = super::__action49::<>(input, __sym0);
|
||
__symbols.push((__start, __Symbol::Variant6(__nt), __end));
|
||
(1, 11)
|
||
}
|
||
pub(crate) fn __reduce21<
|
||
'input,
|
||
>(
|
||
input: &'input str,
|
||
__action: i8,
|
||
__lookahead_start: Option<&usize>,
|
||
__states: &mut ::std::vec::Vec<i8>,
|
||
__symbols: &mut ::std::vec::Vec<(usize,__Symbol<'input>,usize)>,
|
||
_: ::std::marker::PhantomData<(&'input ())>,
|
||
) -> (usize, usize)
|
||
{
|
||
// Expr+ = Expr => ActionFn(53);
|
||
let __sym0 = __pop_Variant5(__symbols);
|
||
let __start = __sym0.0.clone();
|
||
let __end = __sym0.2.clone();
|
||
let __nt = super::__action53::<>(input, __sym0);
|
||
__symbols.push((__start, __Symbol::Variant6(__nt), __end));
|
||
(1, 12)
|
||
}
|
||
pub(crate) fn __reduce22<
|
||
'input,
|
||
>(
|
||
input: &'input str,
|
||
__action: i8,
|
||
__lookahead_start: Option<&usize>,
|
||
__states: &mut ::std::vec::Vec<i8>,
|
||
__symbols: &mut ::std::vec::Vec<(usize,__Symbol<'input>,usize)>,
|
||
_: ::std::marker::PhantomData<(&'input ())>,
|
||
) -> (usize, usize)
|
||
{
|
||
// Expr+ = Expr+, Expr => ActionFn(54);
|
||
let __sym1 = __pop_Variant5(__symbols);
|
||
let __sym0 = __pop_Variant6(__symbols);
|
||
let __start = __sym0.0.clone();
|
||
let __end = __sym1.2.clone();
|
||
let __nt = super::__action54::<>(input, __sym0, __sym1);
|
||
__symbols.push((__start, __Symbol::Variant6(__nt), __end));
|
||
(2, 12)
|
||
}
|
||
pub(crate) fn __reduce23<
|
||
'input,
|
||
>(
|
||
input: &'input str,
|
||
__action: i8,
|
||
__lookahead_start: Option<&usize>,
|
||
__states: &mut ::std::vec::Vec<i8>,
|
||
__symbols: &mut ::std::vec::Vec<(usize,__Symbol<'input>,usize)>,
|
||
_: ::std::marker::PhantomData<(&'input ())>,
|
||
) -> (usize, usize)
|
||
{
|
||
// Flag = "-", BareWord => ActionFn(34);
|
||
let __sym1 = __pop_Variant1(__symbols);
|
||
let __sym0 = __pop_Variant0(__symbols);
|
||
let __start = __sym0.0.clone();
|
||
let __end = __sym1.2.clone();
|
||
let __nt = super::__action34::<>(input, __sym0, __sym1);
|
||
__symbols.push((__start, __Symbol::Variant7(__nt), __end));
|
||
(2, 13)
|
||
}
|
||
pub(crate) fn __reduce24<
|
||
'input,
|
||
>(
|
||
input: &'input str,
|
||
__action: i8,
|
||
__lookahead_start: Option<&usize>,
|
||
__states: &mut ::std::vec::Vec<i8>,
|
||
__symbols: &mut ::std::vec::Vec<(usize,__Symbol<'input>,usize)>,
|
||
_: ::std::marker::PhantomData<(&'input ())>,
|
||
) -> (usize, usize)
|
||
{
|
||
// Flag = "--", BareWord => ActionFn(35);
|
||
let __sym1 = __pop_Variant1(__symbols);
|
||
let __sym0 = __pop_Variant0(__symbols);
|
||
let __start = __sym0.0.clone();
|
||
let __end = __sym1.2.clone();
|
||
let __nt = super::__action35::<>(input, __sym0, __sym1);
|
||
__symbols.push((__start, __Symbol::Variant7(__nt), __end));
|
||
(2, 13)
|
||
}
|
||
pub(crate) fn __reduce25<
|
||
'input,
|
||
>(
|
||
input: &'input str,
|
||
__action: i8,
|
||
__lookahead_start: Option<&usize>,
|
||
__states: &mut ::std::vec::Vec<i8>,
|
||
__symbols: &mut ::std::vec::Vec<(usize,__Symbol<'input>,usize)>,
|
||
_: ::std::marker::PhantomData<(&'input ())>,
|
||
) -> (usize, usize)
|
||
{
|
||
// Leaf = String => ActionFn(5);
|
||
let __sym0 = __pop_Variant1(__symbols);
|
||
let __start = __sym0.0.clone();
|
||
let __end = __sym0.2.clone();
|
||
let __nt = super::__action5::<>(input, __sym0);
|
||
__symbols.push((__start, __Symbol::Variant5(__nt), __end));
|
||
(1, 14)
|
||
}
|
||
pub(crate) fn __reduce26<
|
||
'input,
|
||
>(
|
||
input: &'input str,
|
||
__action: i8,
|
||
__lookahead_start: Option<&usize>,
|
||
__states: &mut ::std::vec::Vec<i8>,
|
||
__symbols: &mut ::std::vec::Vec<(usize,__Symbol<'input>,usize)>,
|
||
_: ::std::marker::PhantomData<(&'input ())>,
|
||
) -> (usize, usize)
|
||
{
|
||
// Leaf = Num => ActionFn(6);
|
||
let __sym0 = __pop_Variant8(__symbols);
|
||
let __start = __sym0.0.clone();
|
||
let __end = __sym0.2.clone();
|
||
let __nt = super::__action6::<>(input, __sym0);
|
||
__symbols.push((__start, __Symbol::Variant5(__nt), __end));
|
||
(1, 14)
|
||
}
|
||
pub(crate) fn __reduce27<
|
||
'input,
|
||
>(
|
||
input: &'input str,
|
||
__action: i8,
|
||
__lookahead_start: Option<&usize>,
|
||
__states: &mut ::std::vec::Vec<i8>,
|
||
__symbols: &mut ::std::vec::Vec<(usize,__Symbol<'input>,usize)>,
|
||
_: ::std::marker::PhantomData<(&'input ())>,
|
||
) -> (usize, usize)
|
||
{
|
||
// Leaf = Size => ActionFn(7);
|
||
let __sym0 = __pop_Variant8(__symbols);
|
||
let __start = __sym0.0.clone();
|
||
let __end = __sym0.2.clone();
|
||
let __nt = super::__action7::<>(input, __sym0);
|
||
__symbols.push((__start, __Symbol::Variant5(__nt), __end));
|
||
(1, 14)
|
||
}
|
||
pub(crate) fn __reduce28<
|
||
'input,
|
||
>(
|
||
input: &'input str,
|
||
__action: i8,
|
||
__lookahead_start: Option<&usize>,
|
||
__states: &mut ::std::vec::Vec<i8>,
|
||
__symbols: &mut ::std::vec::Vec<(usize,__Symbol<'input>,usize)>,
|
||
_: ::std::marker::PhantomData<(&'input ())>,
|
||
) -> (usize, usize)
|
||
{
|
||
// Leaf = Variable => ActionFn(8);
|
||
let __sym0 = __pop_Variant11(__symbols);
|
||
let __start = __sym0.0.clone();
|
||
let __end = __sym0.2.clone();
|
||
let __nt = super::__action8::<>(input, __sym0);
|
||
__symbols.push((__start, __Symbol::Variant5(__nt), __end));
|
||
(1, 14)
|
||
}
|
||
pub(crate) fn __reduce29<
|
||
'input,
|
||
>(
|
||
input: &'input str,
|
||
__action: i8,
|
||
__lookahead_start: Option<&usize>,
|
||
__states: &mut ::std::vec::Vec<i8>,
|
||
__symbols: &mut ::std::vec::Vec<(usize,__Symbol<'input>,usize)>,
|
||
_: ::std::marker::PhantomData<(&'input ())>,
|
||
) -> (usize, usize)
|
||
{
|
||
// Member = BareWord => ActionFn(26);
|
||
let __sym0 = __pop_Variant1(__symbols);
|
||
let __start = __sym0.0.clone();
|
||
let __end = __sym0.2.clone();
|
||
let __nt = super::__action26::<>(input, __sym0);
|
||
__symbols.push((__start, __Symbol::Variant1(__nt), __end));
|
||
(1, 15)
|
||
}
|
||
pub(crate) fn __reduce30<
|
||
'input,
|
||
>(
|
||
input: &'input str,
|
||
__action: i8,
|
||
__lookahead_start: Option<&usize>,
|
||
__states: &mut ::std::vec::Vec<i8>,
|
||
__symbols: &mut ::std::vec::Vec<(usize,__Symbol<'input>,usize)>,
|
||
_: ::std::marker::PhantomData<(&'input ())>,
|
||
) -> (usize, usize)
|
||
{
|
||
// Member = String => ActionFn(27);
|
||
let __sym0 = __pop_Variant1(__symbols);
|
||
let __start = __sym0.0.clone();
|
||
let __end = __sym0.2.clone();
|
||
let __nt = super::__action27::<>(input, __sym0);
|
||
__symbols.push((__start, __Symbol::Variant1(__nt), __end));
|
||
(1, 15)
|
||
}
|
||
pub(crate) fn __reduce31<
|
||
'input,
|
||
>(
|
||
input: &'input str,
|
||
__action: i8,
|
||
__lookahead_start: Option<&usize>,
|
||
__states: &mut ::std::vec::Vec<i8>,
|
||
__symbols: &mut ::std::vec::Vec<(usize,__Symbol<'input>,usize)>,
|
||
_: ::std::marker::PhantomData<(&'input ())>,
|
||
) -> (usize, usize)
|
||
{
|
||
// Num = r#"-?[0-9]+"# => ActionFn(43);
|
||
let __sym0 = __pop_Variant0(__symbols);
|
||
let __start = __sym0.0.clone();
|
||
let __end = __sym0.2.clone();
|
||
let __nt = super::__action43::<>(input, __sym0);
|
||
__symbols.push((__start, __Symbol::Variant8(__nt), __end));
|
||
(1, 16)
|
||
}
|
||
pub(crate) fn __reduce32<
|
||
'input,
|
||
>(
|
||
input: &'input str,
|
||
__action: i8,
|
||
__lookahead_start: Option<&usize>,
|
||
__states: &mut ::std::vec::Vec<i8>,
|
||
__symbols: &mut ::std::vec::Vec<(usize,__Symbol<'input>,usize)>,
|
||
_: ::std::marker::PhantomData<(&'input ())>,
|
||
) -> (usize, usize)
|
||
{
|
||
// Operator = "==" => ActionFn(28);
|
||
let __sym0 = __pop_Variant0(__symbols);
|
||
let __start = __sym0.0.clone();
|
||
let __end = __sym0.2.clone();
|
||
let __nt = super::__action28::<>(input, __sym0);
|
||
__symbols.push((__start, __Symbol::Variant9(__nt), __end));
|
||
(1, 17)
|
||
}
|
||
pub(crate) fn __reduce33<
|
||
'input,
|
||
>(
|
||
input: &'input str,
|
||
__action: i8,
|
||
__lookahead_start: Option<&usize>,
|
||
__states: &mut ::std::vec::Vec<i8>,
|
||
__symbols: &mut ::std::vec::Vec<(usize,__Symbol<'input>,usize)>,
|
||
_: ::std::marker::PhantomData<(&'input ())>,
|
||
) -> (usize, usize)
|
||
{
|
||
// Operator = "!=" => ActionFn(29);
|
||
let __sym0 = __pop_Variant0(__symbols);
|
||
let __start = __sym0.0.clone();
|
||
let __end = __sym0.2.clone();
|
||
let __nt = super::__action29::<>(input, __sym0);
|
||
__symbols.push((__start, __Symbol::Variant9(__nt), __end));
|
||
(1, 17)
|
||
}
|
||
pub(crate) fn __reduce34<
|
||
'input,
|
||
>(
|
||
input: &'input str,
|
||
__action: i8,
|
||
__lookahead_start: Option<&usize>,
|
||
__states: &mut ::std::vec::Vec<i8>,
|
||
__symbols: &mut ::std::vec::Vec<(usize,__Symbol<'input>,usize)>,
|
||
_: ::std::marker::PhantomData<(&'input ())>,
|
||
) -> (usize, usize)
|
||
{
|
||
// Operator = "<" => ActionFn(30);
|
||
let __sym0 = __pop_Variant0(__symbols);
|
||
let __start = __sym0.0.clone();
|
||
let __end = __sym0.2.clone();
|
||
let __nt = super::__action30::<>(input, __sym0);
|
||
__symbols.push((__start, __Symbol::Variant9(__nt), __end));
|
||
(1, 17)
|
||
}
|
||
pub(crate) fn __reduce35<
|
||
'input,
|
||
>(
|
||
input: &'input str,
|
||
__action: i8,
|
||
__lookahead_start: Option<&usize>,
|
||
__states: &mut ::std::vec::Vec<i8>,
|
||
__symbols: &mut ::std::vec::Vec<(usize,__Symbol<'input>,usize)>,
|
||
_: ::std::marker::PhantomData<(&'input ())>,
|
||
) -> (usize, usize)
|
||
{
|
||
// Operator = ">" => ActionFn(31);
|
||
let __sym0 = __pop_Variant0(__symbols);
|
||
let __start = __sym0.0.clone();
|
||
let __end = __sym0.2.clone();
|
||
let __nt = super::__action31::<>(input, __sym0);
|
||
__symbols.push((__start, __Symbol::Variant9(__nt), __end));
|
||
(1, 17)
|
||
}
|
||
pub(crate) fn __reduce36<
|
||
'input,
|
||
>(
|
||
input: &'input str,
|
||
__action: i8,
|
||
__lookahead_start: Option<&usize>,
|
||
__states: &mut ::std::vec::Vec<i8>,
|
||
__symbols: &mut ::std::vec::Vec<(usize,__Symbol<'input>,usize)>,
|
||
_: ::std::marker::PhantomData<(&'input ())>,
|
||
) -> (usize, usize)
|
||
{
|
||
// Operator = "<=" => ActionFn(32);
|
||
let __sym0 = __pop_Variant0(__symbols);
|
||
let __start = __sym0.0.clone();
|
||
let __end = __sym0.2.clone();
|
||
let __nt = super::__action32::<>(input, __sym0);
|
||
__symbols.push((__start, __Symbol::Variant9(__nt), __end));
|
||
(1, 17)
|
||
}
|
||
pub(crate) fn __reduce37<
|
||
'input,
|
||
>(
|
||
input: &'input str,
|
||
__action: i8,
|
||
__lookahead_start: Option<&usize>,
|
||
__states: &mut ::std::vec::Vec<i8>,
|
||
__symbols: &mut ::std::vec::Vec<(usize,__Symbol<'input>,usize)>,
|
||
_: ::std::marker::PhantomData<(&'input ())>,
|
||
) -> (usize, usize)
|
||
{
|
||
// Operator = ">=" => ActionFn(33);
|
||
let __sym0 = __pop_Variant0(__symbols);
|
||
let __start = __sym0.0.clone();
|
||
let __end = __sym0.2.clone();
|
||
let __nt = super::__action33::<>(input, __sym0);
|
||
__symbols.push((__start, __Symbol::Variant9(__nt), __end));
|
||
(1, 17)
|
||
}
|
||
pub(crate) fn __reduce38<
|
||
'input,
|
||
>(
|
||
input: &'input str,
|
||
__action: i8,
|
||
__lookahead_start: Option<&usize>,
|
||
__states: &mut ::std::vec::Vec<i8>,
|
||
__symbols: &mut ::std::vec::Vec<(usize,__Symbol<'input>,usize)>,
|
||
_: ::std::marker::PhantomData<(&'input ())>,
|
||
) -> (usize, usize)
|
||
{
|
||
// Parenthesized = "(", Leaf, ")" => ActionFn(10);
|
||
let __sym2 = __pop_Variant0(__symbols);
|
||
let __sym1 = __pop_Variant5(__symbols);
|
||
let __sym0 = __pop_Variant0(__symbols);
|
||
let __start = __sym0.0.clone();
|
||
let __end = __sym2.2.clone();
|
||
let __nt = super::__action10::<>(input, __sym0, __sym1, __sym2);
|
||
__symbols.push((__start, __Symbol::Variant5(__nt), __end));
|
||
(3, 18)
|
||
}
|
||
pub(crate) fn __reduce39<
|
||
'input,
|
||
>(
|
||
input: &'input str,
|
||
__action: i8,
|
||
__lookahead_start: Option<&usize>,
|
||
__states: &mut ::std::vec::Vec<i8>,
|
||
__symbols: &mut ::std::vec::Vec<(usize,__Symbol<'input>,usize)>,
|
||
_: ::std::marker::PhantomData<(&'input ())>,
|
||
) -> (usize, usize)
|
||
{
|
||
// Parenthesized = "(", BinaryExpression, ")" => ActionFn(11);
|
||
let __sym2 = __pop_Variant0(__symbols);
|
||
let __sym1 = __pop_Variant5(__symbols);
|
||
let __sym0 = __pop_Variant0(__symbols);
|
||
let __start = __sym0.0.clone();
|
||
let __end = __sym2.2.clone();
|
||
let __nt = super::__action11::<>(input, __sym0, __sym1, __sym2);
|
||
__symbols.push((__start, __Symbol::Variant5(__nt), __end));
|
||
(3, 18)
|
||
}
|
||
pub(crate) fn __reduce40<
|
||
'input,
|
||
>(
|
||
input: &'input str,
|
||
__action: i8,
|
||
__lookahead_start: Option<&usize>,
|
||
__states: &mut ::std::vec::Vec<i8>,
|
||
__symbols: &mut ::std::vec::Vec<(usize,__Symbol<'input>,usize)>,
|
||
_: ::std::marker::PhantomData<(&'input ())>,
|
||
) -> (usize, usize)
|
||
{
|
||
// PathExpression = WholeExpression, ("." <Member>)+ => ActionFn(18);
|
||
let __sym1 = __pop_Variant2(__symbols);
|
||
let __sym0 = __pop_Variant5(__symbols);
|
||
let __start = __sym0.0.clone();
|
||
let __end = __sym1.2.clone();
|
||
let __nt = super::__action18::<>(input, __sym0, __sym1);
|
||
__symbols.push((__start, __Symbol::Variant5(__nt), __end));
|
||
(2, 19)
|
||
}
|
||
pub(crate) fn __reduce41<
|
||
'input,
|
||
>(
|
||
input: &'input str,
|
||
__action: i8,
|
||
__lookahead_start: Option<&usize>,
|
||
__states: &mut ::std::vec::Vec<i8>,
|
||
__symbols: &mut ::std::vec::Vec<(usize,__Symbol<'input>,usize)>,
|
||
_: ::std::marker::PhantomData<(&'input ())>,
|
||
) -> (usize, usize)
|
||
{
|
||
// Pipeline = Command => ActionFn(1);
|
||
let __sym0 = __pop_Variant3(__symbols);
|
||
let __start = __sym0.0.clone();
|
||
let __end = __sym0.2.clone();
|
||
let __nt = super::__action1::<>(input, __sym0);
|
||
__symbols.push((__start, __Symbol::Variant10(__nt), __end));
|
||
(1, 20)
|
||
}
|
||
pub(crate) fn __reduce42<
|
||
'input,
|
||
>(
|
||
input: &'input str,
|
||
__action: i8,
|
||
__lookahead_start: Option<&usize>,
|
||
__states: &mut ::std::vec::Vec<i8>,
|
||
__symbols: &mut ::std::vec::Vec<(usize,__Symbol<'input>,usize)>,
|
||
_: ::std::marker::PhantomData<(&'input ())>,
|
||
) -> (usize, usize)
|
||
{
|
||
// Pipeline = Command, ("|" <Command>)+ => ActionFn(2);
|
||
let __sym1 = __pop_Variant4(__symbols);
|
||
let __sym0 = __pop_Variant3(__symbols);
|
||
let __start = __sym0.0.clone();
|
||
let __end = __sym1.2.clone();
|
||
let __nt = super::__action2::<>(input, __sym0, __sym1);
|
||
__symbols.push((__start, __Symbol::Variant10(__nt), __end));
|
||
(2, 20)
|
||
}
|
||
pub(crate) fn __reduce43<
|
||
'input,
|
||
>(
|
||
input: &'input str,
|
||
__action: i8,
|
||
__lookahead_start: Option<&usize>,
|
||
__states: &mut ::std::vec::Vec<i8>,
|
||
__symbols: &mut ::std::vec::Vec<(usize,__Symbol<'input>,usize)>,
|
||
_: ::std::marker::PhantomData<(&'input ())>,
|
||
) -> (usize, usize)
|
||
{
|
||
// RawBareWord = r#"[^0-9\"\'$\\-\\.][^\\s\"\']*"# => ActionFn(40);
|
||
let __sym0 = __pop_Variant0(__symbols);
|
||
let __start = __sym0.0.clone();
|
||
let __end = __sym0.2.clone();
|
||
let __nt = super::__action40::<>(input, __sym0);
|
||
__symbols.push((__start, __Symbol::Variant1(__nt), __end));
|
||
(1, 21)
|
||
}
|
||
pub(crate) fn __reduce44<
|
||
'input,
|
||
>(
|
||
input: &'input str,
|
||
__action: i8,
|
||
__lookahead_start: Option<&usize>,
|
||
__states: &mut ::std::vec::Vec<i8>,
|
||
__symbols: &mut ::std::vec::Vec<(usize,__Symbol<'input>,usize)>,
|
||
_: ::std::marker::PhantomData<(&'input ())>,
|
||
) -> (usize, usize)
|
||
{
|
||
// SQString = r#"\'([^\']|\\\\\')*\'"# => ActionFn(42);
|
||
let __sym0 = __pop_Variant0(__symbols);
|
||
let __start = __sym0.0.clone();
|
||
let __end = __sym0.2.clone();
|
||
let __nt = super::__action42::<>(input, __sym0);
|
||
__symbols.push((__start, __Symbol::Variant1(__nt), __end));
|
||
(1, 22)
|
||
}
|
||
pub(crate) fn __reduce45<
|
||
'input,
|
||
>(
|
||
input: &'input str,
|
||
__action: i8,
|
||
__lookahead_start: Option<&usize>,
|
||
__states: &mut ::std::vec::Vec<i8>,
|
||
__symbols: &mut ::std::vec::Vec<(usize,__Symbol<'input>,usize)>,
|
||
_: ::std::marker::PhantomData<(&'input ())>,
|
||
) -> (usize, usize)
|
||
{
|
||
// Size = r#"-?[0-9]+[A-Za-z]+"# => ActionFn(44);
|
||
let __sym0 = __pop_Variant0(__symbols);
|
||
let __start = __sym0.0.clone();
|
||
let __end = __sym0.2.clone();
|
||
let __nt = super::__action44::<>(input, __sym0);
|
||
__symbols.push((__start, __Symbol::Variant8(__nt), __end));
|
||
(1, 23)
|
||
}
|
||
pub(crate) fn __reduce46<
|
||
'input,
|
||
>(
|
||
input: &'input str,
|
||
__action: i8,
|
||
__lookahead_start: Option<&usize>,
|
||
__states: &mut ::std::vec::Vec<i8>,
|
||
__symbols: &mut ::std::vec::Vec<(usize,__Symbol<'input>,usize)>,
|
||
_: ::std::marker::PhantomData<(&'input ())>,
|
||
) -> (usize, usize)
|
||
{
|
||
// String = SQString => ActionFn(36);
|
||
let __sym0 = __pop_Variant1(__symbols);
|
||
let __start = __sym0.0.clone();
|
||
let __end = __sym0.2.clone();
|
||
let __nt = super::__action36::<>(input, __sym0);
|
||
__symbols.push((__start, __Symbol::Variant1(__nt), __end));
|
||
(1, 24)
|
||
}
|
||
pub(crate) fn __reduce47<
|
||
'input,
|
||
>(
|
||
input: &'input str,
|
||
__action: i8,
|
||
__lookahead_start: Option<&usize>,
|
||
__states: &mut ::std::vec::Vec<i8>,
|
||
__symbols: &mut ::std::vec::Vec<(usize,__Symbol<'input>,usize)>,
|
||
_: ::std::marker::PhantomData<(&'input ())>,
|
||
) -> (usize, usize)
|
||
{
|
||
// String = DQString => ActionFn(37);
|
||
let __sym0 = __pop_Variant1(__symbols);
|
||
let __start = __sym0.0.clone();
|
||
let __end = __sym0.2.clone();
|
||
let __nt = super::__action37::<>(input, __sym0);
|
||
__symbols.push((__start, __Symbol::Variant1(__nt), __end));
|
||
(1, 24)
|
||
}
|
||
pub(crate) fn __reduce48<
|
||
'input,
|
||
>(
|
||
input: &'input str,
|
||
__action: i8,
|
||
__lookahead_start: Option<&usize>,
|
||
__states: &mut ::std::vec::Vec<i8>,
|
||
__symbols: &mut ::std::vec::Vec<(usize,__Symbol<'input>,usize)>,
|
||
_: ::std::marker::PhantomData<(&'input ())>,
|
||
) -> (usize, usize)
|
||
{
|
||
// Variable = "$true" => ActionFn(22);
|
||
let __sym0 = __pop_Variant0(__symbols);
|
||
let __start = __sym0.0.clone();
|
||
let __end = __sym0.2.clone();
|
||
let __nt = super::__action22::<>(input, __sym0);
|
||
__symbols.push((__start, __Symbol::Variant11(__nt), __end));
|
||
(1, 25)
|
||
}
|
||
pub(crate) fn __reduce49<
|
||
'input,
|
||
>(
|
||
input: &'input str,
|
||
__action: i8,
|
||
__lookahead_start: Option<&usize>,
|
||
__states: &mut ::std::vec::Vec<i8>,
|
||
__symbols: &mut ::std::vec::Vec<(usize,__Symbol<'input>,usize)>,
|
||
_: ::std::marker::PhantomData<(&'input ())>,
|
||
) -> (usize, usize)
|
||
{
|
||
// Variable = "$false" => ActionFn(23);
|
||
let __sym0 = __pop_Variant0(__symbols);
|
||
let __start = __sym0.0.clone();
|
||
let __end = __sym0.2.clone();
|
||
let __nt = super::__action23::<>(input, __sym0);
|
||
__symbols.push((__start, __Symbol::Variant11(__nt), __end));
|
||
(1, 25)
|
||
}
|
||
pub(crate) fn __reduce50<
|
||
'input,
|
||
>(
|
||
input: &'input str,
|
||
__action: i8,
|
||
__lookahead_start: Option<&usize>,
|
||
__states: &mut ::std::vec::Vec<i8>,
|
||
__symbols: &mut ::std::vec::Vec<(usize,__Symbol<'input>,usize)>,
|
||
_: ::std::marker::PhantomData<(&'input ())>,
|
||
) -> (usize, usize)
|
||
{
|
||
// Variable = "$it" => ActionFn(24);
|
||
let __sym0 = __pop_Variant0(__symbols);
|
||
let __start = __sym0.0.clone();
|
||
let __end = __sym0.2.clone();
|
||
let __nt = super::__action24::<>(input, __sym0);
|
||
__symbols.push((__start, __Symbol::Variant11(__nt), __end));
|
||
(1, 25)
|
||
}
|
||
pub(crate) fn __reduce51<
|
||
'input,
|
||
>(
|
||
input: &'input str,
|
||
__action: i8,
|
||
__lookahead_start: Option<&usize>,
|
||
__states: &mut ::std::vec::Vec<i8>,
|
||
__symbols: &mut ::std::vec::Vec<(usize,__Symbol<'input>,usize)>,
|
||
_: ::std::marker::PhantomData<(&'input ())>,
|
||
) -> (usize, usize)
|
||
{
|
||
// Variable = VariableBody => ActionFn(25);
|
||
let __sym0 = __pop_Variant0(__symbols);
|
||
let __start = __sym0.0.clone();
|
||
let __end = __sym0.2.clone();
|
||
let __nt = super::__action25::<>(input, __sym0);
|
||
__symbols.push((__start, __Symbol::Variant11(__nt), __end));
|
||
(1, 25)
|
||
}
|
||
pub(crate) fn __reduce52<
|
||
'input,
|
||
>(
|
||
input: &'input str,
|
||
__action: i8,
|
||
__lookahead_start: Option<&usize>,
|
||
__states: &mut ::std::vec::Vec<i8>,
|
||
__symbols: &mut ::std::vec::Vec<(usize,__Symbol<'input>,usize)>,
|
||
_: ::std::marker::PhantomData<(&'input ())>,
|
||
) -> (usize, usize)
|
||
{
|
||
// VariableBody = r#"\\$\\p{XID_Start}(\\p{XID_Continue}|[\\-?!])*"# => ActionFn(39);
|
||
let __sym0 = __pop_Variant0(__symbols);
|
||
let __start = __sym0.0.clone();
|
||
let __end = __sym0.2.clone();
|
||
let __nt = super::__action39::<>(input, __sym0);
|
||
__symbols.push((__start, __Symbol::Variant0(__nt), __end));
|
||
(1, 26)
|
||
}
|
||
pub(crate) fn __reduce53<
|
||
'input,
|
||
>(
|
||
input: &'input str,
|
||
__action: i8,
|
||
__lookahead_start: Option<&usize>,
|
||
__states: &mut ::std::vec::Vec<i8>,
|
||
__symbols: &mut ::std::vec::Vec<(usize,__Symbol<'input>,usize)>,
|
||
_: ::std::marker::PhantomData<(&'input ())>,
|
||
) -> (usize, usize)
|
||
{
|
||
// WholeExpression = AtomicExpression => ActionFn(16);
|
||
let __sym0 = __pop_Variant5(__symbols);
|
||
let __start = __sym0.0.clone();
|
||
let __end = __sym0.2.clone();
|
||
let __nt = super::__action16::<>(input, __sym0);
|
||
__symbols.push((__start, __Symbol::Variant5(__nt), __end));
|
||
(1, 27)
|
||
}
|
||
pub(crate) fn __reduce54<
|
||
'input,
|
||
>(
|
||
input: &'input str,
|
||
__action: i8,
|
||
__lookahead_start: Option<&usize>,
|
||
__states: &mut ::std::vec::Vec<i8>,
|
||
__symbols: &mut ::std::vec::Vec<(usize,__Symbol<'input>,usize)>,
|
||
_: ::std::marker::PhantomData<(&'input ())>,
|
||
) -> (usize, usize)
|
||
{
|
||
// WholeExpression = Block => ActionFn(17);
|
||
let __sym0 = __pop_Variant5(__symbols);
|
||
let __start = __sym0.0.clone();
|
||
let __end = __sym0.2.clone();
|
||
let __nt = super::__action17::<>(input, __sym0);
|
||
__symbols.push((__start, __Symbol::Variant5(__nt), __end));
|
||
(1, 27)
|
||
}
|
||
}
|
||
pub use self::__parse__Pipeline::PipelineParser;
|
||
#[cfg_attr(rustfmt, rustfmt_skip)]
|
||
mod __intern_token {
|
||
#![allow(unused_imports)]
|
||
use std::str::FromStr;
|
||
use byte_unit::Byte;
|
||
use crate::parser::ast::*;
|
||
#[allow(unused_extern_crates)]
|
||
extern crate lalrpop_util as __lalrpop_util;
|
||
#[allow(unused_imports)]
|
||
use self::__lalrpop_util::state_machine as __state_machine;
|
||
extern crate regex as __regex;
|
||
use std::fmt as __fmt;
|
||
|
||
#[derive(Clone, Debug, PartialEq, Eq, PartialOrd, Ord)]
|
||
pub struct Token<'input>(pub usize, pub &'input str);
|
||
impl<'a> __fmt::Display for Token<'a> {
|
||
fn fmt<'f>(&self, formatter: &mut __fmt::Formatter<'f>) -> Result<(), __fmt::Error> {
|
||
__fmt::Display::fmt(self.1, formatter)
|
||
}
|
||
}
|
||
|
||
pub struct __MatcherBuilder {
|
||
regex_set: __regex::RegexSet,
|
||
regex_vec: Vec<__regex::Regex>,
|
||
}
|
||
|
||
impl __MatcherBuilder {
|
||
pub fn new() -> __MatcherBuilder {
|
||
let __strs: &[&str] = &[
|
||
"^(\"([\u{0}-!\\#-\u{10ffff}]|\\\\\")*\")",
|
||
"^(\'([\u{0}-\\&\\(-\u{10ffff}]|\\\\\')*\')",
|
||
"^(\\-?[0-9]+)",
|
||
"^(\\-?[0-9]+[A-Za-z]+)",
|
||
"^([\u{0}-!\\#%-\\&\\(-,/:-\u{10ffff}][\u{0}-\u{8}\u{e}-\u{1f}!\\#-\\&\\(-\u{84}\u{86}-\u{9f}¡-ᙿᚁ-\u{1fff}\u{200b}-‧\u{202a}-\u{202e}‰-⁞\u{2060}-\u{2fff}、-\u{10ffff}]*)",
|
||
"^(\\$[A-Za-zªµºÀ-ÖØ-öø-ˁˆ-ˑˠ-ˤˬˮͰ-ʹͶ-ͷͻ-ͽͿΆΈ-ΊΌΎ-ΡΣ-ϵϷ-ҁҊ-ԯԱ-Ֆՙՠ-ֈא-תׯ-ײؠ-يٮ-ٯٱ-ۓەۥ-ۦۮ-ۯۺ-ۼۿܐܒ-ܯݍ-ޥޱߊ-ߪߴ-ߵߺࠀ-ࠕࠚࠤࠨࡀ-ࡘࡠ-ࡪࢠ-ࢴࢶ-ࢽऄ-हऽॐक़-ॡॱ-ঀঅ-ঌএ-ঐও-নপ-রলশ-হঽৎড়-ঢ়য়-ৡৰ-ৱৼਅ-ਊਏ-ਐਓ-ਨਪ-ਰਲ-ਲ਼ਵ-ਸ਼ਸ-ਹਖ਼-ੜਫ਼ੲ-ੴઅ-ઍએ-ઑઓ-નપ-રલ-ળવ-હઽૐૠ-ૡૹଅ-ଌଏ-ଐଓ-ନପ-ରଲ-ଳଵ-ହଽଡ଼-ଢ଼ୟ-ୡୱஃஅ-ஊஎ-ஐஒ-கங-சஜஞ-டண-தந-பம-ஹௐఅ-ఌఎ-ఐఒ-నప-హఽౘ-ౚౠ-ౡಀಅ-ಌಎ-ಐಒ-ನಪ-ಳವ-ಹಽೞೠ-ೡೱ-ೲഅ-ഌഎ-ഐഒ-ഺഽൎൔ-ൖൟ-ൡൺ-ൿඅ-ඖක-නඳ-රලව-ෆก-ะาเ-ๆກ-ຂຄງ-ຈຊຍດ-ທນ-ຟມ-ຣລວສ-ຫອ-ະາຽເ-ໄໆໜ-ໟༀཀ-ཇཉ-ཬྈ-ྌက-ဪဿၐ-ၕၚ-ၝၡၥ-ၦၮ-ၰၵ-ႁႎႠ-ჅჇჍა-ჺჼ-ቈቊ-ቍቐ-ቖቘቚ-ቝበ-ኈኊ-ኍነ-ኰኲ-ኵኸ-ኾዀዂ-ዅወ-ዖዘ-ጐጒ-ጕጘ-ፚᎀ-ᎏᎠ-Ᏽᏸ-ᏽᐁ-ᙬᙯ-ᙿᚁ-ᚚᚠ-ᛪᛮ-ᛸᜀ-ᜌᜎ-ᜑᜠ-ᜱᝀ-ᝑᝠ-ᝬᝮ-ᝰក-ឳៗៜᠠ-ᡸᢀ-ᢨᢪᢰ-ᣵᤀ-ᤞᥐ-ᥭᥰ-ᥴᦀ-ᦫᦰ-ᧉᨀ-ᨖᨠ-ᩔᪧᬅ-ᬳᭅ-ᭋᮃ-ᮠᮮ-ᮯᮺ-ᯥᰀ-ᰣᱍ-ᱏᱚ-ᱽᲀ-ᲈᲐ-ᲺᲽ-Ჿᳩ-ᳬᳮ-ᳱᳵ-ᳶᴀ-ᶿḀ-ἕἘ-Ἕἠ-ὅὈ-Ὅὐ-ὗὙὛὝὟ-ώᾀ-ᾴᾶ-ᾼιῂ-ῄῆ-ῌῐ-ΐῖ-Ίῠ-Ῥῲ-ῴῶ-ῼⁱⁿₐ-ₜℂℇℊ-ℓℕ℘-ℝℤΩℨK-ℹℼ-ℿⅅ-ⅉⅎⅠ-ↈⰀ-Ⱞⰰ-ⱞⱠ-ⳤⳫ-ⳮⳲ-ⳳⴀ-ⴥⴧⴭⴰ-ⵧⵯⶀ-ⶖⶠ-ⶦⶨ-ⶮⶰ-ⶶⶸ-ⶾⷀ-ⷆⷈ-ⷎⷐ-ⷖⷘ-ⷞ々-〇〡-〩〱-〵〸-〼ぁ-ゖゝ-ゟァ-ヺー-ヿㄅ-ㄯㄱ-ㆎㆠ-ㆺㇰ-ㇿ㐀-䶵一-鿯ꀀ-ꒌꓐ-ꓽꔀ-ꘌꘐ-ꘟꘪ-ꘫꙀ-ꙮꙿ-ꚝꚠ-ꛯꜗ-ꜟꜢ-ꞈꞋ-ꞹꟷ-ꠁꠃ-ꠅꠇ-ꠊꠌ-ꠢꡀ-ꡳꢂ-ꢳꣲ-ꣷꣻꣽ-ꣾꤊ-ꤥꤰ-ꥆꥠ-ꥼꦄ-ꦲꧏꧠ-ꧤꧦ-ꧯꧺ-ꧾꨀ-ꨨꩀ-ꩂꩄ-ꩋꩠ-ꩶꩺꩾ-ꪯꪱꪵ-ꪶꪹ-ꪽꫀꫂꫛ-ꫝꫠ-ꫪꫲ-ꫴꬁ-ꬆꬉ-ꬎꬑ-ꬖꬠ-ꬦꬨ-ꬮꬰ-ꭚꭜ-ꭥꭰ-ꯢ가-힣ힰ-ퟆퟋ-ퟻ豈-舘並-龎ff-stﬓ-ﬗיִײַ-ﬨשׁ-זּטּ-לּמּנּ-סּףּ-פּצּ-ﮱﯓ-ﱝﱤ-ﴽﵐ-ﶏﶒ-ﷇﷰ-ﷹﹱﹳﹷﹹﹻﹽﹿ-ﻼA-Za-zヲ-ンᅠ-하-ᅦᅧ-ᅬᅭ-ᅲᅳ-ᅵ𐀀-𐀋𐀍-𐀦𐀨-𐀺𐀼-𐀽𐀿-𐁍𐁐-𐁝𐂀-𐃺𐅀-𐅴𐊀-𐊜𐊠-𐋐𐌀-𐌟𐌭-𐍊𐍐-𐍵𐎀-𐎝𐎠-𐏃𐏈-𐏏𐏑-𐏕𐐀-𐒝𐒰-𐓓𐓘-𐓻𐔀-𐔧𐔰-𐕣𐘀-𐜶𐝀-𐝕𐝠-𐝧𐠀-𐠅𐠈𐠊-𐠵𐠷-𐠸𐠼𐠿-𐡕𐡠-𐡶𐢀-𐢞𐣠-𐣲𐣴-𐣵𐤀-𐤕𐤠-𐤹𐦀-𐦷𐦾-𐦿𐨀𐨐-𐨓𐨕-𐨗𐨙-𐨵𐩠-𐩼𐪀-𐪜𐫀-𐫇𐫉-𐫤𐬀-𐬵𐭀-𐭕𐭠-𐭲𐮀-𐮑𐰀-𐱈𐲀-𐲲𐳀-𐳲𐴀-𐴣𐼀-𐼜𐼧𐼰-𐽅𑀃-𑀷𑂃-𑂯𑃐-𑃨𑄃-𑄦𑅄𑅐-𑅲𑅶𑆃-𑆲𑇁-𑇄𑇚𑇜𑈀-𑈑𑈓-𑈫𑊀-𑊆𑊈𑊊-𑊍𑊏-𑊝𑊟-𑊨𑊰-𑋞𑌅-𑌌𑌏-𑌐𑌓-𑌨𑌪-𑌰𑌲-𑌳𑌵-𑌹𑌽𑍐𑍝-𑍡𑐀-𑐴𑑇-𑑊𑒀-𑒯𑓄-𑓅𑓇𑖀-𑖮𑗘-𑗛𑘀-𑘯𑙄𑚀-𑚪𑜀-𑜚𑠀-𑠫𑢠-𑣟𑣿𑨀𑨋-𑨲𑨺𑩐𑩜-𑪃𑪆-𑪉𑪝𑫀-𑫸𑰀-𑰈𑰊-𑰮𑱀𑱲-𑲏𑴀-𑴆𑴈-𑴉𑴋-𑴰𑵆𑵠-𑵥𑵧-𑵨𑵪-𑶉𑶘𑻠-𑻲𒀀-𒎙𒐀-𒑮𒒀-𒕃𓀀-𓐮𔐀-𔙆𖠀-𖨸𖩀-𖩞𖫐-𖫭𖬀-𖬯𖭀-𖭃𖭣-𖭷𖭽-𖮏𖹀-𖹿𖼀-𖽄𖽐𖾓-𖾟𖿠-𖿡𗀀-𘟱𘠀-𘫲𛀀-𛄞𛅰-𛋻𛰀-𛱪𛱰-𛱼𛲀-𛲈𛲐-𛲙𝐀-𝑔𝑖-𝒜𝒞-𝒟𝒢𝒥-𝒦𝒩-𝒬𝒮-𝒹𝒻𝒽-𝓃𝓅-𝔅𝔇-𝔊𝔍-𝔔𝔖-𝔜𝔞-𝔹𝔻-𝔾𝕀-𝕄𝕆𝕊-𝕐𝕒-𝚥𝚨-𝛀𝛂-𝛚𝛜-𝛺𝛼-𝜔𝜖-𝜴𝜶-𝝎𝝐-𝝮𝝰-𝞈𝞊-𝞨𝞪-𝟂𝟄-𝟋𞠀-𞣄𞤀-𞥃𞸀-𞸃𞸅-𞸟𞸡-𞸢𞸤𞸧𞸩-𞸲𞸴-𞸷𞸹𞸻𞹂𞹇𞹉𞹋𞹍-𞹏𞹑-𞹒𞹔𞹗𞹙𞹛𞹝𞹟𞹡-𞹢𞹤𞹧-𞹪𞹬-𞹲𞹴-𞹷𞹹-𞹼𞹾𞺀-𞺉𞺋-𞺛𞺡-𞺣𞺥-𞺩𞺫-𞺻𠀀-𪛖𪜀-𫜴𫝀-𫠝𫠠-𬺡𬺰-𮯠丽-𪘀]([0-9A-Z_a-zªµ·ºÀ-ÖØ-öø-ˁˆ-ˑˠ-ˤˬˮ\u{300}-ʹͶ-ͷͻ-ͽͿΆ-ΊΌΎ-ΡΣ-ϵϷ-ҁ\u{483}-\u{487}Ҋ-ԯԱ-Ֆՙՠ-ֈ\u{591}-\u{5bd}\u{5bf}\u{5c1}-\u{5c2}\u{5c4}-\u{5c5}\u{5c7}א-תׯ-ײ\u{610}-\u{61a}ؠ-٩ٮ-ۓە-\u{6dc}\u{6df}-\u{6e8}\u{6ea}-ۼۿܐ-\u{74a}ݍ-ޱ߀-ߵߺ\u{7fd}ࠀ-\u{82d}ࡀ-\u{85b}ࡠ-ࡪࢠ-ࢴࢶ-ࢽ\u{8d3}-\u{8e1}\u{8e3}-\u{963}०-९ॱ-ঃঅ-ঌএ-ঐও-নপ-রলশ-হ\u{9bc}-\u{9c4}ে-ৈো-ৎ\u{9d7}ড়-ঢ়য়-\u{9e3}০-ৱৼ\u{9fe}\u{a01}-ਃਅ-ਊਏ-ਐਓ-ਨਪ-ਰਲ-ਲ਼ਵ-ਸ਼ਸ-ਹ\u{a3c}ਾ-\u{a42}\u{a47}-\u{a48}\u{a4b}-\u{a4d}\u{a51}ਖ਼-ੜਫ਼੦-\u{a75}\u{a81}-ઃઅ-ઍએ-ઑઓ-નપ-રલ-ળવ-હ\u{abc}-\u{ac5}\u{ac7}-ૉો-\u{acd}ૐૠ-\u{ae3}૦-૯ૹ-\u{aff}\u{b01}-ଃଅ-ଌଏ-ଐଓ-ନପ-ରଲ-ଳଵ-ହ\u{b3c}-\u{b44}େ-ୈୋ-\u{b4d}\u{b56}-\u{b57}ଡ଼-ଢ଼ୟ-\u{b63}୦-୯ୱ\u{b82}-ஃஅ-ஊஎ-ஐஒ-கங-சஜஞ-டண-தந-பம-ஹ\u{bbe}-ூெ-ைொ-\u{bcd}ௐ\u{bd7}௦-௯\u{c00}-ఌఎ-ఐఒ-నప-హఽ-ౄ\u{c46}-\u{c48}\u{c4a}-\u{c4d}\u{c55}-\u{c56}ౘ-ౚౠ-\u{c63}౦-౯ಀ-ಃಅ-ಌಎ-ಐಒ-ನಪ-ಳವ-ಹ\u{cbc}-ೄ\u{cc6}-ೈೊ-\u{ccd}\u{cd5}-\u{cd6}ೞೠ-\u{ce3}೦-೯ೱ-ೲ\u{d00}-ഃഅ-ഌഎ-ഐഒ-\u{d44}െ-ൈൊ-ൎൔ-\u{d57}ൟ-\u{d63}൦-൯ൺ-ൿං-ඃඅ-ඖක-නඳ-රලව-ෆ\u{dca}\u{dcf}-\u{dd4}\u{dd6}ෘ-\u{ddf}෦-෯ෲ-ෳก-\u{e3a}เ-\u{e4e}๐-๙ກ-ຂຄງ-ຈຊຍດ-ທນ-ຟມ-ຣລວສ-ຫອ-\u{eb9}\u{ebb}-ຽເ-ໄໆ\u{ec8}-\u{ecd}໐-໙ໜ-ໟༀ\u{f18}-\u{f19}༠-༩\u{f35}\u{f37}\u{f39}༾-ཇཉ-ཬ\u{f71}-\u{f84}\u{f86}-\u{f97}\u{f99}-\u{fbc}\u{fc6}က-၉ၐ-\u{109d}Ⴀ-ჅჇჍა-ჺჼ-ቈቊ-ቍቐ-ቖቘቚ-ቝበ-ኈኊ-ኍነ-ኰኲ-ኵኸ-ኾዀዂ-ዅወ-ዖዘ-ጐጒ-ጕጘ-ፚ\u{135d}-\u{135f}፩-፱ᎀ-ᎏᎠ-Ᏽᏸ-ᏽᐁ-ᙬᙯ-ᙿᚁ-ᚚᚠ-ᛪᛮ-ᛸᜀ-ᜌᜎ-\u{1714}ᜠ-\u{1734}ᝀ-\u{1753}ᝠ-ᝬᝮ-ᝰ\u{1772}-\u{1773}ក-\u{17d3}ៗៜ-\u{17dd}០-៩\u{180b}-\u{180d}᠐-᠙ᠠ-ᡸᢀ-ᢪᢰ-ᣵᤀ-ᤞ\u{1920}-ᤫᤰ-\u{193b}᥆-ᥭᥰ-ᥴᦀ-ᦫᦰ-ᧉ᧐-᧚ᨀ-\u{1a1b}ᨠ-\u{1a5e}\u{1a60}-\u{1a7c}\u{1a7f}-᪉᪐-᪙ᪧ\u{1ab0}-\u{1abd}\u{1b00}-ᭋ᭐-᭙\u{1b6b}-\u{1b73}\u{1b80}-᯳ᰀ-\u{1c37}᱀-᱉ᱍ-ᱽᲀ-ᲈᲐ-ᲺᲽ-Ჿ\u{1cd0}-\u{1cd2}\u{1cd4}-\u{1cf9}ᴀ-\u{1df9}\u{1dfb}-ἕἘ-Ἕἠ-ὅὈ-Ὅὐ-ὗὙὛὝὟ-ώᾀ-ᾴᾶ-ᾼιῂ-ῄῆ-ῌῐ-ΐῖ-Ίῠ-Ῥῲ-ῴῶ-ῼ‿-⁀⁔ⁱⁿₐ-ₜ\u{20d0}-\u{20dc}\u{20e1}\u{20e5}-\u{20f0}ℂℇℊ-ℓℕ℘-ℝℤΩℨK-ℹℼ-ℿⅅ-ⅉⅎⅠ-ↈⰀ-Ⱞⰰ-ⱞⱠ-ⳤⳫ-ⳳⴀ-ⴥⴧⴭⴰ-ⵧⵯ\u{2d7f}-ⶖⶠ-ⶦⶨ-ⶮⶰ-ⶶⶸ-ⶾⷀ-ⷆⷈ-ⷎⷐ-ⷖⷘ-ⷞ\u{2de0}-\u{2dff}々-〇〡-\u{302f}〱-〵〸-〼ぁ-ゖ\u{3099}-\u{309a}ゝ-ゟァ-ヺー-ヿㄅ-ㄯㄱ-ㆎㆠ-ㆺㇰ-ㇿ㐀-䶵一-鿯ꀀ-ꒌꓐ-ꓽꔀ-ꘌꘐ-ꘫꙀ-\u{a66f}\u{a674}-\u{a67d}ꙿ-\u{a6f1}ꜗ-ꜟꜢ-ꞈꞋ-ꞹꟷ-ꠧꡀ-ꡳꢀ-\u{a8c5}꣐-꣙\u{a8e0}-ꣷꣻꣽ-\u{a92d}ꤰ-꥓ꥠ-ꥼ\u{a980}-꧀ꧏ-꧙ꧠ-ꧾꨀ-\u{aa36}ꩀ-ꩍ꩐-꩙ꩠ-ꩶꩺ-ꫂꫛ-ꫝꫠ-ꫯꫲ-\u{aaf6}ꬁ-ꬆꬉ-ꬎꬑ-ꬖꬠ-ꬦꬨ-ꬮꬰ-ꭚꭜ-ꭥꭰ-ꯪ꯬-\u{abed}꯰-꯹가-힣ힰ-ퟆퟋ-ퟻ豈-舘並-龎ff-stﬓ-ﬗיִ-ﬨשׁ-זּטּ-לּמּנּ-סּףּ-פּצּ-ﮱﯓ-ﱝﱤ-ﴽﵐ-ﶏﶒ-ﷇﷰ-ﷹ\u{fe00}-\u{fe0f}\u{fe20}-\u{fe2f}︳-︴﹍-﹏ﹱﹳﹷﹹﹻﹽﹿ-ﻼ0-9A-Z_a-zヲ-하-ᅦᅧ-ᅬᅭ-ᅲᅳ-ᅵ𐀀-𐀋𐀍-𐀦𐀨-𐀺𐀼-𐀽𐀿-𐁍𐁐-𐁝𐂀-𐃺𐅀-𐅴\u{101fd}𐊀-𐊜𐊠-𐋐\u{102e0}𐌀-𐌟𐌭-𐍊𐍐-\u{1037a}𐎀-𐎝𐎠-𐏃𐏈-𐏏𐏑-𐏕𐐀-𐒝𐒠-𐒩𐒰-𐓓𐓘-𐓻𐔀-𐔧𐔰-𐕣𐘀-𐜶𐝀-𐝕𐝠-𐝧𐠀-𐠅𐠈𐠊-𐠵𐠷-𐠸𐠼𐠿-𐡕𐡠-𐡶𐢀-𐢞𐣠-𐣲𐣴-𐣵𐤀-𐤕𐤠-𐤹𐦀-𐦷𐦾-𐦿𐨀-\u{10a03}\u{10a05}-\u{10a06}\u{10a0c}-𐨓𐨕-𐨗𐨙-𐨵\u{10a38}-\u{10a3a}\u{10a3f}𐩠-𐩼𐪀-𐪜𐫀-𐫇𐫉-\u{10ae6}𐬀-𐬵𐭀-𐭕𐭠-𐭲𐮀-𐮑𐰀-𐱈𐲀-𐲲𐳀-𐳲𐴀-\u{10d27}𐴰-𐴹𐼀-𐼜𐼧𐼰-\u{10f50}𑀀-\u{11046}𑁦-𑁯\u{1107f}-\u{110ba}𑃐-𑃨𑃰-𑃹\u{11100}-\u{11134}𑄶-𑄿𑅄-𑅆𑅐-\u{11173}𑅶\u{11180}-𑇄\u{111c9}-\u{111cc}𑇐-𑇚𑇜𑈀-𑈑𑈓-\u{11237}\u{1123e}𑊀-𑊆𑊈𑊊-𑊍𑊏-𑊝𑊟-𑊨𑊰-\u{112ea}𑋰-𑋹\u{11300}-𑌃𑌅-𑌌𑌏-𑌐𑌓-𑌨𑌪-𑌰𑌲-𑌳𑌵-𑌹\u{1133b}-𑍄𑍇-𑍈𑍋-𑍍𑍐\u{11357}𑍝-𑍣\u{11366}-\u{1136c}\u{11370}-\u{11374}𑐀-𑑊𑑐-𑑙\u{1145e}𑒀-𑓅𑓇𑓐-𑓙𑖀-\u{115b5}𑖸-\u{115c0}𑗘-\u{115dd}𑘀-\u{11640}𑙄𑙐-𑙙𑚀-\u{116b7}𑛀-𑛉𑜀-𑜚\u{1171d}-\u{1172b}𑜰-𑜹𑠀-\u{1183a}𑢠-𑣩𑣿𑨀-\u{11a3e}\u{11a47}𑩐-𑪃𑪆-\u{11a99}𑪝𑫀-𑫸𑰀-𑰈𑰊-\u{11c36}\u{11c38}-𑱀𑱐-𑱙𑱲-𑲏\u{11c92}-\u{11ca7}𑲩-\u{11cb6}𑴀-𑴆𑴈-𑴉𑴋-\u{11d36}\u{11d3a}\u{11d3c}-\u{11d3d}\u{11d3f}-\u{11d47}𑵐-𑵙𑵠-𑵥𑵧-𑵨𑵪-𑶎\u{11d90}-\u{11d91}𑶓-𑶘𑶠-𑶩𑻠-𑻶𒀀-𒎙𒐀-𒑮𒒀-𒕃𓀀-𓐮𔐀-𔙆𖠀-𖨸𖩀-𖩞𖩠-𖩩𖫐-𖫭\u{16af0}-\u{16af4}𖬀-\u{16b36}𖭀-𖭃𖭐-𖭙𖭣-𖭷𖭽-𖮏𖹀-𖹿𖼀-𖽄𖽐-𖽾\u{16f8f}-𖾟𖿠-𖿡𗀀-𘟱𘠀-𘫲𛀀-𛄞𛅰-𛋻𛰀-𛱪𛱰-𛱼𛲀-𛲈𛲐-𛲙\u{1bc9d}-\u{1bc9e}\u{1d165}-\u{1d169}𝅭-\u{1d172}\u{1d17b}-\u{1d182}\u{1d185}-\u{1d18b}\u{1d1aa}-\u{1d1ad}\u{1d242}-\u{1d244}𝐀-𝑔𝑖-𝒜𝒞-𝒟𝒢𝒥-𝒦𝒩-𝒬𝒮-𝒹𝒻𝒽-𝓃𝓅-𝔅𝔇-𝔊𝔍-𝔔𝔖-𝔜𝔞-𝔹𝔻-𝔾𝕀-𝕄𝕆𝕊-𝕐𝕒-𝚥𝚨-𝛀𝛂-𝛚𝛜-𝛺𝛼-𝜔𝜖-𝜴𝜶-𝝎𝝐-𝝮𝝰-𝞈𝞊-𝞨𝞪-𝟂𝟄-𝟋𝟎-𝟿\u{1da00}-\u{1da36}\u{1da3b}-\u{1da6c}\u{1da75}\u{1da84}\u{1da9b}-\u{1da9f}\u{1daa1}-\u{1daaf}\u{1e000}-\u{1e006}\u{1e008}-\u{1e018}\u{1e01b}-\u{1e021}\u{1e023}-\u{1e024}\u{1e026}-\u{1e02a}𞠀-𞣄\u{1e8d0}-\u{1e8d6}𞤀-\u{1e94a}𞥐-𞥙𞸀-𞸃𞸅-𞸟𞸡-𞸢𞸤𞸧𞸩-𞸲𞸴-𞸷𞸹𞸻𞹂𞹇𞹉𞹋𞹍-𞹏𞹑-𞹒𞹔𞹗𞹙𞹛𞹝𞹟𞹡-𞹢𞹤𞹧-𞹪𞹬-𞹲𞹴-𞹷𞹹-𞹼𞹾𞺀-𞺉𞺋-𞺛𞺡-𞺣𞺥-𞺩𞺫-𞺻𠀀-𪛖𪜀-𫜴𫝀-𫠝𫠠-𬺡𬺰-𮯠丽-𪘀\u{e0100}-\u{e01ef}]|[!\\-\\?])*)",
|
||
"^(!=)",
|
||
"^(\\$false)",
|
||
"^(\\$it)",
|
||
"^(\\$true)",
|
||
"^(\\()",
|
||
"^(\\))",
|
||
"^(\\-)",
|
||
"^(\\-\\-)",
|
||
"^(\\.)",
|
||
"^(<)",
|
||
"^(<=)",
|
||
"^(==)",
|
||
"^(>)",
|
||
"^(>=)",
|
||
"^(\\{)",
|
||
"^(\\|)",
|
||
"^(\\})",
|
||
];
|
||
let __regex_set = __regex::RegexSet::new(__strs).unwrap();
|
||
let __regex_vec = vec![
|
||
__regex::Regex::new("^(\"([\u{0}-!\\#-\u{10ffff}]|\\\\\")*\")").unwrap(),
|
||
__regex::Regex::new("^(\'([\u{0}-\\&\\(-\u{10ffff}]|\\\\\')*\')").unwrap(),
|
||
__regex::Regex::new("^(\\-?[0-9]+)").unwrap(),
|
||
__regex::Regex::new("^(\\-?[0-9]+[A-Za-z]+)").unwrap(),
|
||
__regex::Regex::new("^([\u{0}-!\\#%-\\&\\(-,/:-\u{10ffff}][\u{0}-\u{8}\u{e}-\u{1f}!\\#-\\&\\(-\u{84}\u{86}-\u{9f}¡-ᙿᚁ-\u{1fff}\u{200b}-‧\u{202a}-\u{202e}‰-⁞\u{2060}-\u{2fff}、-\u{10ffff}]*)").unwrap(),
|
||
__regex::Regex::new("^(\\$[A-Za-zªµºÀ-ÖØ-öø-ˁˆ-ˑˠ-ˤˬˮͰ-ʹͶ-ͷͻ-ͽͿΆΈ-ΊΌΎ-ΡΣ-ϵϷ-ҁҊ-ԯԱ-Ֆՙՠ-ֈא-תׯ-ײؠ-يٮ-ٯٱ-ۓەۥ-ۦۮ-ۯۺ-ۼۿܐܒ-ܯݍ-ޥޱߊ-ߪߴ-ߵߺࠀ-ࠕࠚࠤࠨࡀ-ࡘࡠ-ࡪࢠ-ࢴࢶ-ࢽऄ-हऽॐक़-ॡॱ-ঀঅ-ঌএ-ঐও-নপ-রলশ-হঽৎড়-ঢ়য়-ৡৰ-ৱৼਅ-ਊਏ-ਐਓ-ਨਪ-ਰਲ-ਲ਼ਵ-ਸ਼ਸ-ਹਖ਼-ੜਫ਼ੲ-ੴઅ-ઍએ-ઑઓ-નપ-રલ-ળવ-હઽૐૠ-ૡૹଅ-ଌଏ-ଐଓ-ନପ-ରଲ-ଳଵ-ହଽଡ଼-ଢ଼ୟ-ୡୱஃஅ-ஊஎ-ஐஒ-கங-சஜஞ-டண-தந-பம-ஹௐఅ-ఌఎ-ఐఒ-నప-హఽౘ-ౚౠ-ౡಀಅ-ಌಎ-ಐಒ-ನಪ-ಳವ-ಹಽೞೠ-ೡೱ-ೲഅ-ഌഎ-ഐഒ-ഺഽൎൔ-ൖൟ-ൡൺ-ൿඅ-ඖක-නඳ-රලව-ෆก-ะาเ-ๆກ-ຂຄງ-ຈຊຍດ-ທນ-ຟມ-ຣລວສ-ຫອ-ະາຽເ-ໄໆໜ-ໟༀཀ-ཇཉ-ཬྈ-ྌက-ဪဿၐ-ၕၚ-ၝၡၥ-ၦၮ-ၰၵ-ႁႎႠ-ჅჇჍა-ჺჼ-ቈቊ-ቍቐ-ቖቘቚ-ቝበ-ኈኊ-ኍነ-ኰኲ-ኵኸ-ኾዀዂ-ዅወ-ዖዘ-ጐጒ-ጕጘ-ፚᎀ-ᎏᎠ-Ᏽᏸ-ᏽᐁ-ᙬᙯ-ᙿᚁ-ᚚᚠ-ᛪᛮ-ᛸᜀ-ᜌᜎ-ᜑᜠ-ᜱᝀ-ᝑᝠ-ᝬᝮ-ᝰក-ឳៗៜᠠ-ᡸᢀ-ᢨᢪᢰ-ᣵᤀ-ᤞᥐ-ᥭᥰ-ᥴᦀ-ᦫᦰ-ᧉᨀ-ᨖᨠ-ᩔᪧᬅ-ᬳᭅ-ᭋᮃ-ᮠᮮ-ᮯᮺ-ᯥᰀ-ᰣᱍ-ᱏᱚ-ᱽᲀ-ᲈᲐ-ᲺᲽ-Ჿᳩ-ᳬᳮ-ᳱᳵ-ᳶᴀ-ᶿḀ-ἕἘ-Ἕἠ-ὅὈ-Ὅὐ-ὗὙὛὝὟ-ώᾀ-ᾴᾶ-ᾼιῂ-ῄῆ-ῌῐ-ΐῖ-Ίῠ-Ῥῲ-ῴῶ-ῼⁱⁿₐ-ₜℂℇℊ-ℓℕ℘-ℝℤΩℨK-ℹℼ-ℿⅅ-ⅉⅎⅠ-ↈⰀ-Ⱞⰰ-ⱞⱠ-ⳤⳫ-ⳮⳲ-ⳳⴀ-ⴥⴧⴭⴰ-ⵧⵯⶀ-ⶖⶠ-ⶦⶨ-ⶮⶰ-ⶶⶸ-ⶾⷀ-ⷆⷈ-ⷎⷐ-ⷖⷘ-ⷞ々-〇〡-〩〱-〵〸-〼ぁ-ゖゝ-ゟァ-ヺー-ヿㄅ-ㄯㄱ-ㆎㆠ-ㆺㇰ-ㇿ㐀-䶵一-鿯ꀀ-ꒌꓐ-ꓽꔀ-ꘌꘐ-ꘟꘪ-ꘫꙀ-ꙮꙿ-ꚝꚠ-ꛯꜗ-ꜟꜢ-ꞈꞋ-ꞹꟷ-ꠁꠃ-ꠅꠇ-ꠊꠌ-ꠢꡀ-ꡳꢂ-ꢳꣲ-ꣷꣻꣽ-ꣾꤊ-ꤥꤰ-ꥆꥠ-ꥼꦄ-ꦲꧏꧠ-ꧤꧦ-ꧯꧺ-ꧾꨀ-ꨨꩀ-ꩂꩄ-ꩋꩠ-ꩶꩺꩾ-ꪯꪱꪵ-ꪶꪹ-ꪽꫀꫂꫛ-ꫝꫠ-ꫪꫲ-ꫴꬁ-ꬆꬉ-ꬎꬑ-ꬖꬠ-ꬦꬨ-ꬮꬰ-ꭚꭜ-ꭥꭰ-ꯢ가-힣ힰ-ퟆퟋ-ퟻ豈-舘並-龎ff-stﬓ-ﬗיִײַ-ﬨשׁ-זּטּ-לּמּנּ-סּףּ-פּצּ-ﮱﯓ-ﱝﱤ-ﴽﵐ-ﶏﶒ-ﷇﷰ-ﷹﹱﹳﹷﹹﹻﹽﹿ-ﻼA-Za-zヲ-ンᅠ-하-ᅦᅧ-ᅬᅭ-ᅲᅳ-ᅵ𐀀-𐀋𐀍-𐀦𐀨-𐀺𐀼-𐀽𐀿-𐁍𐁐-𐁝𐂀-𐃺𐅀-𐅴𐊀-𐊜𐊠-𐋐𐌀-𐌟𐌭-𐍊𐍐-𐍵𐎀-𐎝𐎠-𐏃𐏈-𐏏𐏑-𐏕𐐀-𐒝𐒰-𐓓𐓘-𐓻𐔀-𐔧𐔰-𐕣𐘀-𐜶𐝀-𐝕𐝠-𐝧𐠀-𐠅𐠈𐠊-𐠵𐠷-𐠸𐠼𐠿-𐡕𐡠-𐡶𐢀-𐢞𐣠-𐣲𐣴-𐣵𐤀-𐤕𐤠-𐤹𐦀-𐦷𐦾-𐦿𐨀𐨐-𐨓𐨕-𐨗𐨙-𐨵𐩠-𐩼𐪀-𐪜𐫀-𐫇𐫉-𐫤𐬀-𐬵𐭀-𐭕𐭠-𐭲𐮀-𐮑𐰀-𐱈𐲀-𐲲𐳀-𐳲𐴀-𐴣𐼀-𐼜𐼧𐼰-𐽅𑀃-𑀷𑂃-𑂯𑃐-𑃨𑄃-𑄦𑅄𑅐-𑅲𑅶𑆃-𑆲𑇁-𑇄𑇚𑇜𑈀-𑈑𑈓-𑈫𑊀-𑊆𑊈𑊊-𑊍𑊏-𑊝𑊟-𑊨𑊰-𑋞𑌅-𑌌𑌏-𑌐𑌓-𑌨𑌪-𑌰𑌲-𑌳𑌵-𑌹𑌽𑍐𑍝-𑍡𑐀-𑐴𑑇-𑑊𑒀-𑒯𑓄-𑓅𑓇𑖀-𑖮𑗘-𑗛𑘀-𑘯𑙄𑚀-𑚪𑜀-𑜚𑠀-𑠫𑢠-𑣟𑣿𑨀𑨋-𑨲𑨺𑩐𑩜-𑪃𑪆-𑪉𑪝𑫀-𑫸𑰀-𑰈𑰊-𑰮𑱀𑱲-𑲏𑴀-𑴆𑴈-𑴉𑴋-𑴰𑵆𑵠-𑵥𑵧-𑵨𑵪-𑶉𑶘𑻠-𑻲𒀀-𒎙𒐀-𒑮𒒀-𒕃𓀀-𓐮𔐀-𔙆𖠀-𖨸𖩀-𖩞𖫐-𖫭𖬀-𖬯𖭀-𖭃𖭣-𖭷𖭽-𖮏𖹀-𖹿𖼀-𖽄𖽐𖾓-𖾟𖿠-𖿡𗀀-𘟱𘠀-𘫲𛀀-𛄞𛅰-𛋻𛰀-𛱪𛱰-𛱼𛲀-𛲈𛲐-𛲙𝐀-𝑔𝑖-𝒜𝒞-𝒟𝒢𝒥-𝒦𝒩-𝒬𝒮-𝒹𝒻𝒽-𝓃𝓅-𝔅𝔇-𝔊𝔍-𝔔𝔖-𝔜𝔞-𝔹𝔻-𝔾𝕀-𝕄𝕆𝕊-𝕐𝕒-𝚥𝚨-𝛀𝛂-𝛚𝛜-𝛺𝛼-𝜔𝜖-𝜴𝜶-𝝎𝝐-𝝮𝝰-𝞈𝞊-𝞨𝞪-𝟂𝟄-𝟋𞠀-𞣄𞤀-𞥃𞸀-𞸃𞸅-𞸟𞸡-𞸢𞸤𞸧𞸩-𞸲𞸴-𞸷𞸹𞸻𞹂𞹇𞹉𞹋𞹍-𞹏𞹑-𞹒𞹔𞹗𞹙𞹛𞹝𞹟𞹡-𞹢𞹤𞹧-𞹪𞹬-𞹲𞹴-𞹷𞹹-𞹼𞹾𞺀-𞺉𞺋-𞺛𞺡-𞺣𞺥-𞺩𞺫-𞺻𠀀-𪛖𪜀-𫜴𫝀-𫠝𫠠-𬺡𬺰-𮯠丽-𪘀]([0-9A-Z_a-zªµ·ºÀ-ÖØ-öø-ˁˆ-ˑˠ-ˤˬˮ\u{300}-ʹͶ-ͷͻ-ͽͿΆ-ΊΌΎ-ΡΣ-ϵϷ-ҁ\u{483}-\u{487}Ҋ-ԯԱ-Ֆՙՠ-ֈ\u{591}-\u{5bd}\u{5bf}\u{5c1}-\u{5c2}\u{5c4}-\u{5c5}\u{5c7}א-תׯ-ײ\u{610}-\u{61a}ؠ-٩ٮ-ۓە-\u{6dc}\u{6df}-\u{6e8}\u{6ea}-ۼۿܐ-\u{74a}ݍ-ޱ߀-ߵߺ\u{7fd}ࠀ-\u{82d}ࡀ-\u{85b}ࡠ-ࡪࢠ-ࢴࢶ-ࢽ\u{8d3}-\u{8e1}\u{8e3}-\u{963}०-९ॱ-ঃঅ-ঌএ-ঐও-নপ-রলশ-হ\u{9bc}-\u{9c4}ে-ৈো-ৎ\u{9d7}ড়-ঢ়য়-\u{9e3}০-ৱৼ\u{9fe}\u{a01}-ਃਅ-ਊਏ-ਐਓ-ਨਪ-ਰਲ-ਲ਼ਵ-ਸ਼ਸ-ਹ\u{a3c}ਾ-\u{a42}\u{a47}-\u{a48}\u{a4b}-\u{a4d}\u{a51}ਖ਼-ੜਫ਼੦-\u{a75}\u{a81}-ઃઅ-ઍએ-ઑઓ-નપ-રલ-ળવ-હ\u{abc}-\u{ac5}\u{ac7}-ૉો-\u{acd}ૐૠ-\u{ae3}૦-૯ૹ-\u{aff}\u{b01}-ଃଅ-ଌଏ-ଐଓ-ନପ-ରଲ-ଳଵ-ହ\u{b3c}-\u{b44}େ-ୈୋ-\u{b4d}\u{b56}-\u{b57}ଡ଼-ଢ଼ୟ-\u{b63}୦-୯ୱ\u{b82}-ஃஅ-ஊஎ-ஐஒ-கங-சஜஞ-டண-தந-பம-ஹ\u{bbe}-ூெ-ைொ-\u{bcd}ௐ\u{bd7}௦-௯\u{c00}-ఌఎ-ఐఒ-నప-హఽ-ౄ\u{c46}-\u{c48}\u{c4a}-\u{c4d}\u{c55}-\u{c56}ౘ-ౚౠ-\u{c63}౦-౯ಀ-ಃಅ-ಌಎ-ಐಒ-ನಪ-ಳವ-ಹ\u{cbc}-ೄ\u{cc6}-ೈೊ-\u{ccd}\u{cd5}-\u{cd6}ೞೠ-\u{ce3}೦-೯ೱ-ೲ\u{d00}-ഃഅ-ഌഎ-ഐഒ-\u{d44}െ-ൈൊ-ൎൔ-\u{d57}ൟ-\u{d63}൦-൯ൺ-ൿං-ඃඅ-ඖක-නඳ-රලව-ෆ\u{dca}\u{dcf}-\u{dd4}\u{dd6}ෘ-\u{ddf}෦-෯ෲ-ෳก-\u{e3a}เ-\u{e4e}๐-๙ກ-ຂຄງ-ຈຊຍດ-ທນ-ຟມ-ຣລວສ-ຫອ-\u{eb9}\u{ebb}-ຽເ-ໄໆ\u{ec8}-\u{ecd}໐-໙ໜ-ໟༀ\u{f18}-\u{f19}༠-༩\u{f35}\u{f37}\u{f39}༾-ཇཉ-ཬ\u{f71}-\u{f84}\u{f86}-\u{f97}\u{f99}-\u{fbc}\u{fc6}က-၉ၐ-\u{109d}Ⴀ-ჅჇჍა-ჺჼ-ቈቊ-ቍቐ-ቖቘቚ-ቝበ-ኈኊ-ኍነ-ኰኲ-ኵኸ-ኾዀዂ-ዅወ-ዖዘ-ጐጒ-ጕጘ-ፚ\u{135d}-\u{135f}፩-፱ᎀ-ᎏᎠ-Ᏽᏸ-ᏽᐁ-ᙬᙯ-ᙿᚁ-ᚚᚠ-ᛪᛮ-ᛸᜀ-ᜌᜎ-\u{1714}ᜠ-\u{1734}ᝀ-\u{1753}ᝠ-ᝬᝮ-ᝰ\u{1772}-\u{1773}ក-\u{17d3}ៗៜ-\u{17dd}០-៩\u{180b}-\u{180d}᠐-᠙ᠠ-ᡸᢀ-ᢪᢰ-ᣵᤀ-ᤞ\u{1920}-ᤫᤰ-\u{193b}᥆-ᥭᥰ-ᥴᦀ-ᦫᦰ-ᧉ᧐-᧚ᨀ-\u{1a1b}ᨠ-\u{1a5e}\u{1a60}-\u{1a7c}\u{1a7f}-᪉᪐-᪙ᪧ\u{1ab0}-\u{1abd}\u{1b00}-ᭋ᭐-᭙\u{1b6b}-\u{1b73}\u{1b80}-᯳ᰀ-\u{1c37}᱀-᱉ᱍ-ᱽᲀ-ᲈᲐ-ᲺᲽ-Ჿ\u{1cd0}-\u{1cd2}\u{1cd4}-\u{1cf9}ᴀ-\u{1df9}\u{1dfb}-ἕἘ-Ἕἠ-ὅὈ-Ὅὐ-ὗὙὛὝὟ-ώᾀ-ᾴᾶ-ᾼιῂ-ῄῆ-ῌῐ-ΐῖ-Ίῠ-Ῥῲ-ῴῶ-ῼ‿-⁀⁔ⁱⁿₐ-ₜ\u{20d0}-\u{20dc}\u{20e1}\u{20e5}-\u{20f0}ℂℇℊ-ℓℕ℘-ℝℤΩℨK-ℹℼ-ℿⅅ-ⅉⅎⅠ-ↈⰀ-Ⱞⰰ-ⱞⱠ-ⳤⳫ-ⳳⴀ-ⴥⴧⴭⴰ-ⵧⵯ\u{2d7f}-ⶖⶠ-ⶦⶨ-ⶮⶰ-ⶶⶸ-ⶾⷀ-ⷆⷈ-ⷎⷐ-ⷖⷘ-ⷞ\u{2de0}-\u{2dff}々-〇〡-\u{302f}〱-〵〸-〼ぁ-ゖ\u{3099}-\u{309a}ゝ-ゟァ-ヺー-ヿㄅ-ㄯㄱ-ㆎㆠ-ㆺㇰ-ㇿ㐀-䶵一-鿯ꀀ-ꒌꓐ-ꓽꔀ-ꘌꘐ-ꘫꙀ-\u{a66f}\u{a674}-\u{a67d}ꙿ-\u{a6f1}ꜗ-ꜟꜢ-ꞈꞋ-ꞹꟷ-ꠧꡀ-ꡳꢀ-\u{a8c5}꣐-꣙\u{a8e0}-ꣷꣻꣽ-\u{a92d}ꤰ-꥓ꥠ-ꥼ\u{a980}-꧀ꧏ-꧙ꧠ-ꧾꨀ-\u{aa36}ꩀ-ꩍ꩐-꩙ꩠ-ꩶꩺ-ꫂꫛ-ꫝꫠ-ꫯꫲ-\u{aaf6}ꬁ-ꬆꬉ-ꬎꬑ-ꬖꬠ-ꬦꬨ-ꬮꬰ-ꭚꭜ-ꭥꭰ-ꯪ꯬-\u{abed}꯰-꯹가-힣ힰ-ퟆퟋ-ퟻ豈-舘並-龎ff-stﬓ-ﬗיִ-ﬨשׁ-זּטּ-לּמּנּ-סּףּ-פּצּ-ﮱﯓ-ﱝﱤ-ﴽﵐ-ﶏﶒ-ﷇﷰ-ﷹ\u{fe00}-\u{fe0f}\u{fe20}-\u{fe2f}︳-︴﹍-﹏ﹱﹳﹷﹹﹻﹽﹿ-ﻼ0-9A-Z_a-zヲ-하-ᅦᅧ-ᅬᅭ-ᅲᅳ-ᅵ𐀀-𐀋𐀍-𐀦𐀨-𐀺𐀼-𐀽𐀿-𐁍𐁐-𐁝𐂀-𐃺𐅀-𐅴\u{101fd}𐊀-𐊜𐊠-𐋐\u{102e0}𐌀-𐌟𐌭-𐍊𐍐-\u{1037a}𐎀-𐎝𐎠-𐏃𐏈-𐏏𐏑-𐏕𐐀-𐒝𐒠-𐒩𐒰-𐓓𐓘-𐓻𐔀-𐔧𐔰-𐕣𐘀-𐜶𐝀-𐝕𐝠-𐝧𐠀-𐠅𐠈𐠊-𐠵𐠷-𐠸𐠼𐠿-𐡕𐡠-𐡶𐢀-𐢞𐣠-𐣲𐣴-𐣵𐤀-𐤕𐤠-𐤹𐦀-𐦷𐦾-𐦿𐨀-\u{10a03}\u{10a05}-\u{10a06}\u{10a0c}-𐨓𐨕-𐨗𐨙-𐨵\u{10a38}-\u{10a3a}\u{10a3f}𐩠-𐩼𐪀-𐪜𐫀-𐫇𐫉-\u{10ae6}𐬀-𐬵𐭀-𐭕𐭠-𐭲𐮀-𐮑𐰀-𐱈𐲀-𐲲𐳀-𐳲𐴀-\u{10d27}𐴰-𐴹𐼀-𐼜𐼧𐼰-\u{10f50}𑀀-\u{11046}𑁦-𑁯\u{1107f}-\u{110ba}𑃐-𑃨𑃰-𑃹\u{11100}-\u{11134}𑄶-𑄿𑅄-𑅆𑅐-\u{11173}𑅶\u{11180}-𑇄\u{111c9}-\u{111cc}𑇐-𑇚𑇜𑈀-𑈑𑈓-\u{11237}\u{1123e}𑊀-𑊆𑊈𑊊-𑊍𑊏-𑊝𑊟-𑊨𑊰-\u{112ea}𑋰-𑋹\u{11300}-𑌃𑌅-𑌌𑌏-𑌐𑌓-𑌨𑌪-𑌰𑌲-𑌳𑌵-𑌹\u{1133b}-𑍄𑍇-𑍈𑍋-𑍍𑍐\u{11357}𑍝-𑍣\u{11366}-\u{1136c}\u{11370}-\u{11374}𑐀-𑑊𑑐-𑑙\u{1145e}𑒀-𑓅𑓇𑓐-𑓙𑖀-\u{115b5}𑖸-\u{115c0}𑗘-\u{115dd}𑘀-\u{11640}𑙄𑙐-𑙙𑚀-\u{116b7}𑛀-𑛉𑜀-𑜚\u{1171d}-\u{1172b}𑜰-𑜹𑠀-\u{1183a}𑢠-𑣩𑣿𑨀-\u{11a3e}\u{11a47}𑩐-𑪃𑪆-\u{11a99}𑪝𑫀-𑫸𑰀-𑰈𑰊-\u{11c36}\u{11c38}-𑱀𑱐-𑱙𑱲-𑲏\u{11c92}-\u{11ca7}𑲩-\u{11cb6}𑴀-𑴆𑴈-𑴉𑴋-\u{11d36}\u{11d3a}\u{11d3c}-\u{11d3d}\u{11d3f}-\u{11d47}𑵐-𑵙𑵠-𑵥𑵧-𑵨𑵪-𑶎\u{11d90}-\u{11d91}𑶓-𑶘𑶠-𑶩𑻠-𑻶𒀀-𒎙𒐀-𒑮𒒀-𒕃𓀀-𓐮𔐀-𔙆𖠀-𖨸𖩀-𖩞𖩠-𖩩𖫐-𖫭\u{16af0}-\u{16af4}𖬀-\u{16b36}𖭀-𖭃𖭐-𖭙𖭣-𖭷𖭽-𖮏𖹀-𖹿𖼀-𖽄𖽐-𖽾\u{16f8f}-𖾟𖿠-𖿡𗀀-𘟱𘠀-𘫲𛀀-𛄞𛅰-𛋻𛰀-𛱪𛱰-𛱼𛲀-𛲈𛲐-𛲙\u{1bc9d}-\u{1bc9e}\u{1d165}-\u{1d169}𝅭-\u{1d172}\u{1d17b}-\u{1d182}\u{1d185}-\u{1d18b}\u{1d1aa}-\u{1d1ad}\u{1d242}-\u{1d244}𝐀-𝑔𝑖-𝒜𝒞-𝒟𝒢𝒥-𝒦𝒩-𝒬𝒮-𝒹𝒻𝒽-𝓃𝓅-𝔅𝔇-𝔊𝔍-𝔔𝔖-𝔜𝔞-𝔹𝔻-𝔾𝕀-𝕄𝕆𝕊-𝕐𝕒-𝚥𝚨-𝛀𝛂-𝛚𝛜-𝛺𝛼-𝜔𝜖-𝜴𝜶-𝝎𝝐-𝝮𝝰-𝞈𝞊-𝞨𝞪-𝟂𝟄-𝟋𝟎-𝟿\u{1da00}-\u{1da36}\u{1da3b}-\u{1da6c}\u{1da75}\u{1da84}\u{1da9b}-\u{1da9f}\u{1daa1}-\u{1daaf}\u{1e000}-\u{1e006}\u{1e008}-\u{1e018}\u{1e01b}-\u{1e021}\u{1e023}-\u{1e024}\u{1e026}-\u{1e02a}𞠀-𞣄\u{1e8d0}-\u{1e8d6}𞤀-\u{1e94a}𞥐-𞥙𞸀-𞸃𞸅-𞸟𞸡-𞸢𞸤𞸧𞸩-𞸲𞸴-𞸷𞸹𞸻𞹂𞹇𞹉𞹋𞹍-𞹏𞹑-𞹒𞹔𞹗𞹙𞹛𞹝𞹟𞹡-𞹢𞹤𞹧-𞹪𞹬-𞹲𞹴-𞹷𞹹-𞹼𞹾𞺀-𞺉𞺋-𞺛𞺡-𞺣𞺥-𞺩𞺫-𞺻𠀀-𪛖𪜀-𫜴𫝀-𫠝𫠠-𬺡𬺰-𮯠丽-𪘀\u{e0100}-\u{e01ef}]|[!\\-\\?])*)").unwrap(),
|
||
__regex::Regex::new("^(!=)").unwrap(),
|
||
__regex::Regex::new("^(\\$false)").unwrap(),
|
||
__regex::Regex::new("^(\\$it)").unwrap(),
|
||
__regex::Regex::new("^(\\$true)").unwrap(),
|
||
__regex::Regex::new("^(\\()").unwrap(),
|
||
__regex::Regex::new("^(\\))").unwrap(),
|
||
__regex::Regex::new("^(\\-)").unwrap(),
|
||
__regex::Regex::new("^(\\-\\-)").unwrap(),
|
||
__regex::Regex::new("^(\\.)").unwrap(),
|
||
__regex::Regex::new("^(<)").unwrap(),
|
||
__regex::Regex::new("^(<=)").unwrap(),
|
||
__regex::Regex::new("^(==)").unwrap(),
|
||
__regex::Regex::new("^(>)").unwrap(),
|
||
__regex::Regex::new("^(>=)").unwrap(),
|
||
__regex::Regex::new("^(\\{)").unwrap(),
|
||
__regex::Regex::new("^(\\|)").unwrap(),
|
||
__regex::Regex::new("^(\\})").unwrap(),
|
||
];
|
||
__MatcherBuilder { regex_set: __regex_set, regex_vec: __regex_vec }
|
||
}
|
||
pub fn matcher<'input, 'builder>(&'builder self, s: &'input str) -> __Matcher<'input, 'builder> {
|
||
__Matcher {
|
||
text: s,
|
||
consumed: 0,
|
||
regex_set: &self.regex_set,
|
||
regex_vec: &self.regex_vec,
|
||
}
|
||
}
|
||
}
|
||
|
||
pub struct __Matcher<'input, 'builder> {
|
||
text: &'input str,
|
||
consumed: usize,
|
||
regex_set: &'builder __regex::RegexSet,
|
||
regex_vec: &'builder Vec<__regex::Regex>,
|
||
}
|
||
|
||
impl<'input, 'builder> Iterator for __Matcher<'input, 'builder> {
|
||
type Item = Result<(usize, Token<'input>, usize), __lalrpop_util::ParseError<usize,Token<'input>,&'static str>>;
|
||
|
||
fn next(&mut self) -> Option<Self::Item> {
|
||
let __text = self.text.trim_start();
|
||
let __whitespace = self.text.len() - __text.len();
|
||
let __start_offset = self.consumed + __whitespace;
|
||
if __text.is_empty() {
|
||
self.text = __text;
|
||
self.consumed = __start_offset;
|
||
None
|
||
} else {
|
||
let __matches = self.regex_set.matches(__text);
|
||
if !__matches.matched_any() {
|
||
Some(Err(__lalrpop_util::ParseError::InvalidToken {
|
||
location: __start_offset,
|
||
}))
|
||
} else {
|
||
let mut __longest_match = 0;
|
||
let mut __index = 0;
|
||
for __i in 0 .. 23 {
|
||
if __matches.matched(__i) {
|
||
let __match = self.regex_vec[__i].find(__text).unwrap();
|
||
let __len = __match.end();
|
||
if __len >= __longest_match {
|
||
__longest_match = __len;
|
||
__index = __i;
|
||
}
|
||
}
|
||
}
|
||
let __result = &__text[..__longest_match];
|
||
let __remaining = &__text[__longest_match..];
|
||
let __end_offset = __start_offset + __longest_match;
|
||
self.text = __remaining;
|
||
self.consumed = __end_offset;
|
||
Some(Ok((__start_offset, Token(__index, __result), __end_offset)))
|
||
}
|
||
}
|
||
}
|
||
}
|
||
}
|
||
pub use self::__intern_token::Token;
|
||
|
||
#[allow(unused_variables)]
|
||
fn __action0<
|
||
'input,
|
||
>(
|
||
input: &'input str,
|
||
(_, __0, _): (usize, Pipeline, usize),
|
||
) -> Pipeline
|
||
{
|
||
(__0)
|
||
}
|
||
|
||
#[allow(unused_variables)]
|
||
fn __action1<
|
||
'input,
|
||
>(
|
||
input: &'input str,
|
||
(_, first, _): (usize, ParsedCommand, usize),
|
||
) -> Pipeline
|
||
{
|
||
Pipeline::new(vec![first])
|
||
}
|
||
|
||
#[allow(unused_variables)]
|
||
fn __action2<
|
||
'input,
|
||
>(
|
||
input: &'input str,
|
||
(_, first, _): (usize, ParsedCommand, usize),
|
||
(_, rest, _): (usize, ::std::vec::Vec<ParsedCommand>, usize),
|
||
) -> Pipeline
|
||
{
|
||
Pipeline::from_parts(first, rest)
|
||
}
|
||
|
||
#[allow(unused_variables)]
|
||
fn __action3<
|
||
'input,
|
||
>(
|
||
input: &'input str,
|
||
(_, command, _): (usize, String, usize),
|
||
(_, expr, _): (usize, ::std::vec::Vec<Expression>, usize),
|
||
) -> ParsedCommand
|
||
{
|
||
ParsedCommand::new(command, expr)
|
||
}
|
||
|
||
#[allow(unused_variables)]
|
||
fn __action4<
|
||
'input,
|
||
>(
|
||
input: &'input str,
|
||
(_, command, _): (usize, String, usize),
|
||
(_, expr, _): (usize, Expression, usize),
|
||
) -> ParsedCommand
|
||
{
|
||
ParsedCommand::new(command, vec![expr])
|
||
}
|
||
|
||
#[allow(unused_variables)]
|
||
fn __action5<
|
||
'input,
|
||
>(
|
||
input: &'input str,
|
||
(_, __0, _): (usize, String, usize),
|
||
) -> Expression
|
||
{
|
||
Expression::Leaf(Leaf::String(__0))
|
||
}
|
||
|
||
#[allow(unused_variables)]
|
||
fn __action6<
|
||
'input,
|
||
>(
|
||
input: &'input str,
|
||
(_, __0, _): (usize, i64, usize),
|
||
) -> Expression
|
||
{
|
||
Expression::Leaf(Leaf::Int(__0))
|
||
}
|
||
|
||
#[allow(unused_variables)]
|
||
fn __action7<
|
||
'input,
|
||
>(
|
||
input: &'input str,
|
||
(_, __0, _): (usize, i64, usize),
|
||
) -> Expression
|
||
{
|
||
Expression::Leaf(Leaf::Int(__0))
|
||
}
|
||
|
||
#[allow(unused_variables)]
|
||
fn __action8<
|
||
'input,
|
||
>(
|
||
input: &'input str,
|
||
(_, __0, _): (usize, Variable, usize),
|
||
) -> Expression
|
||
{
|
||
Expression::VariableReference(__0)
|
||
}
|
||
|
||
#[allow(unused_variables)]
|
||
fn __action9<
|
||
'input,
|
||
>(
|
||
input: &'input str,
|
||
(_, left, _): (usize, Expression, usize),
|
||
(_, op, _): (usize, Operator, usize),
|
||
(_, right, _): (usize, Expression, usize),
|
||
) -> Expression
|
||
{
|
||
Expression::Binary(Box::new(Binary::new(left, op, right)))
|
||
}
|
||
|
||
#[allow(unused_variables)]
|
||
fn __action10<
|
||
'input,
|
||
>(
|
||
input: &'input str,
|
||
(_, _, _): (usize, &'input str, usize),
|
||
(_, __0, _): (usize, Expression, usize),
|
||
(_, _, _): (usize, &'input str, usize),
|
||
) -> Expression
|
||
{
|
||
Expression::Parenthesized(Box::new(Parenthesized::new(__0)))
|
||
}
|
||
|
||
#[allow(unused_variables)]
|
||
fn __action11<
|
||
'input,
|
||
>(
|
||
input: &'input str,
|
||
(_, _, _): (usize, &'input str, usize),
|
||
(_, __0, _): (usize, Expression, usize),
|
||
(_, _, _): (usize, &'input str, usize),
|
||
) -> Expression
|
||
{
|
||
Expression::Parenthesized(Box::new(Parenthesized::new(__0)))
|
||
}
|
||
|
||
#[allow(unused_variables)]
|
||
fn __action12<
|
||
'input,
|
||
>(
|
||
input: &'input str,
|
||
(_, __0, _): (usize, Expression, usize),
|
||
) -> Expression
|
||
{
|
||
(__0)
|
||
}
|
||
|
||
#[allow(unused_variables)]
|
||
fn __action13<
|
||
'input,
|
||
>(
|
||
input: &'input str,
|
||
(_, __0, _): (usize, Expression, usize),
|
||
) -> Expression
|
||
{
|
||
(__0)
|
||
}
|
||
|
||
#[allow(unused_variables)]
|
||
fn __action14<
|
||
'input,
|
||
>(
|
||
input: &'input str,
|
||
(_, _, _): (usize, &'input str, usize),
|
||
(_, __0, _): (usize, Expression, usize),
|
||
(_, _, _): (usize, &'input str, usize),
|
||
) -> Expression
|
||
{
|
||
Expression::Block(Box::new(Block::new(__0)))
|
||
}
|
||
|
||
#[allow(unused_variables)]
|
||
fn __action15<
|
||
'input,
|
||
>(
|
||
input: &'input str,
|
||
(_, _, _): (usize, &'input str, usize),
|
||
(_, __0, _): (usize, Expression, usize),
|
||
(_, _, _): (usize, &'input str, usize),
|
||
) -> Expression
|
||
{
|
||
Expression::Block(Box::new(Block::new(__0)))
|
||
}
|
||
|
||
#[allow(unused_variables)]
|
||
fn __action16<
|
||
'input,
|
||
>(
|
||
input: &'input str,
|
||
(_, __0, _): (usize, Expression, usize),
|
||
) -> Expression
|
||
{
|
||
(__0)
|
||
}
|
||
|
||
#[allow(unused_variables)]
|
||
fn __action17<
|
||
'input,
|
||
>(
|
||
input: &'input str,
|
||
(_, __0, _): (usize, Expression, usize),
|
||
) -> Expression
|
||
{
|
||
(__0)
|
||
}
|
||
|
||
#[allow(unused_variables)]
|
||
fn __action18<
|
||
'input,
|
||
>(
|
||
input: &'input str,
|
||
(_, head, _): (usize, Expression, usize),
|
||
(_, tail, _): (usize, ::std::vec::Vec<String>, usize),
|
||
) -> Expression
|
||
{
|
||
Expression::Path(Box::new(Path::new(head, tail)))
|
||
}
|
||
|
||
#[allow(unused_variables)]
|
||
fn __action19<
|
||
'input,
|
||
>(
|
||
input: &'input str,
|
||
(_, __0, _): (usize, String, usize),
|
||
) -> Expression
|
||
{
|
||
Expression::Leaf(Leaf::Bare(__0))
|
||
}
|
||
|
||
#[allow(unused_variables)]
|
||
fn __action20<
|
||
'input,
|
||
>(
|
||
input: &'input str,
|
||
(_, __0, _): (usize, Expression, usize),
|
||
) -> Expression
|
||
{
|
||
__0
|
||
}
|
||
|
||
#[allow(unused_variables)]
|
||
fn __action21<
|
||
'input,
|
||
>(
|
||
input: &'input str,
|
||
(_, __0, _): (usize, Expression, usize),
|
||
) -> Expression
|
||
{
|
||
(__0)
|
||
}
|
||
|
||
#[allow(unused_variables)]
|
||
fn __action22<
|
||
'input,
|
||
>(
|
||
input: &'input str,
|
||
(_, __0, _): (usize, &'input str, usize),
|
||
) -> Variable
|
||
{
|
||
Variable::True
|
||
}
|
||
|
||
#[allow(unused_variables)]
|
||
fn __action23<
|
||
'input,
|
||
>(
|
||
input: &'input str,
|
||
(_, __0, _): (usize, &'input str, usize),
|
||
) -> Variable
|
||
{
|
||
Variable::False
|
||
}
|
||
|
||
#[allow(unused_variables)]
|
||
fn __action24<
|
||
'input,
|
||
>(
|
||
input: &'input str,
|
||
(_, __0, _): (usize, &'input str, usize),
|
||
) -> Variable
|
||
{
|
||
Variable::It
|
||
}
|
||
|
||
#[allow(unused_variables)]
|
||
fn __action25<
|
||
'input,
|
||
>(
|
||
input: &'input str,
|
||
(_, __0, _): (usize, &'input str, usize),
|
||
) -> Variable
|
||
{
|
||
Variable::Other(__0[1..].to_string())
|
||
}
|
||
|
||
#[allow(unused_variables)]
|
||
fn __action26<
|
||
'input,
|
||
>(
|
||
input: &'input str,
|
||
(_, __0, _): (usize, String, usize),
|
||
) -> String
|
||
{
|
||
(__0)
|
||
}
|
||
|
||
#[allow(unused_variables)]
|
||
fn __action27<
|
||
'input,
|
||
>(
|
||
input: &'input str,
|
||
(_, __0, _): (usize, String, usize),
|
||
) -> String
|
||
{
|
||
(__0)
|
||
}
|
||
|
||
#[allow(unused_variables)]
|
||
fn __action28<
|
||
'input,
|
||
>(
|
||
input: &'input str,
|
||
(_, __0, _): (usize, &'input str, usize),
|
||
) -> Operator
|
||
{
|
||
Operator::Equal
|
||
}
|
||
|
||
#[allow(unused_variables)]
|
||
fn __action29<
|
||
'input,
|
||
>(
|
||
input: &'input str,
|
||
(_, __0, _): (usize, &'input str, usize),
|
||
) -> Operator
|
||
{
|
||
Operator::NotEqual
|
||
}
|
||
|
||
#[allow(unused_variables)]
|
||
fn __action30<
|
||
'input,
|
||
>(
|
||
input: &'input str,
|
||
(_, __0, _): (usize, &'input str, usize),
|
||
) -> Operator
|
||
{
|
||
Operator::LessThan
|
||
}
|
||
|
||
#[allow(unused_variables)]
|
||
fn __action31<
|
||
'input,
|
||
>(
|
||
input: &'input str,
|
||
(_, __0, _): (usize, &'input str, usize),
|
||
) -> Operator
|
||
{
|
||
Operator::GreaterThan
|
||
}
|
||
|
||
#[allow(unused_variables)]
|
||
fn __action32<
|
||
'input,
|
||
>(
|
||
input: &'input str,
|
||
(_, __0, _): (usize, &'input str, usize),
|
||
) -> Operator
|
||
{
|
||
Operator::LessThanOrEqual
|
||
}
|
||
|
||
#[allow(unused_variables)]
|
||
fn __action33<
|
||
'input,
|
||
>(
|
||
input: &'input str,
|
||
(_, __0, _): (usize, &'input str, usize),
|
||
) -> Operator
|
||
{
|
||
Operator::GreaterThanOrEqual
|
||
}
|
||
|
||
#[allow(unused_variables)]
|
||
fn __action34<
|
||
'input,
|
||
>(
|
||
input: &'input str,
|
||
(_, _, _): (usize, &'input str, usize),
|
||
(_, __0, _): (usize, String, usize),
|
||
) -> Flag
|
||
{
|
||
Flag::Shorthand(__0.to_string())
|
||
}
|
||
|
||
#[allow(unused_variables)]
|
||
fn __action35<
|
||
'input,
|
||
>(
|
||
input: &'input str,
|
||
(_, _, _): (usize, &'input str, usize),
|
||
(_, __0, _): (usize, String, usize),
|
||
) -> Flag
|
||
{
|
||
Flag::Longhand(__0.to_string())
|
||
}
|
||
|
||
#[allow(unused_variables)]
|
||
fn __action36<
|
||
'input,
|
||
>(
|
||
input: &'input str,
|
||
(_, __0, _): (usize, String, usize),
|
||
) -> String
|
||
{
|
||
(__0)
|
||
}
|
||
|
||
#[allow(unused_variables)]
|
||
fn __action37<
|
||
'input,
|
||
>(
|
||
input: &'input str,
|
||
(_, __0, _): (usize, String, usize),
|
||
) -> String
|
||
{
|
||
(__0)
|
||
}
|
||
|
||
#[allow(unused_variables)]
|
||
fn __action38<
|
||
'input,
|
||
>(
|
||
input: &'input str,
|
||
(_, __0, _): (usize, String, usize),
|
||
) -> String
|
||
{
|
||
(__0)
|
||
}
|
||
|
||
#[allow(unused_variables)]
|
||
fn __action39<
|
||
'input,
|
||
>(
|
||
input: &'input str,
|
||
(_, s, _): (usize, &'input str, usize),
|
||
) -> &'input str
|
||
{
|
||
s
|
||
}
|
||
|
||
#[allow(unused_variables)]
|
||
fn __action40<
|
||
'input,
|
||
>(
|
||
input: &'input str,
|
||
(_, s, _): (usize, &'input str, usize),
|
||
) -> String
|
||
{
|
||
s.to_string()
|
||
}
|
||
|
||
#[allow(unused_variables)]
|
||
fn __action41<
|
||
'input,
|
||
>(
|
||
input: &'input str,
|
||
(_, s, _): (usize, &'input str, usize),
|
||
) -> String
|
||
{
|
||
s[1..s.len() - 1].to_string()
|
||
}
|
||
|
||
#[allow(unused_variables)]
|
||
fn __action42<
|
||
'input,
|
||
>(
|
||
input: &'input str,
|
||
(_, s, _): (usize, &'input str, usize),
|
||
) -> String
|
||
{
|
||
s[1..s.len() - 1].to_string()
|
||
}
|
||
|
||
#[allow(unused_variables)]
|
||
fn __action43<
|
||
'input,
|
||
>(
|
||
input: &'input str,
|
||
(_, s, _): (usize, &'input str, usize),
|
||
) -> i64
|
||
{
|
||
i64::from_str(s).unwrap()
|
||
}
|
||
|
||
#[allow(unused_variables)]
|
||
fn __action44<
|
||
'input,
|
||
>(
|
||
input: &'input str,
|
||
(_, s, _): (usize, &'input str, usize),
|
||
) -> i64
|
||
{
|
||
Byte::from_string(s).unwrap().get_bytes() as i64
|
||
}
|
||
|
||
#[allow(unused_variables)]
|
||
fn __action45<
|
||
'input,
|
||
>(
|
||
input: &'input str,
|
||
(_, __0, _): (usize, String, usize),
|
||
) -> ::std::vec::Vec<String>
|
||
{
|
||
vec![__0]
|
||
}
|
||
|
||
#[allow(unused_variables)]
|
||
fn __action46<
|
||
'input,
|
||
>(
|
||
input: &'input str,
|
||
(_, v, _): (usize, ::std::vec::Vec<String>, usize),
|
||
(_, e, _): (usize, String, usize),
|
||
) -> ::std::vec::Vec<String>
|
||
{
|
||
{ let mut v = v; v.push(e); v }
|
||
}
|
||
|
||
#[allow(unused_variables)]
|
||
fn __action47<
|
||
'input,
|
||
>(
|
||
input: &'input str,
|
||
(_, _, _): (usize, &'input str, usize),
|
||
(_, __0, _): (usize, String, usize),
|
||
) -> String
|
||
{
|
||
(__0)
|
||
}
|
||
|
||
#[allow(unused_variables)]
|
||
fn __action48<
|
||
'input,
|
||
>(
|
||
input: &'input str,
|
||
__lookbehind: &usize,
|
||
__lookahead: &usize,
|
||
) -> ::std::vec::Vec<Expression>
|
||
{
|
||
vec![]
|
||
}
|
||
|
||
#[allow(unused_variables)]
|
||
fn __action49<
|
||
'input,
|
||
>(
|
||
input: &'input str,
|
||
(_, v, _): (usize, ::std::vec::Vec<Expression>, usize),
|
||
) -> ::std::vec::Vec<Expression>
|
||
{
|
||
v
|
||
}
|
||
|
||
#[allow(unused_variables)]
|
||
fn __action50<
|
||
'input,
|
||
>(
|
||
input: &'input str,
|
||
(_, __0, _): (usize, ParsedCommand, usize),
|
||
) -> ::std::vec::Vec<ParsedCommand>
|
||
{
|
||
vec![__0]
|
||
}
|
||
|
||
#[allow(unused_variables)]
|
||
fn __action51<
|
||
'input,
|
||
>(
|
||
input: &'input str,
|
||
(_, v, _): (usize, ::std::vec::Vec<ParsedCommand>, usize),
|
||
(_, e, _): (usize, ParsedCommand, usize),
|
||
) -> ::std::vec::Vec<ParsedCommand>
|
||
{
|
||
{ let mut v = v; v.push(e); v }
|
||
}
|
||
|
||
#[allow(unused_variables)]
|
||
fn __action52<
|
||
'input,
|
||
>(
|
||
input: &'input str,
|
||
(_, _, _): (usize, &'input str, usize),
|
||
(_, __0, _): (usize, ParsedCommand, usize),
|
||
) -> ParsedCommand
|
||
{
|
||
(__0)
|
||
}
|
||
|
||
#[allow(unused_variables)]
|
||
fn __action53<
|
||
'input,
|
||
>(
|
||
input: &'input str,
|
||
(_, __0, _): (usize, Expression, usize),
|
||
) -> ::std::vec::Vec<Expression>
|
||
{
|
||
vec![__0]
|
||
}
|
||
|
||
#[allow(unused_variables)]
|
||
fn __action54<
|
||
'input,
|
||
>(
|
||
input: &'input str,
|
||
(_, v, _): (usize, ::std::vec::Vec<Expression>, usize),
|
||
(_, e, _): (usize, Expression, usize),
|
||
) -> ::std::vec::Vec<Expression>
|
||
{
|
||
{ let mut v = v; v.push(e); v }
|
||
}
|
||
|
||
#[allow(unused_variables)]
|
||
fn __action55<
|
||
'input,
|
||
>(
|
||
input: &'input str,
|
||
__0: (usize, &'input str, usize),
|
||
__1: (usize, String, usize),
|
||
) -> ::std::vec::Vec<String>
|
||
{
|
||
let __start0 = __0.0.clone();
|
||
let __end0 = __1.2.clone();
|
||
let __temp0 = __action47(
|
||
input,
|
||
__0,
|
||
__1,
|
||
);
|
||
let __temp0 = (__start0, __temp0, __end0);
|
||
__action45(
|
||
input,
|
||
__temp0,
|
||
)
|
||
}
|
||
|
||
#[allow(unused_variables)]
|
||
fn __action56<
|
||
'input,
|
||
>(
|
||
input: &'input str,
|
||
__0: (usize, ::std::vec::Vec<String>, usize),
|
||
__1: (usize, &'input str, usize),
|
||
__2: (usize, String, usize),
|
||
) -> ::std::vec::Vec<String>
|
||
{
|
||
let __start0 = __1.0.clone();
|
||
let __end0 = __2.2.clone();
|
||
let __temp0 = __action47(
|
||
input,
|
||
__1,
|
||
__2,
|
||
);
|
||
let __temp0 = (__start0, __temp0, __end0);
|
||
__action46(
|
||
input,
|
||
__0,
|
||
__temp0,
|
||
)
|
||
}
|
||
|
||
#[allow(unused_variables)]
|
||
fn __action57<
|
||
'input,
|
||
>(
|
||
input: &'input str,
|
||
__0: (usize, &'input str, usize),
|
||
__1: (usize, ParsedCommand, usize),
|
||
) -> ::std::vec::Vec<ParsedCommand>
|
||
{
|
||
let __start0 = __0.0.clone();
|
||
let __end0 = __1.2.clone();
|
||
let __temp0 = __action52(
|
||
input,
|
||
__0,
|
||
__1,
|
||
);
|
||
let __temp0 = (__start0, __temp0, __end0);
|
||
__action50(
|
||
input,
|
||
__temp0,
|
||
)
|
||
}
|
||
|
||
#[allow(unused_variables)]
|
||
fn __action58<
|
||
'input,
|
||
>(
|
||
input: &'input str,
|
||
__0: (usize, ::std::vec::Vec<ParsedCommand>, usize),
|
||
__1: (usize, &'input str, usize),
|
||
__2: (usize, ParsedCommand, usize),
|
||
) -> ::std::vec::Vec<ParsedCommand>
|
||
{
|
||
let __start0 = __1.0.clone();
|
||
let __end0 = __2.2.clone();
|
||
let __temp0 = __action52(
|
||
input,
|
||
__1,
|
||
__2,
|
||
);
|
||
let __temp0 = (__start0, __temp0, __end0);
|
||
__action51(
|
||
input,
|
||
__0,
|
||
__temp0,
|
||
)
|
||
}
|
||
|
||
#[allow(unused_variables)]
|
||
fn __action59<
|
||
'input,
|
||
>(
|
||
input: &'input str,
|
||
__0: (usize, String, usize),
|
||
) -> ParsedCommand
|
||
{
|
||
let __start0 = __0.2.clone();
|
||
let __end0 = __0.2.clone();
|
||
let __temp0 = __action48(
|
||
input,
|
||
&__start0,
|
||
&__end0,
|
||
);
|
||
let __temp0 = (__start0, __temp0, __end0);
|
||
__action3(
|
||
input,
|
||
__0,
|
||
__temp0,
|
||
)
|
||
}
|
||
|
||
#[allow(unused_variables)]
|
||
fn __action60<
|
||
'input,
|
||
>(
|
||
input: &'input str,
|
||
__0: (usize, String, usize),
|
||
__1: (usize, ::std::vec::Vec<Expression>, usize),
|
||
) -> ParsedCommand
|
||
{
|
||
let __start0 = __1.0.clone();
|
||
let __end0 = __1.2.clone();
|
||
let __temp0 = __action49(
|
||
input,
|
||
__1,
|
||
);
|
||
let __temp0 = (__start0, __temp0, __end0);
|
||
__action3(
|
||
input,
|
||
__0,
|
||
__temp0,
|
||
)
|
||
}
|
||
|
||
pub trait __ToTriple<'input, > {
|
||
fn to_triple(value: Self) -> Result<(usize,Token<'input>,usize), __lalrpop_util::ParseError<usize, Token<'input>, &'static str>>;
|
||
}
|
||
|
||
impl<'input, > __ToTriple<'input, > for (usize, Token<'input>, usize) {
|
||
fn to_triple(value: Self) -> Result<(usize,Token<'input>,usize), __lalrpop_util::ParseError<usize, Token<'input>, &'static str>> {
|
||
Ok(value)
|
||
}
|
||
}
|
||
impl<'input, > __ToTriple<'input, > for Result<(usize, Token<'input>, usize), &'static str> {
|
||
fn to_triple(value: Self) -> Result<(usize,Token<'input>,usize), __lalrpop_util::ParseError<usize, Token<'input>, &'static str>> {
|
||
match value {
|
||
Ok(v) => Ok(v),
|
||
Err(error) => Err(__lalrpop_util::ParseError::User { error }),
|
||
}
|
||
}
|
||
}
|