Class: Rattler::Compiler::GrammarParser
- Inherits:
-
Runtime::ExtendedPackratParser
- Object
- Util::Node
- Runtime::Parser
- Runtime::RecursiveDescentParser
- Runtime::PackratParser
- Runtime::ExtendedPackratParser
- Rattler::Compiler::GrammarParser
- Includes:
- Metagrammar, Parsers
- Defined in:
- lib/rattler/compiler/grammar_parser.rb
Instance Attribute Summary
Attributes inherited from Runtime::Parser
Instance Method Summary collapse
-
#initialize(*args) ⇒ GrammarParser
constructor
A new instance of GrammarParser.
Methods included from Metagrammar
#match_action_code, #match_action_code!, #match_atom, #match_atom!, #match_attributed, #match_attributed!, #match_attributed_terms, #match_attributed_terms!, #match_block_close, #match_block_close!, #match_directive, #match_directive!, #match_expression, #match_expression!, #match_fail_expr, #match_fail_expr!, #match_fragments, #match_fragments!, #match_grammar, #match_grammar!, #match_heading, #match_heading!, #match_includes, #match_includes!, #match_inline_directive, #match_inline_directive!, #match_labelable, #match_labelable!, #match_labeled, #match_labeled!, #match_list, #match_list!, #match_list_term, #match_list_term!, #match_module_decl, #match_module_decl!, #match_node_action, #match_node_action!, #match_old_node_action, #match_old_node_action!, #match_prefixable, #match_prefixable!, #match_prefixed, #match_prefixed!, #match_primary, #match_primary!, #match_repeat_count, #match_repeat_count!, #match_require_statement, #match_require_statement!, #match_requires, #match_requires!, #match_rule, #match_rule!, #match_rules, #match_rules!, #match_semantic_action, #match_semantic_action!, #match_semantic_term, #match_semantic_term!, #match_start_directive, #match_start_directive!, #match_suffixable, #match_suffixable!, #match_suffixed, #match_suffixed!, #match_term, #match_term!, #match_terms, #match_terms!, #match_unattributed, #match_unattributed!, #match_wc_decl, #match_wc_decl!, #match_wc_directive, #match_wc_directive!, #match_ws_decl, #match_ws_decl!, #match_ws_directive, #match_ws_directive!, #start_rule
Methods inherited from Runtime::ExtendedPackratParser
Methods inherited from Runtime::RecursiveDescentParser
#match, #method_missing, #respond_to?
Methods included from Runtime::ParserHelper
Methods inherited from Runtime::Parser
#fail, #fail!, #fail_parse, #failure, #failure?, #parse, #parse!, parse!, #parse_fully, #parse_fully!, parse_fully!, #pos, #pos=
Methods inherited from Util::Node
#==, #[], [], #attrs, #can_equal?, #child, #children, #each, #empty?, #eql?, #inspect, #method_missing, #name, #pretty_print, #pretty_print_cycle, #respond_to?, #same_contents?, #to_graphviz, #with_attrs, #with_attrs!, #with_children
Constructor Details
#initialize(*args) ⇒ GrammarParser
Returns a new instance of GrammarParser.
10 11 12 13 14 15 16 |
# File 'lib/rattler/compiler/grammar_parser.rb', line 10 def initialize(*args) super @ws = nil @wc = Match[/[[:alnum:]_]/] @inline = false @directive_stack = [] end |
Dynamic Method Handling
This class handles dynamic methods through the method_missing method in the class Rattler::Runtime::RecursiveDescentParser