Commit Graph

120 Commits

Author SHA1 Message Date
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
Jan
f14357537e add unit tests for not consuming matchers 2021-02-13 16:18:53 +01:00
Jan
32f815c378 Make sure captures work with transforms 2021-02-13 16:01:58 +01:00
Jan
37232e3176 Matcher and sequence testing stuffs 2021-02-13 14:54:34 +01:00
Jan
87b7921c73 Add Header Lexer for ZCG cpp 2021-02-12 00:01:41 +01:00
Jan
8b8f1d4f2a Add unit tests for IncludingStreamProxy 2021-02-11 13:44:18 +01:00
Jan
1822979a8b Add implementation for ZCG cpp defines proxy 2021-02-10 23:46:15 +01:00
Jan
f9ef7cc35b Add Tests for ZCG cpp 2021-02-10 18:03:50 +01:00
Jan
c952aacda1 Remove the zonecodegenerator requirement to reference members in a type reference because IW did nasty things in their game that require me to do so. 2020-09-16 10:18:11 +02:00
Jan
ccef1dca28 Add dumper for DDS and texture converter for reordering colors 2020-09-04 12:51:13 +02:00
Jan
f73c27a7dc Premake: Add include guard to make sure dependencies do not include themselves in an infinite chain when two components depend on each other 2020-02-07 02:46:24 +01:00
Jan
731bef73df ZoneCodeGenerator: Fix unit tests to do with evaluation array indices 2019-12-23 23:54:19 +01:00
Jan
ce9d0d37de ZoneCodeGenerator: Add "." to be recognized as a single token by the lexer 2019-12-03 23:26:56 +01:00
Jan
8d4e4c0025 ZoneCodeGenerator: Fix | not being a recognized token of the lexer 2019-11-19 12:54:13 +01:00
Jan
746dd825bf ZoneCodeGenerator: Add tests for TestCount 2019-11-10 18:04:23 +01:00
Jan
f2cc95ee32 ZoneCodeGenerator: Make use of the parsed tokens in TestCount and TestCondition 2019-11-10 18:04:00 +01:00
Jan
0a8d5246b2 ZoneCodeGenerator: Add unit tests for Structs, Unions and variables 2019-11-06 18:46:16 +01:00