Module: Rattler::Compiler::ParserGenerator::SubGenerating
- Includes:
- Parsers
- Included in:
- NestedSubGenerating, TopLevelSubGenerating
- Defined in:
- lib/rattler/compiler/parser_generator/sub_generating.rb
Instance Method Summary collapse
- #gen_nested(parser, as = :basic, *args) ⇒ Object
- #gen_top_level(parser, as = :basic, *args) ⇒ Object
- #generate(parser, as = :basic, *args) ⇒ Object
Instance Method Details
#gen_nested(parser, as = :basic, *args) ⇒ Object
14 15 16 |
# File 'lib/rattler/compiler/parser_generator/sub_generating.rb', line 14 def gen_nested(parser, as=:basic, *args) gen_with generator(parser, :nested), parser, as, *args end |
#gen_top_level(parser, as = :basic, *args) ⇒ Object
18 19 20 |
# File 'lib/rattler/compiler/parser_generator/sub_generating.rb', line 18 def gen_top_level(parser, as=:basic, *args) gen_with generator(parser, :top_level), parser, as, *args end |
#generate(parser, as = :basic, *args) ⇒ Object
10 11 12 |
# File 'lib/rattler/compiler/parser_generator/sub_generating.rb', line 10 def generate(parser, as=:basic, *args) gen_with generator(parser), parser, as, *args end |