486e24514b
it was ruby after all should be reborn as twins: namespace and aspect
12 lines
283 B
Ruby
12 lines
283 B
Ruby
module Parser
|
|
module ModuleDef
|
|
include Parslet
|
|
|
|
rule(:class_definition) do
|
|
keyword_class >> class_name >> (smaller >> class_name).maybe.as(:derived_name) >>
|
|
( (keyword_end.absent? >> root_body).repeat()).as(:class_expressions) >> keyword_end
|
|
end
|
|
|
|
end
|
|
end
|