Sha256: 0da1409e4e756b48987d23d9f7dae819c9a2fba166c687522529126b0fd72d28

Contents?: true

Size: 314 Bytes

Versions: 3

Compression:

Stored size: 314 Bytes

Contents

# frozen_string_literal: true

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

3 entries across 3 versions & 1 rubygems

Version Path
basic101-1.0.2 lib/basic101/parser/dim_statement.rb
basic101-1.0.1 lib/basic101/parser/dim_statement.rb
basic101-1.0.0 lib/basic101/parser/dim_statement.rb