Class: Rattler::BackEnd::ParserGenerator::TokenGenerator
- Inherits:
-
ExprGenerator
- Object
- ExprGenerator
- Rattler::BackEnd::ParserGenerator::TokenGenerator
- Includes:
- PredicatePropogating, SkipPropogating, TokenPropogating
- Defined in:
- lib/rattler/back_end/parser_generator/token_generator.rb
Direct Known Subclasses
Class Method Summary collapse
Instance Method Summary collapse
Methods included from SkipPropogating
#gen_intermediate_skip, #gen_skip
Methods included from TokenPropogating
Methods included from PredicatePropogating
#gen_assert, #gen_disallow, #gen_intermediate_assert, #gen_intermediate_disallow
Methods inherited from ExprGenerator
#gen_direct_action, #gen_dispatch_action, #gen_intermediate, #gen_intermediate_assert, #gen_intermediate_disallow, #gen_intermediate_skip, #gen_token, #initialize
Methods included from Parsers
Constructor Details
This class inherits a constructor from Rattler::BackEnd::ParserGenerator::ExprGenerator
Class Method Details
.nested(*args) ⇒ Object
22 23 24 |
# File 'lib/rattler/back_end/parser_generator/token_generator.rb', line 22 def TokenGenerator.nested(*args) NestedTokenGenerator.new(*args) end |
.top_level(*args) ⇒ Object
32 33 34 |
# File 'lib/rattler/back_end/parser_generator/token_generator.rb', line 32 def TokenGenerator.top_level(*args) TopLevelTokenGenerator.new(*args) end |
Instance Method Details
#gen_basic(token, scope = {}) ⇒ Object
11 12 13 |
# File 'lib/rattler/back_end/parser_generator/token_generator.rb', line 11 def gen_basic(token, scope={}) generate token.child, :token, scope end |