86 Commits

Author SHA1 Message Date
Jan
63b9fa6841 Fix typo in test in HeaderLexerTests 2023-06-18 13:47:39 +02:00
Jan
6c164eee61 Update catch2 version 2023-06-18 13:40:30 +02:00
Jan
886bcfeaf8 Add non static evaluation for simple expressions 2022-08-13 14:13:11 +02:00
Jan
a092f76ec9 Add option to not parse floating point numbers when using SimpleLexer 2022-03-30 19:07:54 +02:00
Jan
8a3bbf948b Make sure you can specify event handlers more than once to be able to append script data 2022-01-01 20:00:09 +01:00
Jan
2df12e101e Disable static value evaluation for visible expression when optimizations are turned off 2022-01-01 16:59:27 +01:00
Jan
80a0fba606 Parse menu event handler setplayerdata 2021-12-28 14:17:02 +01:00
Jan
d2262ebaec Fix menu dvarStrList not working because of String chaining 2021-12-28 11:49:42 +01:00
Jan
7ea53808b7 Extend menu IT with materials 2021-12-27 11:27:59 +01:00
Jan
4ed8016110 Add eventhandlersets to menu parsing integration tests 2021-12-12 14:03:23 +01:00
Jan
a0200a9dbb Test certain properties with menu parsing integration test 2021-12-11 22:55:40 +01:00
Jan
c683c210f5 Add base for menu parsing integration tests 2021-12-11 21:40:13 +01:00
Jan
4b7a78100d Make defines stream proxy able to accept comma within parameter values that are in parenthesis 2021-12-02 22:19:48 +01:00
Jan
f5ed7880b0 Fix defines proxy not being able to process parameters with underscores 2021-12-01 23:19:20 +01:00
Jan
8e7cd0140c Fix comment removing defines proxy not properly removing multiple comments per line 2021-11-28 19:29:50 +01:00
Jan
782b05a60b Fix defines proxy not correctly adding first line to escape line end define 2021-11-28 19:07:30 +01:00
Jan
b082e471e7 Add permissive mode for menu parsing that accepts unknown script tokens as long as they can be put into the script 2021-11-28 17:55:26 +01:00
Jan
e94c48338c Make defines proxy accept parameter values that have parenthesis 2021-11-28 15:52:45 +01:00
Jan
e7eb43a955 Correctly parse binary operations that can be interpreted as sign prefixes for numbers 2021-11-28 15:16:43 +01:00
Jan
2a4768e5b0 Add conditional operator to simple expressions 2021-11-26 17:39:46 +01:00
Jan
82cda64a44 Add missing unit tests for elif directive 2021-11-25 18:10:29 +01:00
Jan
c65c57ce72 Add support for defineproxy if directive parsing 2021-11-25 18:01:18 +01:00
Jan
887d14df54 Move generic parser unit tests from zonecodegenerator to parsertests 2021-11-25 15:17:30 +01:00
Jan
4b2f001e7c Add more unit tests for simple expressions and fix code 2021-11-25 12:33:30 +01:00
Jan
7680f92ae1 Add base for simple expression unit tests 2021-11-25 01:20:51 +01:00
Jan
4f2a8454a6 Move common expression classes to simple parsing setup 2021-11-22 21:47:05 +01:00
Jan
a8f0fbd3bb Use shared ptr for line filenames to be able to still use filenames when original file has been closed 2021-11-22 10:52:43 +01:00
Jan
109955b8f2 Add unit tests for most eventhandlerset script sequences 2021-11-14 18:17:13 +01:00
Jan
9afe9b2b32 Add unit tests for menu EventHandlerSetScope If Statements 2021-11-14 14:03:56 +01:00
Jan
0033ab2a2b Add base for menu parsing unit tests 2021-11-14 12:46:13 +01:00
Jan
78107b74e0 add newline to gdt unit tests prints 2021-03-06 14:24:16 +01:00
Jan
603994ce61 Make sure gdt values are escaped 2021-03-06 14:13:46 +01:00
Jan
aa972614e5 Extract Gdt reading and writing classes to GdtStream file 2021-03-06 10:47:25 +01:00
Jan
82a08d0850 Add unit tests for writing gdts 2021-03-06 09:40:05 +01:00
Jan
78ebeaaa7b Add Gdt parsing 2021-03-06 09:28:14 +01:00
Jan
5f3aa2a460 Implement defines with parameters to ZoneCodeGenerator 2021-03-04 11:37:06 +01:00
Jan
12461d27e7 move parts to new common component to avoid circular dependency of zonecommon and objcommon 2021-03-03 12:56:15 -08:00
Jan
dc3fef5b0f Rework depedency management in premake lua scripts 2021-03-03 11:55:37 -08:00
Jan
f85c82f487 Remove old ZoneCodeGenerator implementation in c# 2021-03-01 14:30:10 +01:00
Jan
b4f1e09315 Change cpp unit test framework to catch2 for all cpp unit test projects 2021-02-20 10:44:33 +01:00
Jan
42851bcaf8 add unit tests for game 2021-02-19 23:23:46 +01:00
Jan
e09793818f add unit tests for sequence architecture 2021-02-19 23:17:53 +01:00
Jan
5a7b184aa2 add placeholder test classes 2021-02-19 23:06:23 +01:00
Jan
0d9405cb4a add action sequence tests 2021-02-19 23:06:13 +01:00
Jan
e51babaeb4 parse variables 2021-02-19 00:39:33 +01:00
Jan
b25d64e5e7 Fix define directive not accepting define names with digits in them 2021-02-14 10:33:08 +01:00
Jan
3f08be0564 Add stream proxy for declaring pack values 2021-02-14 10:27:18 +01:00
Jan
efa39a8ac3 Restructure StreamProxies to use common basis for matching directives 2021-02-14 10:26:18 +01:00
Jan
e277de4517 Fix lexer calculing hex number length 1 too long 2021-02-14 10:24:23 +01:00
Jan
216125739c Cache lines in Lexer and show original input when running into an error 2021-02-13 23:16:19 +01:00