Sha256: 8ed258dc6f80eb9a46696a21bbf97e9a3617bce901951160abd3205eb0c5a65a
Contents?: true
Size: 234 Bytes
Versions: 2
Compression:
Stored size: 234 Bytes
Contents
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
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
basic101-0.4.0 | lib/basic101/parser/let_statement.rb |
basic101-0.2.0 | lib/basic101/parser/let_statement.rb |