aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/LuaSL/src/LuaSL_lexer.l
diff options
context:
space:
mode:
authorDavid Walter Seikel2012-01-21 16:08:45 +1000
committerDavid Walter Seikel2012-01-21 16:08:45 +1000
commitbe10c14e35ee902030cb7a4bbcd291c2aa14b457 (patch)
treec56c620ecdb943cdfc74a02f4077d647b0a21127 /LuaSL/src/LuaSL_lexer.l
parentAdd some function calls to the LSL constants script. (diff)
downloadSledjHamr-be10c14e35ee902030cb7a4bbcd291c2aa14b457.zip
SledjHamr-be10c14e35ee902030cb7a4bbcd291c2aa14b457.tar.gz
SledjHamr-be10c14e35ee902030cb7a4bbcd291c2aa14b457.tar.bz2
SledjHamr-be10c14e35ee902030cb7a4bbcd291c2aa14b457.tar.xz
Comments about LSL identifier quirks.
Diffstat (limited to 'LuaSL/src/LuaSL_lexer.l')
-rw-r--r--LuaSL/src/LuaSL_lexer.l4
1 files changed, 3 insertions, 1 deletions
diff --git a/LuaSL/src/LuaSL_lexer.l b/LuaSL/src/LuaSL_lexer.l
index e3ef214..1d2548a 100644
--- a/LuaSL/src/LuaSL_lexer.l
+++ b/LuaSL/src/LuaSL_lexer.l
@@ -21,7 +21,9 @@ INTEGER ({DECIMAL}+)|(0[xX]{HEX}+)
21EXPONANT [eE][+-]?{DECIMAL}+ 21EXPONANT [eE][+-]?{DECIMAL}+
22 /* Floats can be "0." or".0", but "." is not valid. At least in OpenSim. A single dot should be caught by the LSL_Dot rule first anyway.*/ 22 /* Floats can be "0." or".0", but "." is not valid. At least in OpenSim. A single dot should be caught by the LSL_Dot rule first anyway.*/
23FLOAT {DECIMAL}*"."{DECIMAL}*{EXPONANT}?[fF]? 23FLOAT {DECIMAL}*"."{DECIMAL}*{EXPONANT}?[fF]?
24IDENTIFIER [[:alpha:]](_|[[:alpha:]]|[[:digit:]])* 24 /* Variable identifiers can have these extra characters at the end or beginning, they will be ignored- #$`'\? */
25 /* Function identifiers can start with $ */
26IDENTIFIER (_|[[:alpha:]])(_|[[:alpha:]]|[[:digit:]])*
25CHAR '(\\.|[^\\'\n])+' 27CHAR '(\\.|[^\\'\n])+'
26KEY \"{HEX}{8}-{HEX}{4}-{HEX}{4}-{HEX}{4}-{HEX}{12}\" 28KEY \"{HEX}{8}-{HEX}{4}-{HEX}{4}-{HEX}{4}-{HEX}{12}\"
27STRING \"(\\.|[^\\"\n])*\" 29STRING \"(\\.|[^\\"\n])*\"