rubyx/lib/parser/keywords.rb
2014-04-28 15:46:57 +03:00

9 lines
261 B
Ruby

module Parser
module Keywords
include Parslet
rule(:keyword_if) { str('if') >> space? }
rule(:keyword_else) { str('else') >> space? }
rule(:keyword_def) { str('def') >> space? }
rule(:keyword_end) { str('end') >> space? }
end
end