rubyx/lib/parser/module_definition.rb

10 lines
241 B
Ruby
Raw Normal View History

2014-05-29 14:57:33 +02:00
module Parser
module ModuleDef
include Parslet
rule(:module_definition) do
2014-05-29 14:57:33 +02:00
keyword_module >> name >> eol >>
( (keyword_end.absent? >> root).repeat(1)).as(:module_expressions) >> keyword_end >> newline
end
end
end