Commit Graph

344 Commits

Author SHA1 Message Date
7a4549dafb
main.cpp: Remove useless optional usage
Signed-off-by: Username404 <w.iron.zombie@gmail.com>
2023-10-18 10:36:01 +02:00
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
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
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
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
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
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
164e5c5da3
Parser.hpp: Fix an indentation mistake
Signed-off-by: Username404 <w.iron.zombie@gmail.com>
2023-08-04 16:45:10 +02:00
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
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
c1b0184b64
filefuncs.cpp: Simplify the outputFileContent function
Signed-off-by: Username404 <w.iron.zombie@gmail.com>
2023-06-13 00:35:09 +02:00
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
e20e7dabdc
Parser.hpp: Add a TODO comment
Signed-off-by: Username404 <w.iron.zombie@gmail.com>
2023-05-07 21:58:04 +02:00
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
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
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
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
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
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
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
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
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
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
319c30cd03
ReservedIdentifiers.hpp: Make the identifiers array's initialization strictly constant 2022-09-27 18:09:17 +02:00
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
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
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
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
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
4fa72c0459
Parser.hpp: Parse properties and methods
Signed-off-by: Username404 <w.iron.zombie@gmail.com>
2022-07-16 12:36:48 +02:00
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
22d1599237
Add a GodotScript target
Signed-off-by: Username404 <w.iron.zombie@gmail.com>
2022-07-07 17:22:20 +02:00
4e08c0cf05
Implement reserved identifiers
Signed-off-by: Username404 <w.iron.zombie@gmail.com>
2022-07-06 15:35:21 +02:00
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
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
7ebf0ab5a4
Parser.hpp: Shorten two "if" statements
Signed-off-by: Username404 <w.iron.zombie@gmail.com>
2022-05-26 13:33:16 +02:00
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
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
16eeea2524
Target.hpp: Use reinterpret_cast instead of dynamic_cast
CMakeLists.txt: Disable the reinterpret-base-class warning when using Clang

Signed-off-by: Username404 <w.iron.zombie@gmail.com>
2022-05-18 19:17:48 +02:00
4097b1c59a
Lua.hpp: Only output indentation when newLines is set to true
Signed-off-by: Username404 <w.iron.zombie@gmail.com>
2022-05-07 09:37:04 +02:00
de658bd032
Target.hpp: Return false by default in the uniqueLineSeparator function
Signed-off-by: Username404 <w.iron.zombie@gmail.com>
2022-05-07 09:15:24 +02:00
6e35682911
Target.hpp: Don't use to_string in the Target::forName function
Signed-off-by: Username404 <w.iron.zombie@gmail.com>
2022-05-07 08:51:49 +02:00
b7a22e0e51
main.cpp: Fix indentation at line 46
Signed-off-by: Username404 <w.iron.zombie@gmail.com>
2022-05-06 22:08:19 +02:00
34134dda71
Target.hpp: Simplify the Target::forName function and change its return type to unique_ptr instead of shared_ptr
Signed-off-by: Username404 <w.iron.zombie@gmail.com>
2022-05-06 22:06:52 +02:00
b63bf0d480
Parser.hpp: Remove an unused closingCharacter capture
Signed-off-by: Username404 <w.iron.zombie@gmail.com>
2022-04-24 01:09:33 +02:00
51b5a546c7
Parser.hpp: Remove a useless condition in the filter_comma_list function
Signed-off-by: Username404 <w.iron.zombie@gmail.com>
2022-04-23 01:07:56 +02:00
c0f7b4cc22
Parser.hpp: Change the parameters of the filter_comma_list overload to two input iterators
Signed-off-by: Username404 <w.iron.zombie@gmail.com>
2022-04-22 13:07:42 +02:00
d3b05461cb
Parser.hpp: Stop the loop in the filter_comma_list function when the current iterator points to a COMMA token
Signed-off-by: Username404 <w.iron.zombie@gmail.com>
2022-04-22 13:00:08 +02:00
21ab59fc6d
Parser.hpp: Add a "filter_comma_list" function to fix commas in parameters or arguments lists
Signed-off-by: Username404 <w.iron.zombie@gmail.com>
2022-04-22 01:04:10 +02:00
0d12f7eceb
Parser.hpp: Replace ';' with SEMICOLON
Signed-off-by: Username404 <w.iron.zombie@gmail.com>
2022-04-21 23:41:34 +02:00