|
|
|
|
@ -69,12 +69,12 @@ end
|
|
|
|
|
(else (false)))
|
|
|
|
|
(case_match (identifier)
|
|
|
|
|
(in_clause
|
|
|
|
|
(pattern_variable (identifier))
|
|
|
|
|
(identifier)
|
|
|
|
|
(unless_guard (binary (identifier) (integer)))
|
|
|
|
|
(then (true))
|
|
|
|
|
)
|
|
|
|
|
(in_clause
|
|
|
|
|
(pattern_variable (identifier))
|
|
|
|
|
(identifier)
|
|
|
|
|
(if_guard (binary (identifier) (integer)))
|
|
|
|
|
(then (true))
|
|
|
|
|
)
|
|
|
|
|
@ -83,43 +83,43 @@ end
|
|
|
|
|
|
|
|
|
|
(case_match (identifier)
|
|
|
|
|
(in_clause (integer))
|
|
|
|
|
(in_clause (array_pattern (integer) (array_pattern_rest)))
|
|
|
|
|
(in_clause (array_pattern (integer) (splat_parameter)))
|
|
|
|
|
(in_clause (array_pattern (integer) (integer)))
|
|
|
|
|
(in_clause (array_pattern (integer) (integer) (array_pattern_rest)))
|
|
|
|
|
(in_clause (array_pattern (integer) (integer) (splat_parameter)))
|
|
|
|
|
(in_clause (array_pattern (integer) (integer) (integer)))
|
|
|
|
|
(in_clause (array_pattern (integer) (integer) (integer) (array_pattern_rest)))
|
|
|
|
|
(in_clause (array_pattern (integer) (integer) (integer) (array_pattern_rest)))
|
|
|
|
|
(in_clause (array_pattern (integer) (array_pattern_rest (identifier)) (integer)))
|
|
|
|
|
(in_clause (array_pattern (array_pattern_rest)))
|
|
|
|
|
(in_clause (array_pattern (array_pattern_rest) (integer) (integer)))
|
|
|
|
|
(in_clause (find_pattern (array_pattern_rest) (integer) (array_pattern_rest)))
|
|
|
|
|
(in_clause (find_pattern (array_pattern_rest (identifier)) (integer) (array_pattern_rest (identifier))))
|
|
|
|
|
(in_clause (hash_pattern (pattern_pair (hash_key_symbol))))
|
|
|
|
|
(in_clause (hash_pattern (pattern_pair (hash_key_symbol) (integer))))
|
|
|
|
|
(in_clause (hash_pattern (pattern_pair (hash_key_symbol) (integer))))
|
|
|
|
|
(in_clause (hash_pattern (pattern_pair (hash_key_symbol) (integer)) (pattern_pair (hash_key_symbol)) (hash_pattern_rest)))
|
|
|
|
|
(in_clause (hash_pattern (pattern_pair (hash_key_symbol) (integer)) (pattern_pair (hash_key_symbol)) (hash_pattern_rest (identifier))))
|
|
|
|
|
(in_clause (hash_pattern (pattern_pair (hash_key_symbol) (integer)) (pattern_pair (hash_key_symbol)) (hash_pattern_norest)))
|
|
|
|
|
(in_clause (hash_pattern (hash_pattern_norest)))
|
|
|
|
|
(in_clause (array_pattern (integer) (integer) (integer) (splat_parameter)))
|
|
|
|
|
(in_clause (array_pattern (integer) (integer) (integer) (splat_parameter)))
|
|
|
|
|
(in_clause (array_pattern (integer) (splat_parameter (identifier)) (integer)))
|
|
|
|
|
(in_clause (array_pattern (splat_parameter)))
|
|
|
|
|
(in_clause (array_pattern (splat_parameter) (integer) (integer)))
|
|
|
|
|
(in_clause (find_pattern (splat_parameter) (integer) (splat_parameter)))
|
|
|
|
|
(in_clause (find_pattern (splat_parameter (identifier)) (integer) (splat_parameter (identifier))))
|
|
|
|
|
(in_clause (hash_pattern (keyword_pattern (hash_key_symbol))))
|
|
|
|
|
(in_clause (hash_pattern (keyword_pattern (hash_key_symbol) (integer))))
|
|
|
|
|
(in_clause (hash_pattern (keyword_pattern (hash_key_symbol) (integer))))
|
|
|
|
|
(in_clause (hash_pattern (keyword_pattern (hash_key_symbol) (integer)) (keyword_pattern (hash_key_symbol)) (hash_splat_parameter)))
|
|
|
|
|
(in_clause (hash_pattern (keyword_pattern (hash_key_symbol) (integer)) (keyword_pattern (hash_key_symbol)) (hash_splat_parameter (identifier))))
|
|
|
|
|
(in_clause (hash_pattern (keyword_pattern (hash_key_symbol) (integer)) (keyword_pattern (hash_key_symbol)) (hash_splat_nil)))
|
|
|
|
|
(in_clause (hash_pattern (hash_splat_nil)))
|
|
|
|
|
(in_clause (array_pattern (integer)))
|
|
|
|
|
(in_clause (array_pattern (integer) (array_pattern_rest)))
|
|
|
|
|
(in_clause (array_pattern (integer) (splat_parameter)))
|
|
|
|
|
(in_clause (array_pattern (integer) (integer)))
|
|
|
|
|
(in_clause (array_pattern (integer) (integer) (array_pattern_rest)))
|
|
|
|
|
(in_clause (array_pattern (integer) (integer) (splat_parameter)))
|
|
|
|
|
(in_clause (array_pattern (integer) (integer) (integer)))
|
|
|
|
|
(in_clause (array_pattern (integer) (integer) (integer) (array_pattern_rest)))
|
|
|
|
|
(in_clause (array_pattern (integer) (integer) (integer) (array_pattern_rest)))
|
|
|
|
|
(in_clause (array_pattern (integer) (array_pattern_rest (identifier)) (integer)))
|
|
|
|
|
(in_clause (array_pattern (array_pattern_rest)))
|
|
|
|
|
(in_clause (array_pattern (array_pattern_rest) (integer) (integer)))
|
|
|
|
|
(in_clause (find_pattern (array_pattern_rest) (integer) (array_pattern_rest)))
|
|
|
|
|
(in_clause (find_pattern (array_pattern_rest (identifier)) (integer) (array_pattern_rest (identifier))))
|
|
|
|
|
(in_clause (hash_pattern (pattern_pair (hash_key_symbol))))
|
|
|
|
|
(in_clause (hash_pattern (pattern_pair (hash_key_symbol) (integer))))
|
|
|
|
|
(in_clause (hash_pattern (pattern_pair (hash_key_symbol) (integer))))
|
|
|
|
|
(in_clause (hash_pattern (pattern_pair (hash_key_symbol) (integer)) (pattern_pair (hash_key_symbol)) (hash_pattern_rest)))
|
|
|
|
|
(in_clause (hash_pattern (pattern_pair (hash_key_symbol) (integer)) (pattern_pair (hash_key_symbol)) (hash_pattern_rest (identifier))))
|
|
|
|
|
(in_clause (hash_pattern (pattern_pair (hash_key_symbol) (integer)) (pattern_pair (hash_key_symbol)) (hash_pattern_norest)))
|
|
|
|
|
(in_clause (hash_pattern (hash_pattern_norest)))
|
|
|
|
|
(in_clause (array_pattern (integer) (integer) (integer) (splat_parameter)))
|
|
|
|
|
(in_clause (array_pattern (integer) (integer) (integer) (splat_parameter)))
|
|
|
|
|
(in_clause (array_pattern (integer) (splat_parameter (identifier)) (integer)))
|
|
|
|
|
(in_clause (array_pattern (splat_parameter)))
|
|
|
|
|
(in_clause (array_pattern (splat_parameter) (integer) (integer)))
|
|
|
|
|
(in_clause (find_pattern (splat_parameter) (integer) (splat_parameter)))
|
|
|
|
|
(in_clause (find_pattern (splat_parameter (identifier)) (integer) (splat_parameter (identifier))))
|
|
|
|
|
(in_clause (hash_pattern (keyword_pattern (hash_key_symbol))))
|
|
|
|
|
(in_clause (hash_pattern (keyword_pattern (hash_key_symbol) (integer))))
|
|
|
|
|
(in_clause (hash_pattern (keyword_pattern (hash_key_symbol) (integer))))
|
|
|
|
|
(in_clause (hash_pattern (keyword_pattern (hash_key_symbol) (integer)) (keyword_pattern (hash_key_symbol)) (hash_splat_parameter)))
|
|
|
|
|
(in_clause (hash_pattern (keyword_pattern (hash_key_symbol) (integer)) (keyword_pattern (hash_key_symbol)) (hash_splat_parameter (identifier))))
|
|
|
|
|
(in_clause (hash_pattern (keyword_pattern (hash_key_symbol) (integer)) (keyword_pattern (hash_key_symbol)) (hash_splat_nil)))
|
|
|
|
|
(in_clause (hash_pattern (hash_splat_nil)))
|
|
|
|
|
(in_clause (hash_pattern))
|
|
|
|
|
(in_clause (array_pattern))
|
|
|
|
|
)
|
|
|
|
|
@ -145,7 +145,7 @@ case expr
|
|
|
|
|
in Foo
|
|
|
|
|
in Foo::Bar
|
|
|
|
|
in ::Foo::Bar
|
|
|
|
|
in nil | self | true | false | __LINE__ | __FILE__ | __ENCODING__
|
|
|
|
|
in (nil | self | true | false | __LINE__ | __FILE__ | __ENCODING__)
|
|
|
|
|
in -> x { x == 10 }
|
|
|
|
|
in :foo
|
|
|
|
|
in :"foo bar"
|
|
|
|
|
@ -158,35 +158,37 @@ end
|
|
|
|
|
(case_match (identifier)
|
|
|
|
|
(in_clause (integer))
|
|
|
|
|
(in_clause (variable_reference_pattern (identifier)))
|
|
|
|
|
(in_clause (pattern_variable (identifier)))
|
|
|
|
|
(in_clause (identifier))
|
|
|
|
|
(in_clause (string (string_content)))
|
|
|
|
|
(in_clause (string_array (bare_string (string_content)) (bare_string (string_content))))
|
|
|
|
|
(in_clause (symbol_array (bare_symbol (string_content)) (bare_symbol (string_content))))
|
|
|
|
|
(in_clause (regex (string_content)))
|
|
|
|
|
(in_clause (pattern_range (integer) (integer)))
|
|
|
|
|
(in_clause (pattern_range (integer)))
|
|
|
|
|
(in_clause (pattern_range (integer)))
|
|
|
|
|
(in_clause (range (integer) (integer)))
|
|
|
|
|
(in_clause (range (integer)))
|
|
|
|
|
(in_clause (range (integer)))
|
|
|
|
|
(in_clause (as_pattern (integer) (identifier)))
|
|
|
|
|
(in_clause
|
|
|
|
|
(alternative_pattern
|
|
|
|
|
(integer)
|
|
|
|
|
(variable_reference_pattern (identifier))
|
|
|
|
|
(pattern_variable (identifier))
|
|
|
|
|
(identifier)
|
|
|
|
|
(string (string_content))
|
|
|
|
|
)
|
|
|
|
|
)
|
|
|
|
|
(in_clause (pattern_constant (constant)))
|
|
|
|
|
(in_clause (pattern_constant_resolution (pattern_constant (constant)) (constant)))
|
|
|
|
|
(in_clause (pattern_constant_resolution (pattern_constant_resolution (constant)) (constant)))
|
|
|
|
|
(in_clause (constant))
|
|
|
|
|
(in_clause (scope_resolution (constant) (constant)))
|
|
|
|
|
(in_clause (scope_resolution (scope_resolution (constant)) (constant)))
|
|
|
|
|
(in_clause
|
|
|
|
|
(alternative_pattern
|
|
|
|
|
(nil)
|
|
|
|
|
(self)
|
|
|
|
|
(true)
|
|
|
|
|
(false)
|
|
|
|
|
(line)
|
|
|
|
|
(file)
|
|
|
|
|
(encoding)
|
|
|
|
|
(parenthesized_pattern
|
|
|
|
|
(alternative_pattern
|
|
|
|
|
(nil)
|
|
|
|
|
(self)
|
|
|
|
|
(true)
|
|
|
|
|
(false)
|
|
|
|
|
(line)
|
|
|
|
|
(file)
|
|
|
|
|
(encoding)
|
|
|
|
|
)
|
|
|
|
|
)
|
|
|
|
|
)
|
|
|
|
|
(in_clause (lambda (lambda_parameters (identifier)) (block (binary (identifier) (integer)))))
|
|
|
|
|
@ -219,19 +221,19 @@ end
|
|
|
|
|
(program
|
|
|
|
|
(case_match (identifier)
|
|
|
|
|
(in_clause (array_pattern))
|
|
|
|
|
(in_clause (array_pattern (pattern_variable (identifier))))
|
|
|
|
|
(in_clause (array_pattern (pattern_variable (identifier)) (array_pattern_rest)))
|
|
|
|
|
(in_clause (array_pattern (pattern_constant_resolution (pattern_constant (constant)) (constant))))
|
|
|
|
|
(in_clause (array_pattern (pattern_constant (constant))))
|
|
|
|
|
(in_clause (array_pattern (pattern_constant (constant)) (array_pattern_rest)))
|
|
|
|
|
(in_clause (array_pattern (identifier)))
|
|
|
|
|
(in_clause (array_pattern (identifier) (splat_parameter)))
|
|
|
|
|
(in_clause (array_pattern (scope_resolution (constant) (constant))))
|
|
|
|
|
(in_clause (array_pattern (constant)))
|
|
|
|
|
(in_clause (array_pattern (constant) (splat_parameter)))
|
|
|
|
|
(in_clause
|
|
|
|
|
(array_pattern
|
|
|
|
|
(pattern_constant (constant))
|
|
|
|
|
(pattern_variable (identifier))
|
|
|
|
|
(pattern_variable (identifier))
|
|
|
|
|
(array_pattern_rest (identifier))
|
|
|
|
|
(pattern_variable (identifier))
|
|
|
|
|
(pattern_variable (identifier))
|
|
|
|
|
(constant)
|
|
|
|
|
(identifier)
|
|
|
|
|
(identifier)
|
|
|
|
|
(splat_parameter (identifier))
|
|
|
|
|
(identifier)
|
|
|
|
|
(identifier)
|
|
|
|
|
)
|
|
|
|
|
)
|
|
|
|
|
)
|
|
|
|
|
@ -252,15 +254,15 @@ end
|
|
|
|
|
|
|
|
|
|
(program
|
|
|
|
|
(case_match (identifier)
|
|
|
|
|
(in_clause (find_pattern (array_pattern_rest) (pattern_variable (identifier)) (array_pattern_rest)))
|
|
|
|
|
(in_clause (find_pattern (array_pattern_rest (identifier)) (integer) (integer) (array_pattern_rest (identifier))))
|
|
|
|
|
(in_clause (find_pattern (splat_parameter) (identifier) (splat_parameter)))
|
|
|
|
|
(in_clause (find_pattern (splat_parameter (identifier)) (integer) (integer) (splat_parameter (identifier))))
|
|
|
|
|
(in_clause (find_pattern
|
|
|
|
|
(pattern_constant_resolution (pattern_constant (constant)) (constant))
|
|
|
|
|
(array_pattern_rest)
|
|
|
|
|
(scope_resolution (constant) (constant))
|
|
|
|
|
(splat_parameter)
|
|
|
|
|
(integer)
|
|
|
|
|
(array_pattern_rest))
|
|
|
|
|
(splat_parameter))
|
|
|
|
|
)
|
|
|
|
|
(in_clause (find_pattern (pattern_constant (constant)) (array_pattern_rest) (pattern_constant (constant)) (array_pattern_rest)))
|
|
|
|
|
(in_clause (find_pattern (constant) (splat_parameter) (constant) (splat_parameter)))
|
|
|
|
|
)
|
|
|
|
|
)
|
|
|
|
|
|
|
|
|
|
@ -282,19 +284,19 @@ end
|
|
|
|
|
|
|
|
|
|
(program (case_match (identifier)
|
|
|
|
|
(in_clause (hash_pattern))
|
|
|
|
|
(in_clause (hash_pattern (pattern_pair (hash_key_symbol))))
|
|
|
|
|
(in_clause (hash_pattern (keyword_pattern (hash_key_symbol))))
|
|
|
|
|
(in_clause (hash_pattern
|
|
|
|
|
(pattern_constant_resolution (pattern_constant (constant)) (constant))
|
|
|
|
|
(pattern_pair (hash_key_symbol) (integer))
|
|
|
|
|
(scope_resolution (constant) (constant))
|
|
|
|
|
(keyword_pattern (hash_key_symbol) (integer))
|
|
|
|
|
))
|
|
|
|
|
(in_clause (hash_pattern
|
|
|
|
|
(pattern_constant_resolution (pattern_constant (constant)) (constant))
|
|
|
|
|
(pattern_pair (hash_key_symbol) (integer))
|
|
|
|
|
(pattern_pair (hash_key_symbol))
|
|
|
|
|
(hash_pattern_rest (identifier))
|
|
|
|
|
(scope_resolution (constant) (constant))
|
|
|
|
|
(keyword_pattern (hash_key_symbol) (integer))
|
|
|
|
|
(keyword_pattern (hash_key_symbol))
|
|
|
|
|
(hash_splat_parameter (identifier))
|
|
|
|
|
))
|
|
|
|
|
(in_clause (hash_pattern (pattern_constant (constant)) (pattern_pair (hash_key_symbol))))
|
|
|
|
|
(in_clause (hash_pattern (pattern_constant (constant)) (hash_pattern_rest)))
|
|
|
|
|
(in_clause (hash_pattern (pattern_constant (constant)) (pattern_pair (hash_key_symbol) (integer)) (hash_pattern_norest)))
|
|
|
|
|
(in_clause (hash_pattern (constant) (keyword_pattern (hash_key_symbol))))
|
|
|
|
|
(in_clause (hash_pattern (constant) (hash_splat_parameter)))
|
|
|
|
|
(in_clause (hash_pattern (constant) (keyword_pattern (hash_key_symbol) (integer)) (hash_splat_nil)))
|
|
|
|
|
)
|
|
|
|
|
)
|
|
|
|
|
|