Commit graph

707 commits

Author SHA1 Message Date
Sei Lisa
a46c5463eb Add 'allowmultistrings' option.
This option enables a C-style feature where strings can be composed by juxtaposing them, like this: "blah" "another" in the input program becomes "blahanother" in the output.
2014-07-26 03:44:48 +02:00
Sei Lisa
4ee320ace1 Add the unit testing files.
testfuncs.py uses custom testing functions.
testparser.py uses the unittest standard module.
2014-07-26 03:18:02 +02:00
Sei Lisa
07176278f8 Add current builtins.txt, which is needed to execute.
It's bound to become obsolete soon though, so check the kwdb repository for a fresh file.
2014-07-26 03:13:07 +02:00
Sei Lisa
5109fad261 Now that they're in the history, remove them 2014-07-26 03:10:30 +02:00
Sei Lisa
03cc7230c5 Add historic files for preservation 2014-07-26 03:08:19 +02:00
Sei Lisa
5810d0913a Meta - add .gitignore 2014-07-26 03:06:33 +02:00
Sei Lisa
05d00e075b Initial commit. Status so far:
- Parser and output modules are thoroughly tested and working.
- Most LSL immutable functions are working; some not tested; llJsonSetValue not implemented.
- Parser recognizes the following flags that alter syntax:
   extendedglobalexpr: Allow full expression syntax in globals.
   extendedtypecast: Allow full unary expressions in typecasts e.g. (float)~i.
   extendedassignment: Enable the C assignment operators &=, ^=, |=, <<=, >>=.
   explicitcast: Add explicit casts wherever they are done implicitly, e.g. float f=3; -> float f=(float)3;.
  Of them, only extendedglobalexpr is useless so far, as it requires the optimizer to be working.
2014-07-26 02:43:44 +02:00