Commit Graph

60 Commits

Author SHA1 Message Date
20eff1d7b5
Set the initial size of Units to the number of files instead of allocating memory and using a back_inserter 2021-10-05 09:28:43 +02:00
e04fc67aae
Reserve memory for the Units vector 2021-10-05 09:15:46 +02:00
70f93b9200
Use std::transform on the files set to output the results to the Units vector 2021-10-05 09:13:31 +02:00
1e7da048d4
Call std::for_each in main.cpp instead of using range-based loops, to allow the use of the parallel mode 2021-10-05 08:38:25 +02:00
a3d6c5d3bc
Rename the exceptions caught in main.cpp 2021-10-03 21:20:21 +02:00
7c9716c45e
Don't include <variant> in main.cpp since it's not being used 2021-10-03 19:20:51 +02:00
ff8bf6d1de
Remove a newline and use a multi-variable declaration for the local booleans in main.cpp 2021-10-03 15:28:24 +02:00
5cea9251bd
Return a string_view instead of a string in the ArgumentAssignable::getValueFor function 2021-10-03 12:20:59 +02:00
f227182713
Remove a condition that is useless because of 29a6eb3e 2021-09-29 18:18:37 +02:00
80118d29a7
Start iterating on arguments at 1 since argv[0] is the executable's path 2021-09-28 21:51:51 +02:00
8f60e7052f
Remove the (argc > 0) condition since argc is always 1 or higher 2021-09-28 21:42:13 +02:00
02e8de7243
Show an error when an invalid argument is provided 2021-09-28 21:34:22 +02:00
43b4629a6d
Fix the pairs returned by the futures of the Units set 2021-09-26 12:38:33 +02:00
700ab109d2
Make a set of files directly instead of adding them to a vector in main.cpp 2021-09-26 12:37:46 +02:00
477337f96b
Remove a condition which has been useless since the e6334ad8 commit in main.cpp 2021-09-25 22:08:55 +02:00
facf460923
Improve the lambda used to return the compilation result in main.cpp 2021-09-25 17:26:45 +02:00
66e1926783
Use the max function in main.cpp 2021-09-25 17:03:55 +02:00
82520e63ba
Handle the "--version" argument when iterating on argc 2021-09-21 21:45:31 +02:00
44e160ebf9
Don't throw an exception when "isTypeString" is false in lexer.cpp 2021-09-14 20:20:34 +02:00
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
96bd6bf708
Re-add the newlinesoff argument 2021-09-11 11:49:57 +02:00
bfa8f50ad9
Revert "Add a "SEPARATOR" token type"
This reverts commit 47478173
2021-09-11 11:35:22 +02:00
6de05633d9
Add a "SEPARATOR" token type 2021-09-10 22:15:05 +02:00
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
1992e1d42b
Add transpilation of strings to lua-compatible ones, and fix a comment 2021-08-24 17:23:31 +02:00
664a6a92be
Begin adding transpilation of basic elements 2021-08-22 23:57:18 +02:00
8c63f1ae8b
Capture fileName by reference since it is now one, and give a type to currentFuture 2021-08-20 10:41:09 +02:00
fdb8579941
Fix a typo from the previous commit 2021-08-20 01:42:43 +02:00
845794a922
Prevent the compilation output from being printed when printResult is false 2021-08-20 01:34:29 +02:00
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
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
989650dba6
Catch exceptions in the main function 2021-08-18 18:59:46 +02:00
fbe8e189d3
Reuse a lambda in main.cpp. 2021-08-06 11:58:43 +02:00
604532dc34
Make the Policy local variable a reference in main.cpp, remove a useless #include directive and include Yerbacon.hpp before future. 2021-08-06 11:45:16 +02:00
8598509f0b
Revert "Handle duplicated --printresult arguments."
This reverts commit 25b50d1c
2021-07-11 15:44:30 +02:00
1bfb4cb54b
Add arguments.hpp, remove a few useless files, and add a library target to the CMakeLists.txt file. 2021-07-10 11:03:15 +02:00
6c62ee9f1a
Handle duplicated --printresult arguments. 2021-07-08 16:40:47 +02:00
3359dc7649
Add a Yerbacon header (+ namespace) and move the getVersion function into it. 2021-07-06 15:43:52 +02:00
46a3964596
Don't include the thread header in main.cpp 2021-07-06 12:26:17 +02:00
87de5ca3f4
Use the deferred policy when --parallel isn't present. 2021-07-06 12:25:13 +02:00
61946b891f
Use futures instead of threads to get better console output 2021-07-06 12:07:35 +02:00
314cff7f49
Add a --parallel argument to enable multithreading. 2021-07-06 11:37:43 +02:00
9f5a6c1631
Remove a useless goto statement in main.cpp. 2021-06-14 17:41:48 +02:00
78cf850533
Fix the "No valid file provided." sentence that was not being printed. 2021-06-11 13:25:16 +02:00
a9d137fab6
Use the assign operator for a few variables in main.cpp. 2021-06-10 21:58:08 +02:00
af729c527b
Fix the previous commit by adding an outputFile string. 2021-06-10 17:27:50 +02:00
c5d33fd480
Add support for multiple input files 2021-06-10 16:29:54 +02:00
Username404
e356ceab0c
Use a static cast in the main function. 2021-04-24 18:23:37 +02:00
Username404
85c155fc3b
Remove a parameter from the setOutputFileContent function and remove a variable in the main function. 2021-04-24 17:58:12 +02:00
9869f73e35
Use a reference as the parseString function's parameter instead of a unuseful pointer. 2021-03-25 21:15:21 +01:00