Class: Subtle::Parser

Inherits:
Parslet::Parser
  • Object
show all
Defined in:
lib/subtle/parser.rb

Instance Method Summary collapse

Constructor Details

#initializeParser

Returns a new instance of Parser.



3
4
5
6
7
8
9
# File 'lib/subtle/parser.rb', line 3

def initialize
  @monadic_verbs = %w{+ - * / % ^ | & ~}
  @monadic_adverbs = %w{//: /: / \\}
  @dyadic_verbs = %w{+ - * / % ^ | & ! = < >}
  @dyadic_adverbs = %w{/: \:}
  @function_adverbs = %w{/:}
end