Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Rename ASTHelpers to ASTConstruction

  • Loading branch information...
commit f776af765ab8d9430cb3d3a3320d45b6d94787cc 1 parent ef98f1b
@dudleyf authored
Showing with 6 additions and 6 deletions.
  1. +2 −2 lib/kpeg/code_generator.rb
  2. +4 −4 test/test_kpeg_code_generator.rb
View
4 lib/kpeg/code_generator.rb
@@ -83,14 +83,14 @@ def handle_ast(code)
if output_node
code << " end\n"
- code << " module #{root}Helpers\n"
+ code << " module #{root}Construction\n"
methods.each do |short, name, attrs|
code << " def #{short}(#{attrs.join(', ')})\n"
code << " #{root}::#{name}.new(#{attrs.join(', ')})\n"
code << " end\n"
end
code << " end\n"
- code << " include #{root}Helpers\n"
+ code << " include #{root}Construction\n"
end
end
View
8 test/test_kpeg_code_generator.rb
@@ -1661,7 +1661,7 @@ def initialize()
end
end
end
- module ASTHelpers
+ module ASTConstruction
def bracket(receiver, argument)
AST::BracketOperator.new(receiver, argument)
end
@@ -1672,7 +1672,7 @@ def simple2()
AST::Simple2.new()
end
end
- include ASTHelpers
+ include ASTConstruction
# root = .
def _root
@@ -1718,12 +1718,12 @@ def initialize(receiver, argument)
attr_reader :argument
end
end
- module MegaASTHelpers
+ module MegaASTConstruction
def bracket(receiver, argument)
MegaAST::BracketOperator.new(receiver, argument)
end
end
- include MegaASTHelpers
+ include MegaASTConstruction
# root = .
def _root
Please sign in to comment.
Something went wrong with that request. Please try again.