Sha256: 94b3286b03445e5ace90972490482c8566113dda70db513a46adccb94c21368c

Contents?: true

Size: 265 Bytes

Versions: 3

Compression:

Stored size: 265 Bytes

Contents

# frozen_string_literal: true

module Basic101

  class Parser < Parslet::Parser

    rule(:let_statement) do
      (str('LET') >> space?).maybe >>
        reference.as(:lvalue) >> space? >> 
        str('=') >> space? >> expression.as(:rvalue)
    end

  end

end

Version data entries

3 entries across 3 versions & 1 rubygems

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