parser 0.9.1 → 0.9.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.gitignore +1 -0
- data/Rakefile +2 -1
- data/TODO.md +20 -0
- data/bin/explain-parse +1 -1
- data/lib/parser/all.rb +1 -0
- data/lib/parser/builders/default.rb +30 -2
- data/lib/parser/lexer/literal.rb +41 -20
- data/lib/parser/lexer/stack_state.rb +4 -0
- data/lib/parser/lexer.rb +2585 -2545
- data/lib/parser/lexer.rl +61 -38
- data/lib/parser/ruby18.rb +3133 -3171
- data/lib/parser/ruby18.y +16 -30
- data/lib/parser/ruby19.rb +3319 -3388
- data/lib/parser/ruby19.y +35 -50
- data/lib/parser/ruby20.rb +6961 -0
- data/lib/parser/ruby20.y +2190 -0
- data/lib/parser.rb +0 -1
- data/parse.y.diff +12201 -0
- data/parser.gemspec +2 -1
- data/test/helper.rb +1 -1
- data/test/parse_helper.rb +2 -2
- data/test/test_lexer.rb +95 -5
- data/test/test_lexer_stack_state.rb +7 -0
- data/test/test_parser.rb +138 -5
- metadata +6 -2
data/lib/parser.rb
CHANGED
@@ -78,7 +78,6 @@ module Parser
|
|
78
78
|
:dynamic_const => "dynamic constant assignment",
|
79
79
|
:module_in_def => "module definition in method body",
|
80
80
|
:class_in_def => "class definition in method body",
|
81
|
-
:grouped_expression => "(...) interpreted as grouped expression",
|
82
81
|
:space_before_lparen => "don't put space before argument parentheses",
|
83
82
|
:unexpected_percent_str => "%{type}: unknown type of percent-literal",
|
84
83
|
:useless_else => "else without rescue is useless",
|