Module: Rgo::Tokenizer::Expression

Defined in:
lib/rgo/tokenizer.rb

Constant Summary collapse

NEWLINE =
/\r\n|\n\r|\r|\n/
SPACE_1 =
/[\t ]+/
SPACE_2 =
/\\[\t ]*#{NEWLINE}/
IDENTIFIER =

SPACE = %r(#SPACE_1|#SPACE_2)

/[a-z]\w*/
INTEGER =
/[0-9]+/
BOOLEAN =
/(true|false)/
COMMENT =
%r(#{comment})m
SYMBOL =
%r(#{sym_1}|#{sym_2}|#{sym_3}|#{sym_4})
STRING =
/L?"(?:\\.|[^"])*"/m
CONSTANT =
/[A-Z]\w*/
INSTANCE_VARIABLE =
/\@\w+/
KEYWORDS =
/class|end|require|module|def|include|true|false|if|else|elsif|alias|return|interface/