Sha256: 9843c8d41ccaabeee1bbf3eb1ec292e7ce795c346a39f22ebf2dfb65902df6f8

Contents?: true

Size: 309 Bytes

Versions: 355

Compression:

Stored size: 309 Bytes

Contents

module Treetop
  module Compiler
    class AtomicExpression < ParsingExpression
      def inline_modules
        []
      end
      
      def single_quote(string)
	# Double any backslashes, then backslash any single-quotes:
	"'#{string.gsub(/\\/) { '\\\\' }.gsub(/'/) { "\\'"}}'"
      end
    end
  end
end

Version data entries

355 entries across 310 versions & 43 rubygems

Version Path
able-neo4j-1.0.0 vendor/bundle/jruby/1.9/gems/treetop-1.4.15/lib/treetop/compiler/node_classes/atomic_expression.rb
treetop-1.6.5 lib/treetop/compiler/node_classes/atomic_expression.rb
treetop-1.6.4 lib/treetop/compiler/node_classes/atomic_expression.rb
logstash-input-beats-2.0.2 vendor/jruby/1.9/gems/treetop-1.4.15/lib/treetop/compiler/node_classes/atomic_expression.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/atomic_expression.rb
logstash-codec-json-2.0.3 vendor/gems/treetop-1.4.15/lib/treetop/compiler/node_classes/atomic_expression.rb
swift-pyrite-0.1.1 vendor/bundle/ruby/2.0.0/gems/treetop-1.6.3/lib/treetop/compiler/node_classes/atomic_expression.rb
swift-pyrite-0.1.0 vendor/bundle/ruby/2.0.0/gems/treetop-1.6.3/lib/treetop/compiler/node_classes/atomic_expression.rb
logstash-input-beats-0.9.2 vendor/jruby/1.9/gems/treetop-1.4.15/lib/treetop/compiler/node_classes/atomic_expression.rb
logstash-input-beats-0.9.1 vendor/jruby/1.9/gems/treetop-1.4.15/lib/treetop/compiler/node_classes/atomic_expression.rb
classiccms-0.7.5 vendor/bundle/gems/treetop-1.4.10/lib/treetop/compiler/node_classes/atomic_expression.rb
classiccms-0.7.4 vendor/bundle/gems/treetop-1.4.10/lib/treetop/compiler/node_classes/atomic_expression.rb
classiccms-0.7.3 vendor/bundle/gems/treetop-1.4.10/lib/treetop/compiler/node_classes/atomic_expression.rb
treetop-1.6.3 lib/treetop/compiler/node_classes/atomic_expression.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/atomic_expression.rb
treetop-1.6.2 lib/treetop/compiler/node_classes/atomic_expression.rb
judge-2.0.5 vendor/bundle/ruby/2.1.0/gems/treetop-1.4.12/lib/treetop/compiler/node_classes/atomic_expression.rb
cloudhead-less-1.0.1 lib/vendor/treetop/lib/treetop/compiler/node_classes/atomic_expression.rb
cloudhead-less-1.0.10 lib/vendor/treetop/lib/treetop/compiler/node_classes/atomic_expression.rb
cloudhead-less-1.0.13 lib/vendor/treetop/lib/treetop/compiler/node_classes/atomic_expression.rb