Commit Graph

26 Commits (master)

Author SHA1 Message Date
Evil Eye d3e3083006 CI match script names and remove dead code 6 months ago
elsid b88f0d2dbd
Replace mwscript program serialization into a vector with simple struct
Mostly to avoid string literal lookup by index with iteration over all preciding
literals and calling strlen. This is very inefficient. In genral this makes code
much more straightforward but also makes it portable since now int and float of
different sizes are properly supported.
2 years ago
Evil Eye b19ad079c2 Ignore special characters preceding script commands 2 years ago
clang-format-bot ddb0522bbf
Apply clang-format to code base 2 years ago
Evil Eye bee94e2afc Treat commas in scripts as whitespace 3 years ago
Capostrophic 17dce28705 Improve compiler messages 6 years ago
Capostrophic 166d757a19 Allow stray special characters before a begin statement 6 years ago
Marc Zinnschlag 816a1733dc Allow comma after Begin and End script instruction (Fixes #4451) 7 years ago
Marc Zinnschlag 2dff3aab22 allow . and - in the name part of a begin script statement, but not at the beginning of a name. Fixes #4061 7 years ago
Marc Zinnschlag 4d94f38f4b replaced context-sensitive implementation of allowing digits at the beginning of names with a more general implementation (Fixes #1730) 9 years ago
scrawl b3f5ac5dbb Include cleanup 10 years ago
Marc Zinnschlag bbbf431ae3 double bug in script name handling workaround (Fixes #1730) 10 years ago
Marc Zinnschlag a0dbb40c8e Allow script names starting with digits (Fixes #1730) 10 years ago
Marc Zinnschlag e33ee52b91 make stray names in the begin line a warning instead of an error 11 years ago
Marc Zinnschlag 90b38cbfbe fixed parsing of end statements in scripts with IDs matching keywords 12 years ago
Marc Zinnschlag 151ecaad04 workaround for garbage after an end statement 12 years ago
Marc Zinnschlag f4e79a48f0 implemented optional arguments 15 years ago
Marc Zinnschlag 5a1dd4fedd fixed fileparser bug (empty line before the initial begin statement were not handled correctly 15 years ago
Marc Zinnschlag 5786addab5 allowed the use of keywords as script names (*sigh*) 15 years ago
Marc Zinnschlag 5cf3264bd3 added literal container and reworked output container handling 15 years ago
Marc Zinnschlag ba847ae9d8 write local variable declarations into a separate file 15 years ago
Marc Zinnschlag a3ad61b4d0 write code file after successfull parsing 15 years ago
Marc Zinnschlag 0cfeab622d added storage class for local variable declarations; added checks for variable re-declaration 15 years ago
Marc Zinnschlag aa99a0dd56 added basic script parser (can only parse empty script bodies for now) 15 years ago
Marc Zinnschlag a068ca78d7 replaced dummy parser with top level file parser 15 years ago
Marc Zinnschlag ddcbc8cd62 added tokenizing of MW scripts 15 years ago