LSL-PyOptimizer/lslopt
Sei Lisa 0855b8ad1d Add 'listto' to fndata.txt; remove more magic names from the code
Rather than using a hardcoded table of list-to-type extraction function, add a 'ListTo' attribute to the function data. No error is raised if more than one function exists to convert to the same type.

This change is of questionable usefulness, but it should soothe those allergic to magic names/numbers. I cringed a bit myself.

While on it, change the syntax error that was raised when the corresponding conversion function did not exist, to a tailor-made error.
2018-12-22 15:44:14 +01:00
..
__init__.py Initial commit. Status so far: 2014-07-26 02:43:44 +02:00
lslbasefuncs.py Refine the denormal check for Mono 2018-05-09 19:04:09 +02:00
lslcommon.py Remove commented-out print_node function (superseded by nr.__str__) 2018-06-07 02:14:15 +02:00
lsldeadcode.py Get rid of DoesSomething() in favour of SEF 2018-05-17 09:08:48 +02:00
lslextrafuncs.py Bump copyright year 2018-03-23 16:36:45 +01:00
lslfoldconst.py Apply an associativity rule to strings 2018-12-22 10:27:37 +01:00
lslfuncopt.py Reorganize the checks, and eliminate the fn call check 2018-12-22 10:27:37 +01:00
lslfuncs.py Bump copyright year 2018-03-23 16:36:45 +01:00
lsljson.py Bump copyright year 2018-03-23 16:36:45 +01:00
lsllastpass.py Change the AST node type from dict to object 2018-04-01 02:14:00 +02:00
lslloadlib.py Add 'listto' to fndata.txt; remove more magic names from the code 2018-12-22 15:44:14 +01:00
lsloptimizer.py Change the AST node type from dict to object 2018-04-01 02:14:00 +02:00
lsloutput.py Change the AST node type from dict to object 2018-04-01 02:14:00 +02:00
lslparse.py Add 'listto' to fndata.txt; remove more magic names from the code 2018-12-22 15:44:14 +01:00
lslrenamer.py Change the AST node type from dict to object 2018-04-01 02:14:00 +02:00