Hei! > Really just syntactic sugar for exactly: > > def foobar > stuff > end > > ?
No. More like def foobar stuff end memoize :foobar > Either way, can you compose simply using ruby modules instead? > > module Foo > rule :foobar do > stuff > end > end Yes. See ip_parser.rb... > class FooBar < Parslet::Parser > include Foo > .... > end > > ? > > I guess that would require using non-conflicting rules for your names in > Foo and Bar, if it works at all. Yup. That's it. regards, kaspar
