2014-04-27 20:12:24 +02:00
|
|
|
module Parser
|
|
|
|
module Keywords
|
|
|
|
include Parslet
|
|
|
|
rule(:keyword_if) { str('if') >> space? }
|
|
|
|
rule(:keyword_else) { str('else') >> space? }
|
|
|
|
rule(:keyword_def) { str('def') >> space? }
|
2014-04-28 14:46:57 +02:00
|
|
|
rule(:keyword_end) { str('end') >> space? }
|
2014-04-27 20:12:24 +02:00
|
|
|
end
|
|
|
|
end
|