Sha256: 09fb115d1dd43fb225d6d985aadd4acd7a0e3a49f9d9d615b11a9ba42fe10b2e

Contents?: true

Size: 292 Bytes

Versions: 19

Compression:

Stored size: 292 Bytes

Contents

# Basically just demonstrates that you can leave rules empty and get a nice
# NotImplementedError. A way to quickly spec out your parser rules?

$:.unshift File.dirname(__FILE__) + "/../lib"

require 'parslet'

class Parser < Parslet::Parser
  rule(:empty) { }
end


Parser.new.empty.parslet

Version data entries

19 entries across 19 versions & 3 rubygems

Version Path
parslet-2.0.0 example/empty.rb
parslet-1.8.2 example/empty.rb
parslet-1.8.1 example/empty.rb
parslet-1.8.0 example/empty.rb
swift-pyrite-0.1.1 vendor/bundle/ruby/2.0.0/gems/parslet-1.7.1/example/empty.rb
swift-pyrite-0.1.0 vendor/bundle/ruby/2.0.0/gems/parslet-1.7.1/example/empty.rb
parslet-1.7.1 example/empty.rb
parslet-1.7.0 example/empty.rb
parslet-1.6.2 example/empty.rb
parslet-1.6.1 example/empty.rb
parslet-1.6.0 example/empty.rb
parslet-1.5.0 example/empty.rb
ghazel-parslet-1.4.0.2 example/empty.rb
ghazel-parslet-1.4.0.1 example/empty.rb
parslet-1.4.0 example/empty.rb
parslet-1.3.0 example/empty.rb
parslet-1.2.3 example/empty.rb
parslet-1.2.1 example/empty.rb
parslet-1.2.0 example/empty.rb