Commit graph

29 commits

Author SHA1 Message Date
smallmodel
11349f9ad5
Fixes the source pos access for ENUM_if_statement (out of bounds index) 2024-06-22 16:08:33 +02:00
smallmodel
a7c5067475
Fixed the execution of a method on the correct class 2024-06-09 00:07:11 +02:00
smallmodel
5155c10136
Fixed scripts not working on big-endian architectures 2024-06-08 14:40:35 +02:00
smallmodel
3cd5acf3aa
Fixed issue with case-sensitive variables.
normal/return commands are case-insensitive
getter/setter commands are case-sensitive
2024-04-22 20:10:01 +02:00
smallmodel
e3beec985e
When parsing and compiling a script, return the length in an output parameter instead so the method can return a boolean to indicate success.
This fixes #221 where a script with no code would fail.
2024-04-08 21:04:26 +02:00
smallmodel
45f50cfe25
Fixed array variable being case-sensitive 2024-01-28 23:53:02 +01:00
smallmodel
d8505eff2b
Fixed label parameters being incorrectly case-sensitive 2024-01-28 23:17:00 +01:00
smallmodel
7c655944a5
Convert fields name to lower 2023-11-01 19:16:01 +01:00
smallmodel
6d6043775e
Use const unsigned char* for sourcepos 2023-10-27 19:59:29 +02:00
smallmodel
673a42242d
Formatted source files 2023-10-01 22:47:25 +02:00
smallmodel
9f6ef14ea1
GetCompiledScript should remain unused 2023-09-13 21:32:58 +02:00
smallmodel
a307450e17
Made sourceLine argument optional to avoid string allocation 2023-08-19 21:12:03 +02:00
smallmodel
f16b992a97
Fixed assignments with case-insensitive event names 2023-08-19 00:57:19 +02:00
smallmodel
2b38a0f48e
Fixed wrong opcode for method event 2023-08-17 21:29:55 +02:00
smallmodel
1435489a43
Fixed floats with negative values 2023-08-17 19:17:16 +02:00
smallmodel
16d262f6ee
Fixed floats being interpreted as integers sometimes 2023-08-14 03:09:38 +02:00
smallmodel
df66ab0339
Fixed EmitField bug
Clear the previous opcode when a new label is emitted
2023-08-13 21:55:22 +02:00
smallmodel
f857116f75
Fixed script crashes 2023-08-13 17:59:49 +02:00
smallmodel
5e83e03e33
Major grammar/lexer/compiler fixes 2023-08-13 03:34:09 +02:00
smallmodel
f5af33b181
Major script engine fixes 2023-08-12 19:59:40 +02:00
smallmodel
68d48d9889
Used clang-format on some common files 2023-07-05 21:24:02 +02:00
OM
4263b2843a Fixed code_pos not being incremented in EmitField 2023-07-04 23:15:45 +02:00
OM
147851c506 Moved flex/bison generated files to subfolder "generated"
Added FLEX/BISON cmake generation
2023-06-17 16:54:12 +02:00
OM
c287638f99 Reworked file inclusion (using relative path) 2023-06-17 01:24:20 +02:00
L
fbd03b6a26 Debloated g_local.h include files 2023-04-29 21:56:38 +02:00
L
ca25bb983f Removed unused methods 2023-02-05 22:17:54 +01:00
L
9c62ece9bd Fixed classinfo being NULL for the *Game* class 2023-02-05 21:12:51 +01:00
L
456c886c48 Using Memcpy to set/fetch opcodes to avoid issues with CPUs that don't support misalignment 2023-02-02 23:48:51 +01:00
L
cf18c3a96f Moved script stuff to their matching directory 2023-01-30 18:20:50 +01:00
Renamed from code/game/compiler.cpp (Browse further)