Sha256: 16dc40137c2f3c6356e117e508cc93a6a5f37f7fcbb547ff89ecc4f6d42c77d5

Contents?: true

Size: 431 Bytes

Versions: 7

Compression:

Stored size: 431 Bytes

Contents

module Treetop
  module Compiler    
    class Nonterminal < AtomicExpression
      def compile(address, builder, parent_expression = nil)
        super
        use_vars :result
        assign_result text_value == 'super' ? 'super' : "_nt_#{text_value}"
        extend_result_with_declared_module
        extend_result_with_inline_module parent_expression
      end

      def inline_module
        nil
      end
    end
  end
end

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
treetop-1.6.12 lib/treetop/compiler/node_classes/nonterminal.rb
treetop-1.6.11 lib/treetop/compiler/node_classes/nonterminal.rb
treetop-1.6.10 lib/treetop/compiler/node_classes/nonterminal.rb
treetop-1.6.9 lib/treetop/compiler/node_classes/nonterminal.rb
treetop-1.6.8 lib/treetop/compiler/node_classes/nonterminal.rb
treetop-1.6.7 lib/treetop/compiler/node_classes/nonterminal.rb
treetop-1.6.6 lib/treetop/compiler/node_classes/nonterminal.rb