9 lines
213 B
Ruby
9 lines
213 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? }
|
||
|
|
||
|
end
|
||
|
end
|