summaryrefslogtreecommitdiff
path: root/dhall_syntax/src
diff options
context:
space:
mode:
authorNadrieril2019-08-16 11:05:44 +0200
committerNadrieril2019-08-26 21:24:54 +0200
commitf3a66c3603b01cb61334caee4a4749cac166b675 (patch)
treea277ecec82490a45c0dc5b77c47e1dd09038e460 /dhall_syntax/src
parent0fa94400492c08c3a38ae6798a0caeab23da5287 (diff)
Wording
Diffstat (limited to 'dhall_syntax/src')
-rw-r--r--dhall_syntax/src/parser.rs26
1 files changed, 13 insertions, 13 deletions
diff --git a/dhall_syntax/src/parser.rs b/dhall_syntax/src/parser.rs
index b443656..d11eb18 100644
--- a/dhall_syntax/src/parser.rs
+++ b/dhall_syntax/src/parser.rs
@@ -120,52 +120,52 @@ fn debug_pair(pair: Pair<Rule>) -> String {
}
macro_rules! make_parser {
- (@child_pattern,
+ (@children_pattern,
$varpat:ident,
($($acc:tt)*),
[$variant:ident ($x:pat), $($rest:tt)*]
) => (
- make_parser!(@child_pattern,
+ make_parser!(@children_pattern,
$varpat,
($($acc)* , Rule::$variant),
[$($rest)*]
)
);
- (@child_pattern,
+ (@children_pattern,
$varpat:ident,
($($acc:tt)*),
[$variant:ident ($x:ident).., $($rest:tt)*]
) => (
- make_parser!(@child_pattern,
+ make_parser!(@children_pattern,
$varpat,
($($acc)* , $varpat..),
[$($rest)*]
)
);
- (@child_pattern,
+ (@children_pattern,
$varpat:ident,
(, $($acc:tt)*), [$(,)*]
) => ([$($acc)*]);
- (@child_pattern,
+ (@children_pattern,
$varpat:ident,
($($acc:tt)*), [$(,)*]
) => ([$($acc)*]);
- (@child_filter,
+ (@children_filter,
$varpat:ident,
[$variant:ident ($x:pat), $($rest:tt)*]
) => (
true &&
- make_parser!(@child_filter, $varpat, [$($rest)*])
+ make_parser!(@children_filter, $varpat, [$($rest)*])
);
- (@child_filter,
+ (@children_filter,
$varpat:ident,
[$variant:ident ($x:ident).., $($rest:tt)*]
) => (
$varpat.iter().all(|r| r == &Rule::$variant) &&
- make_parser!(@child_filter, $varpat, [$($rest)*])
+ make_parser!(@children_filter, $varpat, [$($rest)*])
);
- (@child_filter, $varpat:ident, [$(,)*]) => (true);
+ (@children_filter, $varpat:ident, [$(,)*]) => (true);
(@rule_alias,
rule!( $name:ident<$o:ty>; $($args:tt)* )
@@ -234,8 +234,8 @@ macro_rules! make_parser {
match children_rules.as_slice() {
$(
- make_parser!(@child_pattern, x, (), [$($args)*,])
- if make_parser!(@child_filter, x, [$($args)*,])
+ make_parser!(@children_pattern, x, (), [$($args)*,])
+ if make_parser!(@children_filter, x, [$($args)*,])
=> {
let ret =
improved_slice_patterns::destructure_iter!(iter;