Commit Graph

356 Commits

Author SHA1 Message Date
Username404-59 76cc701dd7
Py.hpp, GodotScript.hpp: Add missing pass after empty else branches
Signed-off-by: Username404-59 <w.iron.zombie@gmail.com>
2025-01-01 04:30:12 +01:00
Username404-59 2758a2e95a
SemanticAnalysis.hpp: Re-add checking for redefinitions of constants
Signed-off-by: Username404-59 <w.iron.zombie@gmail.com>
2025-01-01 04:21:20 +01:00
Username404-59 af9f76ee72
Retain line numbers for semantic analysis and fix checking redefinitions
Signed-off-by: Username404-59 <w.iron.zombie@gmail.com>
2025-01-01 02:21:57 +01:00
Username404-59 91c1ae0611
GodotScript.hpp: Add a TODO
Signed-off-by: Username404-59 <w.iron.zombie@gmail.com>
2025-01-01 01:09:07 +01:00
Username404-59 fa874ef0d2
Don't try to find duplicate references, this is stupid
Signed-off-by: Username404-59 <w.iron.zombie@gmail.com>
2025-01-01 01:06:51 +01:00
Username404-59 888c75a31e
Share the Reference analysis task with the Define one
Signed-off-by: Username404-59 <w.iron.zombie@gmail.com>
2024-12-31 23:11:15 +01:00
Username404-59 2c0cec16d6
Move redefinition checking to SemanticAnalysis.hpp
Signed-off-by: Username404-59 <w.iron.zombie@gmail.com>
2024-12-31 19:59:02 +01:00
Username404-59 7fb9ca37a7
Move task macros to Tasking.hpp
Signed-off-by: Username404-59 <w.iron.zombie@gmail.com>
2024-08-07 14:28:14 +02:00
Username404-59 d4df3aa4ea
Add boilerplate for semantic analysis
Signed-off-by: Username404-59 <w.iron.zombie@gmail.com>
2024-08-07 03:05:55 +02:00
Username404-59 ea8902a3cc
Target.hpp: Fix the shitty Yerbacon::fail call in Target::forName
Signed-off-by: Username404-59 <w.iron.zombie@gmail.com>
2024-07-31 21:45:26 +02:00
Username404-59 d3248c04a0
GodotScript.hpp: Add missing namespace usage
Signed-off-by: Username404-59 <w.iron.zombie@gmail.com>
2024-07-31 20:29:41 +02:00
Username404-59 8f92674387
lexer.cpp: Remove commented test code
Signed-off-by: Username404-59 <w.iron.zombie@gmail.com>
2024-03-13 18:02:54 +01:00
Username404 7a4549dafb
main.cpp: Remove useless optional usage
Signed-off-by: Username404 <w.iron.zombie@gmail.com>
2023-10-18 10:36:01 +02:00
Username404 8706db23b3
Yerbacon.hpp: Make sure the OpenMP headers are included when they are present
Signed-off-by: Username404 <w.iron.zombie@gmail.com>
2023-08-16 19:12:57 +02:00
Username404 3476d3c642
lexer.cpp: Rename isString to isStringDelimiter
Add a few comments in other files

Signed-off-by: Username404 <w.iron.zombie@gmail.com>
2023-08-12 13:02:36 +02:00
Username404 a8d1e6b09a
main.cpp: Add a newline to code that is given by the "--text" argument
Signed-off-by: Username404 <w.iron.zombie@gmail.com>
2023-08-08 03:14:45 +02:00
Username404 ddaf3a44d1
Parser.hpp: Prioritize missing conditions over missing body code
Signed-off-by: Username404 <w.iron.zombie@gmail.com>
2023-08-08 03:01:38 +02:00
Username404 c37f91caf3
Lua.hpp: Fix an extra space being added
Signed-off-by: Username404 <w.iron.zombie@gmail.com>
2023-08-07 00:34:27 +02:00
Username404 85a3582612
Parser.hpp: Add basic parsing of if/elseif/else statements
Signed-off-by: Username404 <w.iron.zombie@gmail.com>
2023-08-06 19:49:35 +02:00
Username404 164e5c5da3
Parser.hpp: Fix an indentation mistake
Signed-off-by: Username404 <w.iron.zombie@gmail.com>
2023-08-04 16:45:10 +02:00
Username404 fe5de82208
Parser.hpp: Parse all references instead of properties only
Signed-off-by: Username404 <w.iron.zombie@gmail.com>
2023-06-21 16:57:54 +02:00
Username404 ade66e8343
main.cpp: Add emscripten support to the "--output" argument
Signed-off-by: Username404 <w.iron.zombie@gmail.com>
2023-06-16 12:08:54 +02:00
Username404 c1b0184b64
filefuncs.cpp: Simplify the outputFileContent function
Signed-off-by: Username404 <w.iron.zombie@gmail.com>
2023-06-13 00:35:09 +02:00
Username404 d41d492686
main.cpp: Add a '-o'/'--output' argument
Signed-off-by: Username404 <w.iron.zombie@gmail.com>
2023-06-12 21:31:46 +02:00
Username404 e20e7dabdc
Parser.hpp: Add a TODO comment
Signed-off-by: Username404 <w.iron.zombie@gmail.com>
2023-05-07 21:58:04 +02:00
Username404 5b04eb37b0
ParseComponents.hpp: Add two missing iterator functions
Signed-off-by: Username404 <w.iron.zombie@gmail.com>
2023-04-30 16:38:41 +02:00
Username404 b6a708dcc0
ReservedIdentifiers.hpp: Use std::any_of instead of std::find in the reserved function
Signed-off-by: Username404 <w.iron.zombie@gmail.com>
2023-04-01 21:21:46 +02:00
Username404 375f10acb3
Re-enable EXIT_RUNTIME to replace emscripten_force_exit
Signed-off-by: Username404 <w.iron.zombie@gmail.com>
2023-02-11 03:23:32 +01:00
Username404 f2347725e1
Yerbacon.hpp: Remove a useless "using" statement
Signed-off-by: Username404 <w.iron.zombie@gmail.com>
2023-01-22 01:30:55 +01:00
Username404 e3ae8da799
Yerbacon.hpp: Add a yerbacon_output variable to use in JavaScript
Signed-off-by: Username404 <w.iron.zombie@gmail.com>
2023-01-19 13:14:32 +01:00
Username404 1aada9d23f
main.cpp: Force runtime exit when using node.js
Signed-off-by: Username404 <w.iron.zombie@gmail.com>
2023-01-08 01:12:54 +01:00
Username404 dc380c8dcb
main.cpp: Catch exceptions when calling filesystem functions on node.js
Signed-off-by: Username404 <w.iron.zombie@gmail.com>
2022-12-05 18:25:12 +01:00
Username404 64ef5e60ff
main.cpp: Support Windows paths on node.js
Signed-off-by: Username404 <w.iron.zombie@gmail.com>
2022-12-05 18:24:55 +01:00
Username404 d1ebbda173
Mount the filesystem when running on node.js
Signed-off-by: Username404 <w.iron.zombie@gmail.com>
2022-12-04 13:50:27 +01:00
Username404 5c1780a9af
main.cpp: Set the number of threads used by OpenMP to one when parallel is false
Signed-off-by: Username404 <w.iron.zombie@gmail.com>
2022-11-01 11:01:37 +01:00
Username404 319c30cd03
ReservedIdentifiers.hpp: Make the identifiers array's initialization strictly constant 2022-09-27 18:09:17 +02:00
Username404 f348dc985f
Target.hpp: Don't return a reference to a static thread-local map in the Target::getTaskMapInstance function
It only worked properly with the "--parallel" flag

Signed-off-by: Username404 <w.iron.zombie@gmail.com>
2022-09-21 20:35:07 +02:00
Username404 caf5bc338d
Yerbacon.hpp: Don't check for __cpp_using_enum
Signed-off-by: Username404 <w.iron.zombie@gmail.com>
2022-09-18 20:18:36 +02:00
Username404 23f24e55b1
Parser.hpp: Fix a segmentation fault happening when parseTree is empty
Signed-off-by: Username404 <w.iron.zombie@gmail.com>
2022-08-28 10:51:56 +02:00
Username404 8e74bff30b
Parser.hpp: Fix a tiny typo at line 154
Signed-off-by: Username404 <w.iron.zombie@gmail.com>
2022-08-20 13:45:32 +02:00
Username404 4795bd54a0
Parser.hpp: Replace the try-catch statement at line 152 with a condition since this seems to fix bad_cast not being caught when running a windows executable which has been compressed using upx
CMakeLists.txt: Revert the 89888113 commit and don't check CMAKE_CXX_LINK_NO_PIE_SUPPORTED when mingw is in use

Signed-off-by: Username404 <w.iron.zombie@gmail.com>
2022-08-20 13:35:01 +02:00
Username404 4fa72c0459
Parser.hpp: Parse properties and methods
Signed-off-by: Username404 <w.iron.zombie@gmail.com>
2022-07-16 12:36:48 +02:00
Username404 bd48d270be
Parser.hpp: Make sure the T typename propagates to the function call in the parse overload
Signed-off-by: Username404 <w.iron.zombie@gmail.com>
2022-07-08 11:06:35 +02:00
Username404 22d1599237
Add a GodotScript target
Signed-off-by: Username404 <w.iron.zombie@gmail.com>
2022-07-07 17:22:20 +02:00
Username404 4e08c0cf05
Implement reserved identifiers
Signed-off-by: Username404 <w.iron.zombie@gmail.com>
2022-07-06 15:35:21 +02:00
Username404 2ebb1d5239
main.cpp: Shorten the assignment of printResult and text_provided
Signed-off-by: Username404 <w.iron.zombie@gmail.com>
2022-07-03 01:14:58 +02:00
Username404 97fa5fbb27
main.cpp: Simplify the condition used for text or files arguments
Signed-off-by: Username404 <w.iron.zombie@gmail.com>
2022-07-03 01:02:26 +02:00
Username404 7ebf0ab5a4
Parser.hpp: Shorten two "if" statements
Signed-off-by: Username404 <w.iron.zombie@gmail.com>
2022-05-26 13:33:16 +02:00
Username404 46a09217fe
Parser.hpp: Prevent the reuse of identifiers
Signed-off-by: Username404 <w.iron.zombie@gmail.com>
2022-05-26 13:32:48 +02:00
Username404 a8e514d67f
Parser.hpp: Prevent the redefinition of functions
Signed-off-by: Username404 <w.iron.zombie@gmail.com>
2022-05-26 12:09:01 +02:00