lib/parser/meta.rb in parser-2.2.0.pre.6 vs lib/parser/meta.rb in parser-2.2.0.pre.7
- old
+ new
@@ -1,10 +1,11 @@
module Parser
# Parser metadata
module Meta
- # Nodes parser produces combined for 1.8 1.9 and 2.0 state of 2.1 specific nodes is unknown.
+ # All node types that parser can produce. Not all parser versions
+ # will be able to produce every possible node.
NODE_TYPES =
%w(
true false nil int float str dstr str
sym dsym xstr regopt regexp array splat
array pair kwsplat hash irange erange self
@@ -17,10 +18,10 @@
cbase arg optarg restarg blockarg block_pass args def kwarg kwoptarg
kwrestarg send super zsuper yield block send
and not or if when case while until while_post
until_post for break next redo return resbody
kwbegin begin retry preexe postexe iflipflop eflipflop
- shadowarg
+ shadowarg complex rational __FILE__ __LINE__
).map(&:to_sym).to_set.freeze
end # Meta
end # Parser