Sha256: b7ea231b992cd3f3fa12803086e8d4293836cdd5a2a6b17d43ae30900d541fa5
Contents?: true
Size: 301 Bytes
Versions: 2
Compression:
Stored size: 301 Bytes
Contents
module Basic101 class Parser < Parslet::Parser rule(:unquoted_string) do match('(?=[[:print:]])[^,": ]').repeat(0).as(:string) end rule(:quoted_string) do str('"') >> match('(?=[[:print:]])[^"]').repeat(0).maybe.as(:string) >> str('"') end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
basic101-0.4.0 | lib/basic101/parser/string.rb |
basic101-0.2.0 | lib/basic101/parser/string.rb |