Commit Graph

888 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
c3a44f60d3 Accept static expressions for menu floating point and int 2021-11-26 21:50:07 +01:00
Jan
9279123ef9 Consume lonely semicolons in items and menus 2021-11-26 21:48:05 +01:00
Jan
fb70d9538a Make menu and item rect accept expressions as static values 2021-11-26 17:43:27 +01:00
Jan
2a4768e5b0 Add conditional operator to simple expressions 2021-11-26 17:39:46 +01:00
Jan
5b087e0d31 Add missing itemscope and menuscope sequences 2021-11-25 19:22:14 +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
c5475ce780 Fix unit tests failing for menu expressions 2021-11-25 00:24:36 +01:00
Jan
38f3d7d10e Move Menu Expression to Simple Namespace to have generic configurable expressions 2021-11-24 17:44:14 +01:00
Jan
4f2a8454a6 Move common expression classes to simple parsing setup 2021-11-22 21:47:05 +01:00
Jan
5baa311025 Make defines proxy recognize define values that are escaped over multiple lines 2021-11-22 13:38:33 +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
6b7a71a1bb Make defines proxy accept whitespace 2021-11-22 09:43:03 +01:00
Jan
ba3084700e Fix Abstract Parser not being able to display parsing errors from defines proxy on empty line 2021-11-22 09:42:46 +01:00
Jan
0ffa85d557 Fix event handler set not clearing current script correctly 2021-11-20 22:01:21 +01:00
Jan
03b3981312 Add menu key handlers 2021-11-20 22:01:01 +01:00
Jan
aae2b9f3d9 Add sequence for listbox columns 2021-11-20 18:40:18 +01:00
Jan
ebdfb5b9aa Parse feature specific item properties 2021-11-20 18:22:34 +01:00
Jan
dd8a9bf374 Set item type features when setting type 2021-11-20 14:29:24 +01:00
Jan
ef1ad18332 Recognize script numeric and int values as strings 2021-11-20 12:01:04 +01:00
Jan
ed329e6453 Add item scope sequences for expressions and menueventhandlerset 2021-11-14 20:05:06 +01:00
Jan
9a2e74d083 Add menu unary expression for minus 2021-11-14 20:04:36 +01:00
Jan
ebb8eb9e5b Fix SimpleLexer not recognizing negative numbers 2021-11-14 20:04:00 +01:00
Jan
18aa914d70 Fix abstract lexer not currently setting string token pos 2021-11-14 20:03:37 +01:00
Jan
109955b8f2 Add unit tests for most eventhandlerset script sequences 2021-11-14 18:17:13 +01:00
Jan
252dee03ba Fix menu EventHandlerSetSequences if parsing behaviour based on unit tests 2021-11-14 14:04:17 +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
13589fd43c Add menu eventhandlerset sequences for if, elseif and else 2021-11-14 12:46:02 +01:00
Jan
f760c517dd Add menu parsing results to zone state 2021-11-14 09:25:35 +01:00
Jan
7eecd58ce8 Load menu files that are referenced via loadmenu 2021-11-13 23:28:22 +01:00
Jan
4552a4fe4a Add asset loading states per zone for the usecase of saving loaded menus and menu functions 2021-11-13 22:18:44 +01:00
Jan
b1e5fc70a6 Add Menu EventHandler parser for lerp 2021-11-13 22:18:08 +01:00
Jan
7025fca81c Add simple script parsing for menus 2021-11-07 00:45:39 +01:00
Jan
81203e523e Handle condition stack on event handler closing parenthesis 2021-11-06 19:30:36 +01:00
Jan
54d7f75af6 Close EventHandlerSetBlock again 2021-11-06 18:08:58 +01:00
Jan
5af2e6da61 Add menu scopes to state before closing them 2021-11-06 17:47:18 +01:00
Jan
bf19208351 Add base for menu eventhandlerset parsing 2021-11-06 16:28:24 +01:00
Jan
b15efd4a4c Move item parsing sequences for different scopes into the same class 2021-11-06 11:03:15 +01:00
Jan
321794a209 Parse Expression Properties for menuDefs 2021-11-04 22:47:49 +01:00
Jan
38551f29de Add vector parameter functions to and/or matchers 2021-11-04 20:31:20 +01:00
Jan
69c08def7f Add expression parsing for menu parser 2021-11-03 23:46:18 +01:00
Jan
c5d7d71a51 Add multicharacter tokens to simple lexer 2021-11-03 22:02:04 +01:00
Jan
ab7b516918 Move MenuMatcherFactory to Matcher folder 2021-11-03 17:17:23 +01:00