chore(deps): update rust crate lalrpop to 0.20.0 (#596)

* chore(deps): update rust crate lalrpop to 0.20.0

* Update lalrpop-util to compatible version

* Fix code broken by the API change

* Regenerate parsers

---------

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: Ivan Boldyrev <ivan@fluence.one>
This commit is contained in:
renovate[bot] 2023-06-28 03:12:04 +07:00 committed by GitHub
parent be8c97c35c
commit e90dc9285d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
6 changed files with 635 additions and 416 deletions

17
Cargo.lock generated
View File

@ -2026,9 +2026,9 @@ dependencies = [
[[package]] [[package]]
name = "lalrpop" name = "lalrpop"
version = "0.19.12" version = "0.20.0"
source = "registry+https://github.com/rust-lang/crates.io-index" source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "0a1cbf952127589f2851ab2046af368fd20645491bb4b376f04b7f94d7a9837b" checksum = "da4081d44f4611b66c6dd725e6de3169f9f63905421e8626fcb86b6a898998b8"
dependencies = [ dependencies = [
"ascii-canvas", "ascii-canvas",
"bit-set", "bit-set",
@ -2038,8 +2038,9 @@ dependencies = [
"itertools", "itertools",
"lalrpop-util", "lalrpop-util",
"petgraph", "petgraph",
"pico-args",
"regex", "regex",
"regex-syntax 0.6.29", "regex-syntax 0.7.1",
"string_cache", "string_cache",
"term", "term",
"tiny-keccak", "tiny-keccak",
@ -2048,9 +2049,9 @@ dependencies = [
[[package]] [[package]]
name = "lalrpop-util" name = "lalrpop-util"
version = "0.19.12" version = "0.20.0"
source = "registry+https://github.com/rust-lang/crates.io-index" source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "d3c48237b9604c5a4702de6b824e02006c3214327564636aef27c1028a8fa0ed" checksum = "3f35c735096c0293d313e8f2a641627472b83d01b937177fe76e5e2708d31e0d"
dependencies = [ dependencies = [
"regex", "regex",
] ]
@ -2792,6 +2793,12 @@ dependencies = [
"siphasher", "siphasher",
] ]
[[package]]
name = "pico-args"
version = "0.5.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "5be167a7af36ee22fe3115051bc51f6e6c7054c9348e28deb4f49bd6f705a315"
[[package]] [[package]]
name = "pin-project-lite" name = "pin-project-lite"
version = "0.2.9" version = "0.2.9"

View File

@ -15,13 +15,13 @@ name = "air_parser"
path = "src/lib.rs" path = "src/lib.rs"
[build-dependencies] [build-dependencies]
lalrpop = "0.19.12" lalrpop = "0.20.0"
[dependencies] [dependencies]
air-lambda-ast = { version = "0.1.0", path = "../lambda/ast" } air-lambda-ast = { version = "0.1.0", path = "../lambda/ast" }
air-lambda-parser = { version = "0.1.0", path = "../lambda/parser" } air-lambda-parser = { version = "0.1.0", path = "../lambda/parser" }
lalrpop-util = "0.19.12" lalrpop-util = "0.20.0"
regex = "1.8.1" regex = "1.8.1"
codespan = "0.11.1" codespan = "0.11.1"
codespan-reporting = "0.11.1" codespan-reporting = "0.11.1"

File diff suppressed because it is too large Load Diff

View File

@ -102,7 +102,7 @@ fn errors_to_labels(
ParseError::ExtraToken { ParseError::ExtraToken {
token: (start, _, end), token: (start, _, end),
} => Label::primary(file_id, start.into()..end.into()).with_message("extra token"), } => Label::primary(file_id, start.into()..end.into()).with_message("extra token"),
ParseError::UnrecognizedEOF { location, expected } => { ParseError::UnrecognizedEof { location, expected } => {
Label::primary(file_id, location.into()..(location + 1).into()) Label::primary(file_id, location.into()..(location + 1).into())
.with_message(format!("expected {}", pretty_expected(expected))) .with_message(format!("expected {}", pretty_expected(expected)))
} }

View File

@ -15,12 +15,12 @@ name = "air_lambda_parser"
path = "src/lib.rs" path = "src/lib.rs"
[build-dependencies] [build-dependencies]
lalrpop = "0.19.12" lalrpop = "0.20.0"
[dependencies] [dependencies]
air-lambda-ast = { version = "0.1.0", path = "../ast" } air-lambda-ast = { version = "0.1.0", path = "../ast" }
lalrpop-util = "0.19.12" lalrpop-util = "0.20.0"
regex = "1.8.1" regex = "1.8.1"
codespan = "0.11.1" codespan = "0.11.1"
codespan-reporting = "0.11.1" codespan-reporting = "0.11.1"

View File

@ -1,4 +1,4 @@
// auto-generated: "lalrpop 0.19.12" // auto-generated: "lalrpop 0.20.0"
// sha3: 592663f5597c21f4cc9cb3ad5cb93fa0a7db3635fc4d677c2b6130d33b6e22fd // sha3: 592663f5597c21f4cc9cb3ad5cb93fa0a7db3635fc4d677c2b6130d33b6e22fd
use crate::ValueAccessor; use crate::ValueAccessor;
use crate::parser::lambda_parser::RawLambdaAST; use crate::parser::lambda_parser::RawLambdaAST;
@ -13,9 +13,9 @@ use self::__lalrpop_util::state_machine as __state_machine;
extern crate core; extern crate core;
extern crate alloc; extern crate alloc;
#[cfg_attr(rustfmt, rustfmt_skip)] #[rustfmt::skip]
#[allow(non_snake_case, non_camel_case_types, unused_mut, unused_variables, unused_imports, unused_parens, clippy::all)]
mod __parse__RawLambdaAST { mod __parse__RawLambdaAST {
#![allow(non_snake_case, non_camel_case_types, unused_mut, unused_variables, unused_imports, unused_parens, clippy::all)]
use crate::ValueAccessor; use crate::ValueAccessor;
use crate::parser::lambda_parser::RawLambdaAST; use crate::parser::lambda_parser::RawLambdaAST;
@ -164,17 +164,17 @@ mod __parse__RawLambdaAST {
_ => 0, _ => 0,
} }
} }
const __TERMINAL: &[&str] = &[
r###""!""###,
r###"".""###,
r###"".$""###,
r###""[""###,
r###""]""###,
r###"length_functor"###,
r###"number_accessor"###,
r###"string_accessor"###,
];
fn __expected_tokens(__state: i8) -> alloc::vec::Vec<alloc::string::String> { fn __expected_tokens(__state: i8) -> alloc::vec::Vec<alloc::string::String> {
const __TERMINAL: &[&str] = &[
r###""!""###,
r###"".""###,
r###"".$""###,
r###""[""###,
r###""]""###,
r###"length_functor"###,
r###"number_accessor"###,
r###"string_accessor"###,
];
__TERMINAL.iter().enumerate().filter_map(|(index, terminal)| { __TERMINAL.iter().enumerate().filter_map(|(index, terminal)| {
let next_state = __action(__state, index); let next_state = __action(__state, index);
if next_state == 0 { if next_state == 0 {
@ -184,6 +184,24 @@ mod __parse__RawLambdaAST {
} }
}).collect() }).collect()
} }
fn __expected_tokens_from_states<
'err,
'input,
>(
__states: &[i8],
_: core::marker::PhantomData<(&'err (), &'input ())>,
) -> alloc::vec::Vec<alloc::string::String>
where
'input: 'err,
{
__TERMINAL.iter().enumerate().filter_map(|(index, terminal)| {
if __accepts(None, __states, Some(index), core::marker::PhantomData::<(&(), &())>) {
Some(alloc::string::ToString::to_string(terminal))
} else {
None
}
}).collect()
}
pub(crate) struct __StateMachine<'err, 'input> pub(crate) struct __StateMachine<'err, 'input>
where 'input: 'err where 'input: 'err
{ {
@ -248,6 +266,10 @@ mod __parse__RawLambdaAST {
__expected_tokens(state) __expected_tokens(state)
} }
fn expected_tokens_from_states(&self, states: &[i8]) -> alloc::vec::Vec<alloc::string::String> {
__expected_tokens_from_states(states, core::marker::PhantomData::<(&(), &())>)
}
#[inline] #[inline]
fn uses_error_recovery(&self) -> bool { fn uses_error_recovery(&self) -> bool {
true true
@ -518,16 +540,16 @@ mod __parse__RawLambdaAST {
'err, 'err,
'input, 'input,
>( >(
input: &'input str, __error_state: Option<i8>,
errors: &'err mut Vec<ErrorRecovery<usize, Token<'input>, LexerError>>, __states: &[i8],
__error_state: i8,
__states: & [i8],
__opt_integer: Option<usize>, __opt_integer: Option<usize>,
_: core::marker::PhantomData<(&'err (), &'input ())>, _: core::marker::PhantomData<(&'err (), &'input ())>,
) -> bool ) -> bool
where
'input: 'err,
{ {
let mut __states = __states.to_vec(); let mut __states = __states.to_vec();
__states.push(__error_state); __states.extend(__error_state);
loop { loop {
let mut __states_len = __states.len(); let mut __states_len = __states.len();
let __top = __states[__states_len - 1]; let __top = __states[__states_len - 1];
@ -636,8 +658,8 @@ mod __parse__RawLambdaAST {
23 => { 23 => {
// __RawLambdaAST = RawLambdaAST => ActionFn(0); // __RawLambdaAST = RawLambdaAST => ActionFn(0);
let __sym0 = __pop_Variant5(__symbols); let __sym0 = __pop_Variant5(__symbols);
let __start = __sym0.0.clone(); let __start = __sym0.0;
let __end = __sym0.2.clone(); let __end = __sym0.2;
let __nt = super::__action0::<>(input, errors, __sym0); let __nt = super::__action0::<>(input, errors, __sym0);
return Some(Ok(__nt)); return Some(Ok(__nt));
} }
@ -755,8 +777,8 @@ mod __parse__RawLambdaAST {
{ {
// "!"? = "!" => ActionFn(8); // "!"? = "!" => ActionFn(8);
let __sym0 = __pop_Variant0(__symbols); let __sym0 = __pop_Variant0(__symbols);
let __start = __sym0.0.clone(); let __start = __sym0.0;
let __end = __sym0.2.clone(); let __end = __sym0.2;
let __nt = super::__action8::<>(input, errors, __sym0); let __nt = super::__action8::<>(input, errors, __sym0);
__symbols.push((__start, __Symbol::Variant4(__nt), __end)); __symbols.push((__start, __Symbol::Variant4(__nt), __end));
(1, 0) (1, 0)
@ -792,8 +814,8 @@ mod __parse__RawLambdaAST {
{ {
// "."? = "." => ActionFn(10); // "."? = "." => ActionFn(10);
let __sym0 = __pop_Variant0(__symbols); let __sym0 = __pop_Variant0(__symbols);
let __start = __sym0.0.clone(); let __start = __sym0.0;
let __end = __sym0.2.clone(); let __end = __sym0.2;
let __nt = super::__action10::<>(input, errors, __sym0); let __nt = super::__action10::<>(input, errors, __sym0);
__symbols.push((__start, __Symbol::Variant4(__nt), __end)); __symbols.push((__start, __Symbol::Variant4(__nt), __end));
(1, 1) (1, 1)
@ -829,8 +851,8 @@ mod __parse__RawLambdaAST {
{ {
// RawLambdaAST = ".$" => ActionFn(30); // RawLambdaAST = ".$" => ActionFn(30);
let __sym0 = __pop_Variant0(__symbols); let __sym0 = __pop_Variant0(__symbols);
let __start = __sym0.0.clone(); let __start = __sym0.0;
let __end = __sym0.2.clone(); let __end = __sym0.2;
let __nt = super::__action30::<>(input, errors, __sym0); let __nt = super::__action30::<>(input, errors, __sym0);
__symbols.push((__start, __Symbol::Variant5(__nt), __end)); __symbols.push((__start, __Symbol::Variant5(__nt), __end));
(1, 2) (1, 2)
@ -850,8 +872,8 @@ mod __parse__RawLambdaAST {
assert!(__symbols.len() >= 2); assert!(__symbols.len() >= 2);
let __sym1 = __pop_Variant7(__symbols); let __sym1 = __pop_Variant7(__symbols);
let __sym0 = __pop_Variant0(__symbols); let __sym0 = __pop_Variant0(__symbols);
let __start = __sym0.0.clone(); let __start = __sym0.0;
let __end = __sym1.2.clone(); let __end = __sym1.2;
let __nt = super::__action31::<>(input, errors, __sym0, __sym1); let __nt = super::__action31::<>(input, errors, __sym0, __sym1);
__symbols.push((__start, __Symbol::Variant5(__nt), __end)); __symbols.push((__start, __Symbol::Variant5(__nt), __end));
(2, 2) (2, 2)
@ -869,8 +891,8 @@ mod __parse__RawLambdaAST {
{ {
// RawLambdaAST = length_functor => ActionFn(2); // RawLambdaAST = length_functor => ActionFn(2);
let __sym0 = __pop_Variant0(__symbols); let __sym0 = __pop_Variant0(__symbols);
let __start = __sym0.0.clone(); let __start = __sym0.0;
let __end = __sym0.2.clone(); let __end = __sym0.2;
let __nt = super::__action2::<>(input, errors, __sym0); let __nt = super::__action2::<>(input, errors, __sym0);
__symbols.push((__start, __Symbol::Variant5(__nt), __end)); __symbols.push((__start, __Symbol::Variant5(__nt), __end));
(1, 2) (1, 2)
@ -888,8 +910,8 @@ mod __parse__RawLambdaAST {
{ {
// RawLambdaAST = error => ActionFn(3); // RawLambdaAST = error => ActionFn(3);
let __sym0 = __pop_Variant3(__symbols); let __sym0 = __pop_Variant3(__symbols);
let __start = __sym0.0.clone(); let __start = __sym0.0;
let __end = __sym0.2.clone(); let __end = __sym0.2;
let __nt = super::__action3::<>(input, errors, __sym0); let __nt = super::__action3::<>(input, errors, __sym0);
__symbols.push((__start, __Symbol::Variant5(__nt), __end)); __symbols.push((__start, __Symbol::Variant5(__nt), __end));
(1, 2) (1, 2)
@ -912,8 +934,8 @@ mod __parse__RawLambdaAST {
let __sym2 = __pop_Variant1(__symbols); let __sym2 = __pop_Variant1(__symbols);
let __sym1 = __pop_Variant0(__symbols); let __sym1 = __pop_Variant0(__symbols);
let __sym0 = __pop_Variant0(__symbols); let __sym0 = __pop_Variant0(__symbols);
let __start = __sym0.0.clone(); let __start = __sym0.0;
let __end = __sym4.2.clone(); let __end = __sym4.2;
let __nt = super::__action22::<>(input, errors, __sym0, __sym1, __sym2, __sym3, __sym4); let __nt = super::__action22::<>(input, errors, __sym0, __sym1, __sym2, __sym3, __sym4);
__symbols.push((__start, __Symbol::Variant6(__nt), __end)); __symbols.push((__start, __Symbol::Variant6(__nt), __end));
(5, 3) (5, 3)
@ -935,8 +957,8 @@ mod __parse__RawLambdaAST {
let __sym2 = __pop_Variant0(__symbols); let __sym2 = __pop_Variant0(__symbols);
let __sym1 = __pop_Variant1(__symbols); let __sym1 = __pop_Variant1(__symbols);
let __sym0 = __pop_Variant0(__symbols); let __sym0 = __pop_Variant0(__symbols);
let __start = __sym0.0.clone(); let __start = __sym0.0;
let __end = __sym3.2.clone(); let __end = __sym3.2;
let __nt = super::__action23::<>(input, errors, __sym0, __sym1, __sym2, __sym3); let __nt = super::__action23::<>(input, errors, __sym0, __sym1, __sym2, __sym3);
__symbols.push((__start, __Symbol::Variant6(__nt), __end)); __symbols.push((__start, __Symbol::Variant6(__nt), __end));
(4, 3) (4, 3)
@ -958,8 +980,8 @@ mod __parse__RawLambdaAST {
let __sym2 = __pop_Variant1(__symbols); let __sym2 = __pop_Variant1(__symbols);
let __sym1 = __pop_Variant0(__symbols); let __sym1 = __pop_Variant0(__symbols);
let __sym0 = __pop_Variant0(__symbols); let __sym0 = __pop_Variant0(__symbols);
let __start = __sym0.0.clone(); let __start = __sym0.0;
let __end = __sym3.2.clone(); let __end = __sym3.2;
let __nt = super::__action24::<>(input, errors, __sym0, __sym1, __sym2, __sym3); let __nt = super::__action24::<>(input, errors, __sym0, __sym1, __sym2, __sym3);
__symbols.push((__start, __Symbol::Variant6(__nt), __end)); __symbols.push((__start, __Symbol::Variant6(__nt), __end));
(4, 3) (4, 3)
@ -980,8 +1002,8 @@ mod __parse__RawLambdaAST {
let __sym2 = __pop_Variant0(__symbols); let __sym2 = __pop_Variant0(__symbols);
let __sym1 = __pop_Variant1(__symbols); let __sym1 = __pop_Variant1(__symbols);
let __sym0 = __pop_Variant0(__symbols); let __sym0 = __pop_Variant0(__symbols);
let __start = __sym0.0.clone(); let __start = __sym0.0;
let __end = __sym2.2.clone(); let __end = __sym2.2;
let __nt = super::__action25::<>(input, errors, __sym0, __sym1, __sym2); let __nt = super::__action25::<>(input, errors, __sym0, __sym1, __sym2);
__symbols.push((__start, __Symbol::Variant6(__nt), __end)); __symbols.push((__start, __Symbol::Variant6(__nt), __end));
(3, 3) (3, 3)
@ -1004,8 +1026,8 @@ mod __parse__RawLambdaAST {
let __sym2 = __pop_Variant2(__symbols); let __sym2 = __pop_Variant2(__symbols);
let __sym1 = __pop_Variant0(__symbols); let __sym1 = __pop_Variant0(__symbols);
let __sym0 = __pop_Variant0(__symbols); let __sym0 = __pop_Variant0(__symbols);
let __start = __sym0.0.clone(); let __start = __sym0.0;
let __end = __sym4.2.clone(); let __end = __sym4.2;
let __nt = super::__action26::<>(input, errors, __sym0, __sym1, __sym2, __sym3, __sym4); let __nt = super::__action26::<>(input, errors, __sym0, __sym1, __sym2, __sym3, __sym4);
__symbols.push((__start, __Symbol::Variant6(__nt), __end)); __symbols.push((__start, __Symbol::Variant6(__nt), __end));
(5, 3) (5, 3)
@ -1027,8 +1049,8 @@ mod __parse__RawLambdaAST {
let __sym2 = __pop_Variant0(__symbols); let __sym2 = __pop_Variant0(__symbols);
let __sym1 = __pop_Variant2(__symbols); let __sym1 = __pop_Variant2(__symbols);
let __sym0 = __pop_Variant0(__symbols); let __sym0 = __pop_Variant0(__symbols);
let __start = __sym0.0.clone(); let __start = __sym0.0;
let __end = __sym3.2.clone(); let __end = __sym3.2;
let __nt = super::__action27::<>(input, errors, __sym0, __sym1, __sym2, __sym3); let __nt = super::__action27::<>(input, errors, __sym0, __sym1, __sym2, __sym3);
__symbols.push((__start, __Symbol::Variant6(__nt), __end)); __symbols.push((__start, __Symbol::Variant6(__nt), __end));
(4, 3) (4, 3)
@ -1050,8 +1072,8 @@ mod __parse__RawLambdaAST {
let __sym2 = __pop_Variant2(__symbols); let __sym2 = __pop_Variant2(__symbols);
let __sym1 = __pop_Variant0(__symbols); let __sym1 = __pop_Variant0(__symbols);
let __sym0 = __pop_Variant0(__symbols); let __sym0 = __pop_Variant0(__symbols);
let __start = __sym0.0.clone(); let __start = __sym0.0;
let __end = __sym3.2.clone(); let __end = __sym3.2;
let __nt = super::__action28::<>(input, errors, __sym0, __sym1, __sym2, __sym3); let __nt = super::__action28::<>(input, errors, __sym0, __sym1, __sym2, __sym3);
__symbols.push((__start, __Symbol::Variant6(__nt), __end)); __symbols.push((__start, __Symbol::Variant6(__nt), __end));
(4, 3) (4, 3)
@ -1072,8 +1094,8 @@ mod __parse__RawLambdaAST {
let __sym2 = __pop_Variant0(__symbols); let __sym2 = __pop_Variant0(__symbols);
let __sym1 = __pop_Variant2(__symbols); let __sym1 = __pop_Variant2(__symbols);
let __sym0 = __pop_Variant0(__symbols); let __sym0 = __pop_Variant0(__symbols);
let __start = __sym0.0.clone(); let __start = __sym0.0;
let __end = __sym2.2.clone(); let __end = __sym2.2;
let __nt = super::__action29::<>(input, errors, __sym0, __sym1, __sym2); let __nt = super::__action29::<>(input, errors, __sym0, __sym1, __sym2);
__symbols.push((__start, __Symbol::Variant6(__nt), __end)); __symbols.push((__start, __Symbol::Variant6(__nt), __end));
(3, 3) (3, 3)
@ -1094,8 +1116,8 @@ mod __parse__RawLambdaAST {
let __sym2 = __pop_Variant0(__symbols); let __sym2 = __pop_Variant0(__symbols);
let __sym1 = __pop_Variant2(__symbols); let __sym1 = __pop_Variant2(__symbols);
let __sym0 = __pop_Variant0(__symbols); let __sym0 = __pop_Variant0(__symbols);
let __start = __sym0.0.clone(); let __start = __sym0.0;
let __end = __sym2.2.clone(); let __end = __sym2.2;
let __nt = super::__action20::<>(input, errors, __sym0, __sym1, __sym2); let __nt = super::__action20::<>(input, errors, __sym0, __sym1, __sym2);
__symbols.push((__start, __Symbol::Variant6(__nt), __end)); __symbols.push((__start, __Symbol::Variant6(__nt), __end));
(3, 3) (3, 3)
@ -1115,8 +1137,8 @@ mod __parse__RawLambdaAST {
assert!(__symbols.len() >= 2); assert!(__symbols.len() >= 2);
let __sym1 = __pop_Variant2(__symbols); let __sym1 = __pop_Variant2(__symbols);
let __sym0 = __pop_Variant0(__symbols); let __sym0 = __pop_Variant0(__symbols);
let __start = __sym0.0.clone(); let __start = __sym0.0;
let __end = __sym1.2.clone(); let __end = __sym1.2;
let __nt = super::__action21::<>(input, errors, __sym0, __sym1); let __nt = super::__action21::<>(input, errors, __sym0, __sym1);
__symbols.push((__start, __Symbol::Variant6(__nt), __end)); __symbols.push((__start, __Symbol::Variant6(__nt), __end));
(2, 3) (2, 3)
@ -1134,8 +1156,8 @@ mod __parse__RawLambdaAST {
{ {
// ValueAccessor = error => ActionFn(7); // ValueAccessor = error => ActionFn(7);
let __sym0 = __pop_Variant3(__symbols); let __sym0 = __pop_Variant3(__symbols);
let __start = __sym0.0.clone(); let __start = __sym0.0;
let __end = __sym0.2.clone(); let __end = __sym0.2;
let __nt = super::__action7::<>(input, errors, __sym0); let __nt = super::__action7::<>(input, errors, __sym0);
__symbols.push((__start, __Symbol::Variant6(__nt), __end)); __symbols.push((__start, __Symbol::Variant6(__nt), __end));
(1, 3) (1, 3)
@ -1171,8 +1193,8 @@ mod __parse__RawLambdaAST {
{ {
// ValueAccessor* = ValueAccessor+ => ActionFn(13); // ValueAccessor* = ValueAccessor+ => ActionFn(13);
let __sym0 = __pop_Variant7(__symbols); let __sym0 = __pop_Variant7(__symbols);
let __start = __sym0.0.clone(); let __start = __sym0.0;
let __end = __sym0.2.clone(); let __end = __sym0.2;
let __nt = super::__action13::<>(input, errors, __sym0); let __nt = super::__action13::<>(input, errors, __sym0);
__symbols.push((__start, __Symbol::Variant7(__nt), __end)); __symbols.push((__start, __Symbol::Variant7(__nt), __end));
(1, 4) (1, 4)
@ -1190,8 +1212,8 @@ mod __parse__RawLambdaAST {
{ {
// ValueAccessor+ = ValueAccessor => ActionFn(14); // ValueAccessor+ = ValueAccessor => ActionFn(14);
let __sym0 = __pop_Variant6(__symbols); let __sym0 = __pop_Variant6(__symbols);
let __start = __sym0.0.clone(); let __start = __sym0.0;
let __end = __sym0.2.clone(); let __end = __sym0.2;
let __nt = super::__action14::<>(input, errors, __sym0); let __nt = super::__action14::<>(input, errors, __sym0);
__symbols.push((__start, __Symbol::Variant7(__nt), __end)); __symbols.push((__start, __Symbol::Variant7(__nt), __end));
(1, 5) (1, 5)
@ -1211,8 +1233,8 @@ mod __parse__RawLambdaAST {
assert!(__symbols.len() >= 2); assert!(__symbols.len() >= 2);
let __sym1 = __pop_Variant6(__symbols); let __sym1 = __pop_Variant6(__symbols);
let __sym0 = __pop_Variant7(__symbols); let __sym0 = __pop_Variant7(__symbols);
let __start = __sym0.0.clone(); let __start = __sym0.0;
let __end = __sym1.2.clone(); let __end = __sym1.2;
let __nt = super::__action15::<>(input, errors, __sym0, __sym1); let __nt = super::__action15::<>(input, errors, __sym0, __sym1);
__symbols.push((__start, __Symbol::Variant7(__nt), __end)); __symbols.push((__start, __Symbol::Variant7(__nt), __end));
(2, 5) (2, 5)
@ -1221,6 +1243,7 @@ mod __parse__RawLambdaAST {
pub(crate) use self::__parse__RawLambdaAST::RawLambdaASTParser; pub(crate) use self::__parse__RawLambdaAST::RawLambdaASTParser;
#[allow(unused_variables)] #[allow(unused_variables)]
#[allow(clippy::too_many_arguments)]
fn __action0< fn __action0<
'err, 'err,
'input, 'input,
@ -1234,6 +1257,7 @@ fn __action0<
} }
#[allow(unused_variables)] #[allow(unused_variables)]
#[allow(clippy::too_many_arguments)]
fn __action1< fn __action1<
'err, 'err,
'input, 'input,
@ -1248,6 +1272,7 @@ fn __action1<
} }
#[allow(unused_variables)] #[allow(unused_variables)]
#[allow(clippy::too_many_arguments)]
fn __action2< fn __action2<
'err, 'err,
'input, 'input,
@ -1261,6 +1286,7 @@ fn __action2<
} }
#[allow(unused_variables)] #[allow(unused_variables)]
#[allow(clippy::too_many_arguments)]
fn __action3< fn __action3<
'err, 'err,
'input, 'input,
@ -1274,6 +1300,7 @@ fn __action3<
} }
#[allow(unused_variables)] #[allow(unused_variables)]
#[allow(clippy::too_many_arguments)]
fn __action4< fn __action4<
'err, 'err,
'input, 'input,
@ -1293,6 +1320,7 @@ fn __action4<
} }
#[allow(unused_variables)] #[allow(unused_variables)]
#[allow(clippy::too_many_arguments)]
fn __action5< fn __action5<
'err, 'err,
'input, 'input,
@ -1312,6 +1340,7 @@ fn __action5<
} }
#[allow(unused_variables)] #[allow(unused_variables)]
#[allow(clippy::too_many_arguments)]
fn __action6< fn __action6<
'err, 'err,
'input, 'input,
@ -1329,6 +1358,7 @@ fn __action6<
} }
#[allow(unused_variables)] #[allow(unused_variables)]
#[allow(clippy::too_many_arguments)]
fn __action7< fn __action7<
'err, 'err,
'input, 'input,
@ -1342,6 +1372,7 @@ fn __action7<
} }
#[allow(unused_variables)] #[allow(unused_variables)]
#[allow(clippy::too_many_arguments)]
fn __action8< fn __action8<
'err, 'err,
'input, 'input,
@ -1355,6 +1386,7 @@ fn __action8<
} }
#[allow(unused_variables)] #[allow(unused_variables)]
#[allow(clippy::too_many_arguments)]
fn __action9< fn __action9<
'err, 'err,
'input, 'input,
@ -1369,6 +1401,7 @@ fn __action9<
} }
#[allow(unused_variables)] #[allow(unused_variables)]
#[allow(clippy::too_many_arguments)]
fn __action10< fn __action10<
'err, 'err,
'input, 'input,
@ -1382,6 +1415,7 @@ fn __action10<
} }
#[allow(unused_variables)] #[allow(unused_variables)]
#[allow(clippy::too_many_arguments)]
fn __action11< fn __action11<
'err, 'err,
'input, 'input,
@ -1396,6 +1430,7 @@ fn __action11<
} }
#[allow(unused_variables)] #[allow(unused_variables)]
#[allow(clippy::too_many_arguments)]
fn __action12< fn __action12<
'err, 'err,
'input, 'input,
@ -1410,6 +1445,7 @@ fn __action12<
} }
#[allow(unused_variables)] #[allow(unused_variables)]
#[allow(clippy::too_many_arguments)]
fn __action13< fn __action13<
'err, 'err,
'input, 'input,
@ -1423,6 +1459,7 @@ fn __action13<
} }
#[allow(unused_variables)] #[allow(unused_variables)]
#[allow(clippy::too_many_arguments)]
fn __action14< fn __action14<
'err, 'err,
'input, 'input,
@ -1436,6 +1473,7 @@ fn __action14<
} }
#[allow(unused_variables)] #[allow(unused_variables)]
#[allow(clippy::too_many_arguments)]
fn __action15< fn __action15<
'err, 'err,
'input, 'input,
@ -1450,6 +1488,7 @@ fn __action15<
} }
#[allow(unused_variables)] #[allow(unused_variables)]
#[allow(clippy::too_many_arguments)]
fn __action16< fn __action16<
'err, 'err,
'input, 'input,
@ -1463,8 +1502,8 @@ fn __action16<
__4: (usize, Token<'input>, usize), __4: (usize, Token<'input>, usize),
) -> ValueAccessor<'input> ) -> ValueAccessor<'input>
{ {
let __start0 = __4.0.clone(); let __start0 = __4.0;
let __end0 = __4.2.clone(); let __end0 = __4.2;
let __temp0 = __action8( let __temp0 = __action8(
input, input,
errors, errors,
@ -1483,6 +1522,7 @@ fn __action16<
} }
#[allow(unused_variables)] #[allow(unused_variables)]
#[allow(clippy::too_many_arguments)]
fn __action17< fn __action17<
'err, 'err,
'input, 'input,
@ -1495,8 +1535,8 @@ fn __action17<
__3: (usize, Token<'input>, usize), __3: (usize, Token<'input>, usize),
) -> ValueAccessor<'input> ) -> ValueAccessor<'input>
{ {
let __start0 = __3.2.clone(); let __start0 = __3.2;
let __end0 = __3.2.clone(); let __end0 = __3.2;
let __temp0 = __action9( let __temp0 = __action9(
input, input,
errors, errors,
@ -1516,6 +1556,7 @@ fn __action17<
} }
#[allow(unused_variables)] #[allow(unused_variables)]
#[allow(clippy::too_many_arguments)]
fn __action18< fn __action18<
'err, 'err,
'input, 'input,
@ -1529,8 +1570,8 @@ fn __action18<
__4: (usize, Token<'input>, usize), __4: (usize, Token<'input>, usize),
) -> ValueAccessor<'input> ) -> ValueAccessor<'input>
{ {
let __start0 = __4.0.clone(); let __start0 = __4.0;
let __end0 = __4.2.clone(); let __end0 = __4.2;
let __temp0 = __action8( let __temp0 = __action8(
input, input,
errors, errors,
@ -1549,6 +1590,7 @@ fn __action18<
} }
#[allow(unused_variables)] #[allow(unused_variables)]
#[allow(clippy::too_many_arguments)]
fn __action19< fn __action19<
'err, 'err,
'input, 'input,
@ -1561,8 +1603,8 @@ fn __action19<
__3: (usize, Token<'input>, usize), __3: (usize, Token<'input>, usize),
) -> ValueAccessor<'input> ) -> ValueAccessor<'input>
{ {
let __start0 = __3.2.clone(); let __start0 = __3.2;
let __end0 = __3.2.clone(); let __end0 = __3.2;
let __temp0 = __action9( let __temp0 = __action9(
input, input,
errors, errors,
@ -1582,6 +1624,7 @@ fn __action19<
} }
#[allow(unused_variables)] #[allow(unused_variables)]
#[allow(clippy::too_many_arguments)]
fn __action20< fn __action20<
'err, 'err,
'input, 'input,
@ -1593,8 +1636,8 @@ fn __action20<
__2: (usize, Token<'input>, usize), __2: (usize, Token<'input>, usize),
) -> ValueAccessor<'input> ) -> ValueAccessor<'input>
{ {
let __start0 = __2.0.clone(); let __start0 = __2.0;
let __end0 = __2.2.clone(); let __end0 = __2.2;
let __temp0 = __action8( let __temp0 = __action8(
input, input,
errors, errors,
@ -1611,6 +1654,7 @@ fn __action20<
} }
#[allow(unused_variables)] #[allow(unused_variables)]
#[allow(clippy::too_many_arguments)]
fn __action21< fn __action21<
'err, 'err,
'input, 'input,
@ -1621,8 +1665,8 @@ fn __action21<
__1: (usize, &'input str, usize), __1: (usize, &'input str, usize),
) -> ValueAccessor<'input> ) -> ValueAccessor<'input>
{ {
let __start0 = __1.2.clone(); let __start0 = __1.2;
let __end0 = __1.2.clone(); let __end0 = __1.2;
let __temp0 = __action9( let __temp0 = __action9(
input, input,
errors, errors,
@ -1640,6 +1684,7 @@ fn __action21<
} }
#[allow(unused_variables)] #[allow(unused_variables)]
#[allow(clippy::too_many_arguments)]
fn __action22< fn __action22<
'err, 'err,
'input, 'input,
@ -1653,8 +1698,8 @@ fn __action22<
__4: (usize, Token<'input>, usize), __4: (usize, Token<'input>, usize),
) -> ValueAccessor<'input> ) -> ValueAccessor<'input>
{ {
let __start0 = __0.0.clone(); let __start0 = __0.0;
let __end0 = __0.2.clone(); let __end0 = __0.2;
let __temp0 = __action10( let __temp0 = __action10(
input, input,
errors, errors,
@ -1673,6 +1718,7 @@ fn __action22<
} }
#[allow(unused_variables)] #[allow(unused_variables)]
#[allow(clippy::too_many_arguments)]
fn __action23< fn __action23<
'err, 'err,
'input, 'input,
@ -1685,8 +1731,8 @@ fn __action23<
__3: (usize, Token<'input>, usize), __3: (usize, Token<'input>, usize),
) -> ValueAccessor<'input> ) -> ValueAccessor<'input>
{ {
let __start0 = __0.0.clone(); let __start0 = __0.0;
let __end0 = __0.0.clone(); let __end0 = __0.0;
let __temp0 = __action11( let __temp0 = __action11(
input, input,
errors, errors,
@ -1706,6 +1752,7 @@ fn __action23<
} }
#[allow(unused_variables)] #[allow(unused_variables)]
#[allow(clippy::too_many_arguments)]
fn __action24< fn __action24<
'err, 'err,
'input, 'input,
@ -1718,8 +1765,8 @@ fn __action24<
__3: (usize, Token<'input>, usize), __3: (usize, Token<'input>, usize),
) -> ValueAccessor<'input> ) -> ValueAccessor<'input>
{ {
let __start0 = __0.0.clone(); let __start0 = __0.0;
let __end0 = __0.2.clone(); let __end0 = __0.2;
let __temp0 = __action10( let __temp0 = __action10(
input, input,
errors, errors,
@ -1737,6 +1784,7 @@ fn __action24<
} }
#[allow(unused_variables)] #[allow(unused_variables)]
#[allow(clippy::too_many_arguments)]
fn __action25< fn __action25<
'err, 'err,
'input, 'input,
@ -1748,8 +1796,8 @@ fn __action25<
__2: (usize, Token<'input>, usize), __2: (usize, Token<'input>, usize),
) -> ValueAccessor<'input> ) -> ValueAccessor<'input>
{ {
let __start0 = __0.0.clone(); let __start0 = __0.0;
let __end0 = __0.0.clone(); let __end0 = __0.0;
let __temp0 = __action11( let __temp0 = __action11(
input, input,
errors, errors,
@ -1768,6 +1816,7 @@ fn __action25<
} }
#[allow(unused_variables)] #[allow(unused_variables)]
#[allow(clippy::too_many_arguments)]
fn __action26< fn __action26<
'err, 'err,
'input, 'input,
@ -1781,8 +1830,8 @@ fn __action26<
__4: (usize, Token<'input>, usize), __4: (usize, Token<'input>, usize),
) -> ValueAccessor<'input> ) -> ValueAccessor<'input>
{ {
let __start0 = __0.0.clone(); let __start0 = __0.0;
let __end0 = __0.2.clone(); let __end0 = __0.2;
let __temp0 = __action10( let __temp0 = __action10(
input, input,
errors, errors,
@ -1801,6 +1850,7 @@ fn __action26<
} }
#[allow(unused_variables)] #[allow(unused_variables)]
#[allow(clippy::too_many_arguments)]
fn __action27< fn __action27<
'err, 'err,
'input, 'input,
@ -1813,8 +1863,8 @@ fn __action27<
__3: (usize, Token<'input>, usize), __3: (usize, Token<'input>, usize),
) -> ValueAccessor<'input> ) -> ValueAccessor<'input>
{ {
let __start0 = __0.0.clone(); let __start0 = __0.0;
let __end0 = __0.0.clone(); let __end0 = __0.0;
let __temp0 = __action11( let __temp0 = __action11(
input, input,
errors, errors,
@ -1834,6 +1884,7 @@ fn __action27<
} }
#[allow(unused_variables)] #[allow(unused_variables)]
#[allow(clippy::too_many_arguments)]
fn __action28< fn __action28<
'err, 'err,
'input, 'input,
@ -1846,8 +1897,8 @@ fn __action28<
__3: (usize, Token<'input>, usize), __3: (usize, Token<'input>, usize),
) -> ValueAccessor<'input> ) -> ValueAccessor<'input>
{ {
let __start0 = __0.0.clone(); let __start0 = __0.0;
let __end0 = __0.2.clone(); let __end0 = __0.2;
let __temp0 = __action10( let __temp0 = __action10(
input, input,
errors, errors,
@ -1865,6 +1916,7 @@ fn __action28<
} }
#[allow(unused_variables)] #[allow(unused_variables)]
#[allow(clippy::too_many_arguments)]
fn __action29< fn __action29<
'err, 'err,
'input, 'input,
@ -1876,8 +1928,8 @@ fn __action29<
__2: (usize, Token<'input>, usize), __2: (usize, Token<'input>, usize),
) -> ValueAccessor<'input> ) -> ValueAccessor<'input>
{ {
let __start0 = __0.0.clone(); let __start0 = __0.0;
let __end0 = __0.0.clone(); let __end0 = __0.0;
let __temp0 = __action11( let __temp0 = __action11(
input, input,
errors, errors,
@ -1896,6 +1948,7 @@ fn __action29<
} }
#[allow(unused_variables)] #[allow(unused_variables)]
#[allow(clippy::too_many_arguments)]
fn __action30< fn __action30<
'err, 'err,
'input, 'input,
@ -1905,8 +1958,8 @@ fn __action30<
__0: (usize, Token<'input>, usize), __0: (usize, Token<'input>, usize),
) -> RawLambdaAST<'input> ) -> RawLambdaAST<'input>
{ {
let __start0 = __0.2.clone(); let __start0 = __0.2;
let __end0 = __0.2.clone(); let __end0 = __0.2;
let __temp0 = __action12( let __temp0 = __action12(
input, input,
errors, errors,
@ -1923,6 +1976,7 @@ fn __action30<
} }
#[allow(unused_variables)] #[allow(unused_variables)]
#[allow(clippy::too_many_arguments)]
fn __action31< fn __action31<
'err, 'err,
'input, 'input,
@ -1933,8 +1987,8 @@ fn __action31<
__1: (usize, alloc::vec::Vec<ValueAccessor<'input>>, usize), __1: (usize, alloc::vec::Vec<ValueAccessor<'input>>, usize),
) -> RawLambdaAST<'input> ) -> RawLambdaAST<'input>
{ {
let __start0 = __1.0.clone(); let __start0 = __1.0;
let __end0 = __1.2.clone(); let __end0 = __1.2;
let __temp0 = __action13( let __temp0 = __action13(
input, input,
errors, errors,
@ -1948,6 +2002,7 @@ fn __action31<
__temp0, __temp0,
) )
} }
#[allow(clippy::type_complexity)]
pub trait __ToTriple<'err, 'input, > pub trait __ToTriple<'err, 'input, >
{ {