lib/qlang/lexer/tokens.rb in qlang-0.0.27182110 vs lib/qlang/lexer/tokens.rb in qlang-0.0.27182120
- old
+ new
@@ -4,11 +4,12 @@
# NUM
INT = /[0-9]+/
FLO = /[0-9]+\.[0-9]+/
E = /e/
PI = /pi/
- NUM = /(?:#{FLO}|#{INT}|#{E}|#{PI})/
+ INF = /oo/
+ NUM = /(?:#{FLO}|#{INT}|#{E}|#{PI}|#{INF})/
# FUNCTION
LPRN = /\(/
RPRN = /\)/
EMBEDDED_FUNC = /(?:sin|cos|tan|log)/
@@ -53,9 +54,14 @@
CLN = /\:/
SCLN = /;/
CMA = /\,/
EQL = /\=/
+
+ RSARW = '->'
+ LSARW = '<-'
+ RDARW = '=>'
+ LDARW = '<='
SP = / /
NLIN = /(\r|\n)/
ITGRLSYM = 'S'
# FIXIT