class Rley::Base::BaseParser
Abstract class for Earley parser.
Attributes
The dotted items/rules for the productions of the grammar
The grammar of the language. @return [Syntax::Grammar]
Public Class Methods
Source
# File lib/rley/base/base_parser.rb, line 23 def initialize(aGrammar) @grammar = aGrammar @dotted_items = build_dotted_items(grammar) # Method from mixin end
Constructor. @param aGrammar [Syntax::Grammar] The grammar of the language.