aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/LuaSL/src/LuaSL_lexer.l
diff options
context:
space:
mode:
authorDavid Walter Seikel2012-01-13 10:18:06 +1000
committerDavid Walter Seikel2012-01-13 10:18:06 +1000
commit23b491733ab314bd9769ce9e9f2a4f375cb46fae (patch)
tree98b5a75f68bad06cbc637f17dab07c0ea9feb2aa /LuaSL/src/LuaSL_lexer.l
parentBig comment about type casting and the various operations an types. (diff)
downloadSledjHamr-23b491733ab314bd9769ce9e9f2a4f375cb46fae.zip
SledjHamr-23b491733ab314bd9769ce9e9f2a4f375cb46fae.tar.gz
SledjHamr-23b491733ab314bd9769ce9e9f2a4f375cb46fae.tar.bz2
SledjHamr-23b491733ab314bd9769ce9e9f2a4f375cb46fae.tar.xz
Generic type handling, and add the float type.
Diffstat (limited to 'LuaSL/src/LuaSL_lexer.l')
-rw-r--r--LuaSL/src/LuaSL_lexer.l6
1 files changed, 3 insertions, 3 deletions
diff --git a/LuaSL/src/LuaSL_lexer.l b/LuaSL/src/LuaSL_lexer.l
index 2b60634..2b57f68 100644
--- a/LuaSL/src/LuaSL_lexer.l
+++ b/LuaSL/src/LuaSL_lexer.l
@@ -19,9 +19,9 @@ HEX [[:xdigit:]]
19DECIMAL [[:digit:]] 19DECIMAL [[:digit:]]
20 /* LSL has no octal integer type. */ 20 /* LSL has no octal integer type. */
21INTEGER ({DECIMAL}+)|(0[xX]{HEX}+) 21INTEGER ({DECIMAL}+)|(0[xX]{HEX}+)
22EXPONANT [eE][+-]?{DECIMAL} 22EXPONANT [eE][+-]?{DECIMAL}+
23 /* Floats can be "0." but I don't think ".0" is valid. */ 23 /* Floats can be "0." but I don't think ".0" is valid. It might be though, need to double check that. */
24FLOAT {DECIMAL}("."{DECIMAL})?{EXPONANT}?[fF]? 24FLOAT {DECIMAL}+"."{DECIMAL}*{EXPONANT}?[fF]?
25CHAR '(\\.|[^\\'\n])+' 25CHAR '(\\.|[^\\'\n])+'
26STRING \"(\\.|[^\\"\n])*\" 26STRING \"(\\.|[^\\"\n])*\"
27IDENTIFIER [[:alpha:]](_|[[:alpha:]]|[[:digit:]])* 27IDENTIFIER [[:alpha:]](_|[[:alpha:]]|[[:digit:]])*