Sha256: 4f82481c297feb57589ec0ad5424ff52507d1a97d0b58d04d3675f65efa83c2b
Contents?: true
Size: 499 Bytes
Versions: 4
Compression:
Stored size: 499 Bytes
Contents
require 'parslet' module Shift module Parser include Parslet rule(:assignment_statement) { variables.as(:left) >> assignment_operator >> (integer_casted_expression | value_returning_expression).as(:right)} rule(:void_statements) { url.as(:url) | url_method | model_definition | control_statement | assignment_statement.as(:assignment_statement) | write_file_statement.as(:write_file_statement) | write_statement.as(:write_statement) | redirect_statement.as(:redirect_statement) } end end
Version data entries
4 entries across 4 versions & 1 rubygems