Commit Graph

414 Commits

Author SHA1 Message Date
Username404 44e160ebf9
Don't throw an exception when "isTypeString" is false in lexer.cpp 2021-09-14 20:20:34 +02:00
Username404-59 4201e3bcfb
Don't use openmp at all in mingw toolchains since they don't seem to work with it 2021-09-14 12:50:55 +02:00
Username404 02bde3b106
Make the "languages" array a constant variable 2021-09-13 18:24:01 +02:00
Username404 33ee011aed
Fix the findById() and findReferenceByName() methods in ParseComponents.hpp since the filter function doesn't actually exist 2021-09-12 16:45:30 +02:00
Username404 2672f33959
Add a hyphen to the windows suffix and archive artifacts produced by a mingw toolchain in the Jenkinsfile 2021-09-12 14:29:25 +02:00
Username404 8c5d36aaa4
Pass booleans in the second stage of the Jenkinsfile 2021-09-12 14:01:18 +02:00
Username404 4fcfcfaa49
Add a "suffix" parameter to buildTarget 2021-09-12 13:59:07 +02:00
Username404 b3b505c210
Pass the "--no-warn-unused-cli" argument in the buildTarget function 2021-09-12 13:55:05 +02:00
Username404 941a3de72e
Set the RC compiler in the Jenkinsfile to avoid issues 2021-09-12 13:52:48 +02:00
Username404 d9913d0c9f
Use a type definition in Target.hpp 2021-09-12 13:48:34 +02:00
Username404 5f97e94abf
Cross-compile to 4 windows architectures instead of just one 2021-09-12 13:39:55 +02:00
Username404 9cc7f8e39e
Only put the openmp flags when it is present 2021-09-12 12:45:15 +02:00
Username404 e6e12a26ec
Enable OpenMP when it is found in CMakeLists.txt and add two variables called IS_GNU and IS_CLANG 2021-09-12 12:41:15 +02:00
Username404 2b84262ea0
Use std::filter and std::transform instead of the std::ranges library and make the destructor of the Target class virtual 2021-09-12 12:00:21 +02:00
Username404 c0966f9650
Only enable position independent code when it is supported by the compiler 2021-09-12 12:00:15 +02:00
Username404 e79a7415de
Add an overload to reuse the same characters for the two parameters of Target::stringInterpolation and use an escaped character sequence 2021-09-11 13:42:22 +02:00
Username404 26421597f2
Prohibit the use of --newlinesoff with targets that do not support putting a whole script on one line 2021-09-11 13:19:43 +02:00
Username404 96bd6bf708
Re-add the newlinesoff argument 2021-09-11 11:49:57 +02:00
Username404 bfa8f50ad9
Revert "Add a "SEPARATOR" token type"
This reverts commit 47478173
2021-09-11 11:35:22 +02:00
Username404 84b9f9de73
Add the [[unlikely]] attribute to the '\r' case in lexer.cpp 2021-09-10 22:20:41 +02:00
Username404 6de05633d9
Add a "SEPARATOR" token type 2021-09-10 22:15:05 +02:00
Username404 37a6c0e047
Remove the oldClosingBraceIsFar boolean in Target.hpp 2021-09-02 10:35:53 +02:00
Username404 76c8975e27
Use a reference in the Argument "==" operator, and move the currentArg variable of main.cpp into the loop used for arguments 2021-09-02 10:34:00 +02:00
Username404 d6642f9ae5
Make getId() a constexpr function and use arrow syntax to call it in Target.hpp instead of dereferencing a pointer 2021-09-02 10:08:10 +02:00
Username404-59 52474d6521
Cross-compile for the riscv64 architecture in the Jenkinsfile 2021-09-02 01:10:47 +02:00
Username404 b5697bf0a8
Take the remaining characters of a string instead of taking none in a condition of the stringInterpolation() function from Target.hpp 2021-09-01 19:31:04 +02:00
Username404 afc59c7a22
Don't find occurrences when closing characters are not found in Target.hpp, make the interpolation strings static const variables and fix typos 2021-08-31 15:19:44 +02:00
Username404 bc2f6938e3
Use negation in the multiline boolean of Target.hpp 2021-08-31 14:47:13 +02:00
Username404-59 75ca9376fa
Add flags to unwind tables in the CMakeLists.txt 2021-08-30 16:23:55 +02:00
Username404 e92b3cf12f
Fix an extra space being added in the stringInterpolation() function of Target.hpp 2021-08-28 23:25:16 +02:00
Username404 50b84a03f3
Disable ccache in the Jenkinsfile 2021-08-28 23:11:51 +02:00
Username404 34691f7a8f
Only set CCACHE_PRESENT when it is not already defined 2021-08-28 23:09:34 +02:00
Username404 c186f30eef
Merge the noMultiline boolean into multiline in Target.hpp 2021-08-28 11:14:08 +02:00
Username404 2dba7fbda6
Add experimental string transpilation with interpolation 2021-08-28 10:59:24 +02:00
Username404 871ebabb11
Use ccache in builds when it is present 2021-08-27 12:08:56 +02:00
Username404-59 1992e1d42b
Add transpilation of strings to lua-compatible ones, and fix a comment 2021-08-24 17:23:31 +02:00
Username404 5d4be1039d
Add a new variadic lambda in Parser.hpp to check the types of tokens 2021-08-23 14:58:46 +02:00
Username404 079d99e08a
Remove the parameter of Target.get(), add it to Target as a property and rename Target.get() to Target.on() 2021-08-23 12:49:22 +02:00
Username404 664a6a92be
Begin adding transpilation of basic elements 2021-08-22 23:57:18 +02:00
Username404-59 57f8f251bc
Add a CF_PROTECTION variable to hold the -fcf-protection flag in the CMakeLists.txt file 2021-08-22 17:03:53 +02:00
Username404 9a1ea05e83
Add two optimization flags for the GNU compiler 2021-08-22 12:14:12 +02:00
Username404 8c63f1ae8b
Capture fileName by reference since it is now one, and give a type to currentFuture 2021-08-20 10:41:09 +02:00
Username404-59 fdb8579941
Fix a typo from the previous commit 2021-08-20 01:42:43 +02:00
Username404-59 845794a922
Prevent the compilation output from being printed when printResult is false 2021-08-20 01:34:29 +02:00
Username404 729e04161f
Make fileName a reference in a loop of main.cpp, and use findReferencesById() instead of findById() in ParseComponents.hpp 2021-08-20 00:08:51 +02:00
Username404 2e9e063d71
Use smart pointers instead of raw pointers in ParseComponents.hpp, remove an unused dependency in main.cpp and capture fileName by value in main.cpp to avoid using its reference after the current scope 2021-08-19 23:55:55 +02:00
Username404 845f356a86
Show a warning when CMake/CPack 3.21.1 is being used 2021-08-18 23:40:46 +02:00
Username404 4b0e58dd6a
Don't statically link libgcc, and don't use GCC/Clang flags on MSVC when cross-compiling for windows 2021-08-18 20:33:05 +02:00
Username404 66af9b9e2b
Update a multi-line comment in lexer.cpp 2021-08-18 19:36:30 +02:00
Username404 fd6ce35291
Add line numbers to Yerbacon::Exception 2021-08-18 19:31:02 +02:00