Skip to content
Fetching contributors…
Cannot retrieve contributors at this time
14 lines (8 sloc) 292 Bytes
# 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
Something went wrong with that request. Please try again.