diff options
author | David Walter Seikel | 2012-01-13 10:18:06 +1000 |
---|---|---|
committer | David Walter Seikel | 2012-01-13 10:18:06 +1000 |
commit | 23b491733ab314bd9769ce9e9f2a4f375cb46fae (patch) | |
tree | 98b5a75f68bad06cbc637f17dab07c0ea9feb2aa /LuaSL/src/LuaSL_lexer.l | |
parent | Big comment about type casting and the various operations an types. (diff) | |
download | SledjHamr-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.l | 6 |
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:]] | |||
19 | DECIMAL [[:digit:]] | 19 | DECIMAL [[:digit:]] |
20 | /* LSL has no octal integer type. */ | 20 | /* LSL has no octal integer type. */ |
21 | INTEGER ({DECIMAL}+)|(0[xX]{HEX}+) | 21 | INTEGER ({DECIMAL}+)|(0[xX]{HEX}+) |
22 | EXPONANT [eE][+-]?{DECIMAL} | 22 | EXPONANT [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. */ |
24 | FLOAT {DECIMAL}("."{DECIMAL})?{EXPONANT}?[fF]? | 24 | FLOAT {DECIMAL}+"."{DECIMAL}*{EXPONANT}?[fF]? |
25 | CHAR '(\\.|[^\\'\n])+' | 25 | CHAR '(\\.|[^\\'\n])+' |
26 | STRING \"(\\.|[^\\"\n])*\" | 26 | STRING \"(\\.|[^\\"\n])*\" |
27 | IDENTIFIER [[:alpha:]](_|[[:alpha:]]|[[:digit:]])* | 27 | IDENTIFIER [[:alpha:]](_|[[:alpha:]]|[[:digit:]])* |