Sha256: d3f92d7ce99d362c4f961eb6be9bdad1217781b9ec7d30e945ed2f79edcef073
Contents?: true
Size: 354 Bytes
Versions: 2
Compression:
Stored size: 354 Bytes
Contents
module Basic101 class Parser < Parslet::Parser rule(:data_statement) do str('DATA') >> (space? >> data_item >> (space? >> str(',') >> space? >> data_item ).repeat(0) ).as(:data_items) end rule(:data_item) do float | integer | quoted_string | unquoted_string end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
basic101-0.4.0 | lib/basic101/parser/data_statement.rb |
basic101-0.2.0 | lib/basic101/parser/data_statement.rb |