efc7f4406a
Fix typo. Oops!
Sei Lisa
2014-07-31 01:34:34 +02:00
d1bbe26c49
vector v;<0,0,0>-v; triggered EParseTypeMismatch. Fixed. Also minor fixes.
Sei Lisa
2014-07-31 01:25:15 +02:00
5e4c19e5ec
Fix bug with adding immutable functions.
Sei Lisa
2014-07-30 23:36:35 +02:00
c724b53f20
Simplify main loop of lsloutput.py a bit
Sei Lisa
2014-07-30 16:01:09 +02:00
895e4f4668
Overall renaming of stuff to make it more understandable.
Sei Lisa
2014-07-30 16:00:00 +02:00
fb68273eed
Turned everything upside down, and fixed a couple bugs.
Sei Lisa
2014-07-30 04:54:16 +02:00
5d4abf967d
Comment changes - just make the idea more explicit.
Sei Lisa
2014-07-28 21:39:36 +02:00
3b4bf13a10
Add coverage for new stuff.
Sei Lisa
2014-07-28 21:19:23 +02:00
c748472187
Compress floats as much as possible. Also output NaN and Infinity as strings.
Sei Lisa
2014-07-28 20:38:44 +02:00
cd9fa96055
Format ELSE IF in a single line.
Sei Lisa
2014-07-28 19:36:01 +02:00
56d51b835c
Hack to make identifiers in globals in non-global-expression mode work.
Sei Lisa
2014-07-28 19:20:36 +02:00
b441c1774f
Fix incorrect warning when a global vector/quat/list contains an ident
Sei Lisa
2014-07-28 18:46:37 +02:00
02c84ca99c
Add default options and option activation/deactivation.
Sei Lisa
2014-07-28 18:19:50 +02:00
443b5a2258
Fix bug where floats in global lists would be output as integers.
Sei Lisa
2014-07-28 18:13:48 +02:00
a6b3a0946f
Enable foldtabs warning
Sei Lisa
2014-07-28 17:39:35 +02:00
538d9ab66e
Change -o to -O; document "-" as stdin
Sei Lisa
2014-07-28 17:28:12 +02:00
d55f873fd5
Add tab warning and future option documentation.
Sei Lisa
2014-07-28 17:26:05 +02:00
6c00400d7d
Add coverage for new preprocessor option.
Sei Lisa
2014-07-28 02:45:30 +02:00
108bbe5395
Some documentation rewordings.
Sei Lisa
2014-07-28 02:44:51 +02:00
eab0bec84b
Add preprocessor skip option, command line options and help, options for all functions, and enhance parentheses removal.
Sei Lisa
2014-07-28 02:13:08 +02:00
ae94e80c34
Add a regression test for a case that failed before the globals fix.
Sei Lisa
2014-07-28 01:01:10 +02:00
8907a59d5f
Fix remaining bug in optimizer, and minor fixes.
Sei Lisa
2014-07-27 23:33:20 +02:00
7f6351c5e6
Fix prob with output to pipe. Change output logic.
Sei Lisa
2014-07-27 23:31:48 +02:00
64e5d0dc92
Check that it's a variable definition before collapsing or giving warning.
Sei Lisa
2014-07-27 22:03:31 +02:00
100de9c8e9
Fix output of lists < 5 elements
Sei Lisa
2014-07-27 21:23:57 +02:00
3dd73f218f
Fix a few more statements missing.
Sei Lisa
2014-07-27 21:05:57 +02:00
dde3c08f61
Add TODO item: skip preprocessor directives.
Sei Lisa
2014-07-27 21:05:01 +02:00
0f55129f71
Add important comment
Sei Lisa
2014-07-27 21:04:31 +02:00
6af4f40752
Add TODO items
Sei Lisa
2014-07-27 20:48:37 +02:00
1747028211
Finish coverage tests.
Sei Lisa
2014-07-27 20:26:24 +02:00
7623c444a8
Forgot empty statement. Also make warning more prominent.
Sei Lisa
2014-07-27 20:14:25 +02:00
19ca34d7e0
Expand the test case to include more coverage. Triggers errors.
Sei Lisa
2014-07-27 20:13:12 +02:00
e57c21a73a
Fix FIELD and IDENT in globals.
Sei Lisa
2014-07-27 20:03:57 +02:00
30efb5d14c
Bug fix: look up library functions too!
Sei Lisa
2014-07-27 19:18:05 +02:00
f3339b0906
Fix an infinite recursion by disallowing forward globals in global var defs.
Sei Lisa
2014-07-27 18:42:55 +02:00
716374eb83
Add test cases that failed without the previous commit.
Sei Lisa
2014-07-27 18:08:18 +02:00
c483d5ea71
Bunch of bug fixes.
Sei Lisa
2014-07-27 18:07:35 +02:00
f1656c41aa
Import 'warning' from lslparse instead of redefining. Cosmetic fixes.
Sei Lisa
2014-07-27 18:05:11 +02:00
26ab4f0382
Fix class definitions to make sense (le-sigh - python quirk)
Sei Lisa
2014-07-27 17:40:26 +02:00
f5444bb83d
Update coverage tests. Add optimizer test. Rename classes (cosmetic).
Sei Lisa
2014-07-27 13:52:14 +02:00
124a2823a0
builtins.txt was not named as the source of some errors. Fixed.
Sei Lisa
2014-07-27 13:49:18 +02:00
609df368f3
Fix a case with list mode for globals.
Sei Lisa
2014-07-27 13:47:18 +02:00
beb413420d
Disable the debug code
Sei Lisa
2014-07-27 13:44:13 +02:00
0b74093255
Fix tuple mess, typecast bug, and boolean bug.
Sei Lisa
2014-07-27 13:31:19 +02:00
d856f62253
Fix optsigns treatment.
Sei Lisa
2014-07-27 04:31:45 +02:00
6e1357f4f3
Handle type cast optimization in the output module (easiest).
Sei Lisa
2014-07-27 04:24:14 +02:00
d98e145090
Add missing operators & returns, remove typecast bogus optimization.
Sei Lisa
2014-07-27 04:15:12 +02:00
33440f5dd4
Fold vector/rotation/list expressions into constants.
Sei Lisa
2014-07-27 03:17:38 +02:00
4f7933aa3b
Remove "drunk" comment.
Sei Lisa
2014-07-27 02:56:35 +02:00
b76ae99616
Fixes and folding improvements to the FOR loop.
Sei Lisa
2014-07-27 02:52:16 +02:00
59de1e1f4f
First prototype version of the optimizer.
Sei Lisa
2014-07-27 02:19:54 +02:00
603b85afc8
Remove hack and output expressions where expected.
Sei Lisa
2014-07-27 02:18:37 +02:00
cef3e626a9
Associate identifiers with their direct location.
Sei Lisa
2014-07-27 01:49:44 +02:00
12a1245102
Add ';' to the interning string table.
Sei Lisa
2014-07-27 01:28:35 +02:00
ecaa4b1af0
Output negative integers as hex.
Sei Lisa
2014-07-27 01:27:37 +02:00
e2918e7f05
Add constant NULL_KEY and function cond().
Sei Lisa
2014-07-26 23:50:49 +02:00
a3354fae0e
First steps in optimizer.
Sei Lisa
2014-07-26 21:29:35 +02:00
e8e411ad04
Fix thread safety of llList2CSV.
Sei Lisa
2014-07-26 21:25:06 +02:00
a3de885bf7
Move the functions that were scheduled to be moved.
Sei Lisa
2014-07-26 21:06:53 +02:00
4bff3aaf94
Thorough review of lslbasefuncs and associated files, adding new stuff.
Sei Lisa
2014-07-26 20:54:01 +02:00
de4a8d4dac
Add the Firestorm features as TODO tasks.
Sei Lisa
2014-07-26 04:57:58 +02:00
0959be94bc
Add extra coverage case, as we were missing a few lines.
Sei Lisa
2014-07-26 04:51:35 +02:00
8078be8401
Cosmetic: make another comment clearer
Sei Lisa
2014-07-26 04:45:56 +02:00
cfa7e1de89
Cosmetic: make a comment clearer
Sei Lisa
2014-07-26 04:44:02 +02:00
e03b342f78
Allow concatenation of key+string and string+key producing string.
Sei Lisa
2014-07-26 04:41:09 +02:00
841413a2cf
Remove bogus FIXME comment.
Sei Lisa
2014-07-26 04:35:57 +02:00
0b49a9590f
Delete options when no longer necessary.
Sei Lisa
2014-07-26 04:01:12 +02:00
b36356db45
Change default options set to frozenset, and add a TODO.
Sei Lisa
2014-07-26 03:59:35 +02:00
0b6ff4646e
Add coverage tests for allowmultistrings, and reorder for coverage of the test program itself.
Sei Lisa
2014-07-26 03:57:02 +02:00
a46c5463eb
Add 'allowmultistrings' option.
Sei Lisa
2014-07-26 03:44:48 +02:00
4ee320ace1
Add the unit testing files.
Sei Lisa
2014-07-26 03:18:02 +02:00
07176278f8
Add current builtins.txt, which is needed to execute.
Sei Lisa
2014-07-26 03:13:07 +02:00
5109fad261
Now that they're in the history, remove them
Sei Lisa
2014-07-26 03:10:30 +02:00
03cc7230c5
Add historic files for preservation
Sei Lisa
2014-07-26 03:08:19 +02:00
5810d0913a
Meta - add .gitignore
Sei Lisa
2014-07-26 03:06:33 +02:00
05d00e075b
Initial commit. Status so far:
Sei Lisa
2014-07-26 02:43:44 +02:00