lib/rley/engine.rb in rley-0.8.06 vs lib/rley/engine.rb in rley-0.8.08
- old
+ new
@@ -1,8 +1,8 @@
# frozen_string_literal: true
-require_relative './notation/grammar_builder'
+require_relative './rgn/grammar_builder'
require_relative './parser/gfg_earley_parser'
require_relative './parse_tree_visitor'
require_relative './parse_forest_visitor'
require_relative './parse_rep/parse_tree_factory'
require_relative './parse_rep/parse_forest_factory'
@@ -59,10 +59,10 @@
# add_production('array' => 'LBRACKET RBRACKET')
# add_production('elements' => 'elements COMMA INTEGER')
# add_production('elements' => 'INTEGER')
# end
def build_grammar(&aBlock)
- builder = Rley::Notation::GrammarBuilder.new(&aBlock)
+ builder = Rley::RGN::GrammarBuilder.new(&aBlock)
@grammar = builder.grammar
end
# Use the given grammar.
# @param aGrammar [Rley::Syntax::Grammar]