Sha256: e6d2d20e291fd3338495febf2d3ab3b62c380a84035db1d9793537727a5372c7
Contents?: true
Size: 385 Bytes
Versions: 3
Compression:
Stored size: 385 Bytes
Contents
# frozen_string_literal: true 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
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
basic101-1.0.2 | lib/basic101/parser/data_statement.rb |
basic101-1.0.1 | lib/basic101/parser/data_statement.rb |
basic101-1.0.0 | lib/basic101/parser/data_statement.rb |