Sha256: 3de40158bb8e499fd0ddd7533f884c9c6eb4ea2885b40569a8aa62e0156dcf6a

Contents?: true

Size: 283 Bytes

Versions: 2

Compression:

Stored size: 283 Bytes

Contents

module Basic101

  class Parser < Parslet::Parser

    rule(:dim_statement) do
      str('DIM').as(:dim) >>
        (space? >> array_reference >>
         (space? >> str(',') >>
          space? >> array_reference
          ).repeat(0)
         ).as(:references)
    end

  end

end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
basic101-0.4.0 lib/basic101/parser/dim_statement.rb
basic101-0.2.0 lib/basic101/parser/dim_statement.rb