Sha256: 00881e3c20ab7b59c516ab0cd02ba17bad9cf8d20c3e7a4d9a076e6f02f16185
Contents?: true
Size: 449 Bytes
Versions: 3
Compression:
Stored size: 449 Bytes
Contents
# frozen_string_literal: true module Basic101 class Parser < Parslet::Parser rule(:define_function_statement) do str('DEF').as(:def) >> space? >> user_defined_function_identifier.as(:identifier) >> (space? >> str('(') >> space? >> scalar_reference_list >> space? >> str(')') ).as(:parameters) >> space? >> str('=') >> space? >> expression.as(:expression) end end end
Version data entries
3 entries across 3 versions & 1 rubygems