polserver/testsuite/escript
Eric Swanson f3202547fb
New compiler: Add support for case statements (#272)
Adds:
- ast/CaseDispatchDefaultSelector: AST node for a "default:" selector
- ast/CaseDispatchGroup: AST node for a collection of selectors and the code to execute
- ast/CaseDispatchGroups: AST node holding all groups in a case statement
- ast/CaseDispatchSelectors: AST node holding all selectors for one group
- ast/CaseStatement: AST node for a whole case statement
- codegen/CaseDispatchGroupVisitor: knows what to put in a case jump dispatch table
- codegen/CaseJumpDataBlock: knows how to build the entries in the data block

Also, detect multiple case selectors with the same value (or default).  This is different from the OG compiler, which only detected duplicate `default:` selectors.
2020-09-05 20:41:58 -07:00
..
_dbg Unit Tests: putting some orde rin escript unit tests 2015-12-19 02:31:08 +01:00
_perf Unit tests: full revision, now all run correctly 2015-12-19 05:31:23 +01:00
array Compiler v1 error messages in *.err1 files 2020-08-01 17:20:20 -07:00
base64 addee explicit unicode base64 test 2019-09-07 16:51:12 +02:00
bfor removed instructions testscript files they are not used 2018-10-31 12:09:31 +01:00
bitop removed instructions testscript files they are not used 2018-10-31 12:09:31 +01:00
boolean New objecttype Boolean. 2018-01-05 20:04:01 +01:00
bracket removed instructions testscript files they are not used 2018-10-31 12:09:31 +01:00
bug Compiler v1 error messages in *.err1 files 2020-08-01 17:20:20 -07:00
cfg dont assume a tainted string by default 2019-01-12 17:14:05 +01:00
compiler2 Add compiler2/ tests (#214) 2020-08-13 15:26:09 +02:00
config fixed leak in compiler and xml filemod 2018-12-23 13:55:47 +01:00
const Compiler v1 error messages in *.err1 files 2020-08-01 17:20:20 -07:00
dict removed instructions testscript files they are not used 2018-10-31 12:09:31 +01:00
enum removed instructions testscript files they are not used 2018-10-31 12:09:31 +01:00
filemod dont assume a tainted string by default 2019-01-12 17:14:05 +01:00
for removed instructions testscript files they are not used 2018-10-31 12:09:31 +01:00
func Compiler v1 error messages in *.err1 files 2020-08-01 17:20:20 -07:00
if removed instructions testscript files they are not used 2018-10-31 12:09:31 +01:00
in Compiler v1 error messages in *.err1 files 2020-08-01 17:20:20 -07:00
json removed instructions testscript files they are not used 2018-10-31 12:09:31 +01:00
math removed instructions testscript files they are not used 2018-10-31 12:09:31 +01:00
method removed instructions testscript files they are not used 2018-10-31 12:09:31 +01:00
misc Compiler v1 error messages in *.err1 files 2020-08-01 17:20:20 -07:00
narray removed instructions testscript files they are not used 2018-10-31 12:09:31 +01:00
oper added test for ++ member_id 2019-10-04 16:47:24 +02:00
oper-elvis Fix docs format 2020-04-29 12:03:30 -07:00
opt fix optimizer bug: can stop optimizing prematurely if pre- or post-decrement operators are present 2020-07-29 20:42:07 -07:00
pack removed instructions testscript files they are not used 2018-10-31 12:09:31 +01:00
parity OG compiler: set module to Mod_Basic when a token is an identifier (#257) 2020-08-30 01:47:24 -07:00
prec removed instructions testscript files they are not used 2018-10-31 12:09:31 +01:00
prog var statements in program blocks (#256) 2020-08-30 01:32:38 -07:00
quot removed instructions testscript files they are not used 2018-10-31 12:09:31 +01:00
recurs removed instructions testscript files they are not used 2018-10-31 12:09:31 +01:00
reff Compiler v1 error messages in *.err1 files 2020-08-01 17:20:20 -07:00
repeat removed instructions testscript files they are not used 2018-10-31 12:09:31 +01:00
scope Compiler v1 error messages in *.err1 files 2020-08-01 17:20:20 -07:00
size removed instructions testscript files they are not used 2018-10-31 12:09:31 +01:00
string removed instructions testscript files they are not used 2018-10-31 12:09:31 +01:00
struct removed instructions testscript files they are not used 2018-10-31 12:09:31 +01:00
substr Unit Tests: putting some orde rin escript unit tests 2015-12-19 02:31:08 +01:00
sw removed instructions testscript files they are not used 2018-10-31 12:09:31 +01:00
switch New compiler: Add support for case statements (#272) 2020-09-05 20:41:58 -07:00
syntax Compiler v1 error messages in *.err1 files 2020-08-01 17:20:20 -07:00
test removed instructions testscript files they are not used 2018-10-31 12:09:31 +01:00
unicode Add error listener, and convert lexer symbols to lowercase (#216) 2020-08-14 03:28:37 -07:00
var Compiler v1 error messages in *.err1 files 2020-08-01 17:20:20 -07:00
while removed instructions testscript files they are not used 2018-10-31 12:09:31 +01:00
.gitignore Minor fixes in testsuite 2015-08-27 16:50:47 +02:00
ecompile.cfg added ecompile.cfg and cmdline flag to trigger error when include 2019-10-07 21:01:26 +02:00