Module: Logicality::Lexer::Grammar

Included in:
RegexpLexer
Defined in:
lib/logicality/lexer/grammar.rb

Overview

Define the main regular expression matchers used by the lexer.

Constant Summary collapse

VALUE =
/([a-zA-Z0-9_$@?\.]+)/.freeze
AND_OP =
/(&&)/.freeze
OR_OP =
/(\|\|)/.freeze
NOT_OP =
/(\!)/.freeze
LEFT_PAREN =
/(\()/.freeze
RIGHT_PAREN =
/(\))/.freeze