Sha256: 9eae9a01a9da8797d6e78f68cc208d1f6fada89e580ff240256e5a6ce1dc66fe

Contents?: true

Size: 540 Bytes

Versions: 334

Compression:

Stored size: 540 Bytes

Contents

module Treetop
  module Compiler    
    class AnythingSymbol < AtomicExpression
      def compile(address, builder, parent_expression = nil)
        super
        builder.if__ "index < input_length" do
          assign_result "instantiate_node(#{node_class_name},input, index...(index + 1))"
          extend_result_with_inline_module
          builder << "@index += 1"
        end
        builder.else_ do
          builder << 'terminal_parse_failure("any character")'
          assign_result 'nil'
        end
      end
    end
  end
end

Version data entries

334 entries across 289 versions & 37 rubygems

Version Path
able-neo4j-1.0.0 vendor/bundle/jruby/1.9/gems/treetop-1.4.15/lib/treetop/compiler/node_classes/anything_symbol.rb
logstash-input-beats-2.0.2 vendor/jruby/1.9/gems/logstash-codec-json-2.0.3/vendor/gems/treetop-1.4.15/lib/treetop/compiler/node_classes/anything_symbol.rb
logstash-input-beats-2.0.2 vendor/jruby/1.9/gems/treetop-1.4.15/lib/treetop/compiler/node_classes/anything_symbol.rb
logstash-codec-json-2.0.3 vendor/gems/treetop-1.4.15/lib/treetop/compiler/node_classes/anything_symbol.rb
logstash-input-beats-0.9.2 vendor/jruby/1.9/gems/treetop-1.4.15/lib/treetop/compiler/node_classes/anything_symbol.rb
logstash-input-beats-0.9.1 vendor/jruby/1.9/gems/treetop-1.4.15/lib/treetop/compiler/node_classes/anything_symbol.rb
classiccms-0.7.5 vendor/bundle/gems/treetop-1.4.10/lib/treetop/compiler/node_classes/anything_symbol.rb
classiccms-0.7.4 vendor/bundle/gems/treetop-1.4.10/lib/treetop/compiler/node_classes/anything_symbol.rb
classiccms-0.7.3 vendor/bundle/gems/treetop-1.4.10/lib/treetop/compiler/node_classes/anything_symbol.rb
active_mailer-0.0.10 test/fixtures/dummyapp_rails_3.2/vendor/bundle/ruby/1.9.1/gems/treetop-1.4.12/lib/treetop/compiler/node_classes/anything_symbol.rb
judge-2.0.5 vendor/bundle/ruby/2.1.0/gems/treetop-1.4.12/lib/treetop/compiler/node_classes/anything_symbol.rb
cloudhead-less-1.0.1 lib/vendor/treetop/lib/treetop/compiler/node_classes/anything_symbol.rb
cloudhead-less-1.0.10 lib/vendor/treetop/lib/treetop/compiler/node_classes/anything_symbol.rb
cloudhead-less-1.0.13 lib/vendor/treetop/lib/treetop/compiler/node_classes/anything_symbol.rb
cloudhead-less-1.0.16 lib/vendor/treetop/lib/treetop/compiler/node_classes/anything_symbol.rb
cloudhead-less-1.0.2 lib/vendor/treetop/lib/treetop/compiler/node_classes/anything_symbol.rb
cloudhead-less-1.0.3 lib/vendor/treetop/lib/treetop/compiler/node_classes/anything_symbol.rb
cloudhead-less-1.0.4 lib/vendor/treetop/lib/treetop/compiler/node_classes/anything_symbol.rb
cloudhead-less-1.0.5 lib/vendor/treetop/lib/treetop/compiler/node_classes/anything_symbol.rb
cloudhead-less-1.0.6 lib/vendor/treetop/lib/treetop/compiler/node_classes/anything_symbol.rb