Commit Graph

345 Commits

Author SHA1 Message Date
Username404 7016eb18c4
Add the target architecture as a suffix to packages in CMakeLists.txt 2021-08-15 15:38:55 +02:00
Username404 1f5c0b1b7a
Enable exceptions handling in the CMakeLists.txt file 2021-08-14 23:15:46 +02:00
Username404 af3a9202c0
Make enumerations and wide characters shorter by default when using a GNU compiler or Clang. 2021-08-14 22:47:48 +02:00
Username404 a3cdf22000
Inline the `<<` operator in ParseComponents.hpp 2021-08-14 10:45:13 +02:00
Username404 d6de61df99
Add a few optimizations for G++ in the CMakeLists.txt file 2021-08-11 22:42:45 +02:00
Username404 5c3eecd560
Undefine YBCON_VERSION in Yerbacon.hpp 2021-08-10 15:48:26 +02:00
Username404 e8916cf40f
Move the UNEXPECTED case in lexer.cpp 2021-08-10 14:55:28 +02:00
Username404 f4297fe851
Use STRING directly in the getIdentifierCharType() function. 2021-08-10 14:01:20 +02:00
Username404 e9ce6362af
Add a DOT token to lex.hpp, and only use the enum characters. 2021-08-10 13:54:50 +02:00
Username404 7a23e31dea
Only define the CMAKE_RC_COMPILER when it isn't defined in the CMakeLists.txt file. 2021-08-10 12:22:28 +02:00
Username404 404b580ec3
Don't execute make commands in parallel in the Jenkinsfile. 2021-08-10 11:00:08 +02:00
Username404 41da4ef6ac
Add even more flags for the GNU and Clang compilers... 2021-08-10 10:58:18 +02:00
Username404 8739623a08
Move the Clang flags to the CMAKE_CXX_FLAGS_RELEASE, and add another flag. 2021-08-10 10:44:17 +02:00
Username404 f472878180
Use the flag added previously on Clang++ too, and replace occurrences of version numbers with the two variable containing minimal versions of compilers. 2021-08-10 10:32:04 +02:00
Username404 cc0d29fda7
Add an optimization flags for GNU compilers in the CMakeLists.txt file. 2021-08-09 21:33:18 +02:00
Username404 e414688156
Rename the second stage of the pipeline in the Jenkinsfile 2021-08-09 20:55:43 +02:00
Username404 a875f8ab80
Only strip the executable found in ./cmake-build-release. 2021-08-09 18:29:13 +02:00
Username404 ed6851f8e7
Re-add the cmake calls in the Jenkinsfile. 2021-08-09 18:14:56 +02:00
Username404 b1e5c0f7ea
Fix the previous commit... 2021-08-09 18:06:38 +02:00
Username404 9a9cc4aa50
Move cross-compilation to another stage in the Jenkinsfile. 2021-08-09 18:02:05 +02:00
Username404 3c14405874
Add variables with the minimal versions of GNU and Clang in the CMakeLists.txt file 2021-08-09 17:17:38 +02:00
Username404 043d2e7485
Make the GNU compiler message a FATAL_ERROR in the CMakeLists.txt file. 2021-08-09 14:39:09 +02:00
Username404 3b991da962
Require Clang 13.0+ in the CMakeLists.txt file, import the tok::type enumeration in lexer.cpp + Parser.hpp, and add [[likely]] attributes to 2 branches of the switch case in lexer.cpp. 2021-08-09 10:58:11 +02:00
Username404 3c703e55b5
Rename the findByName method to findReferenceByName, and add a findReferencesById method. 2021-08-08 23:44:42 +02:00
Username404 9871cc66c7
Add a Reference structure to the StandardComponents namespace. 2021-08-08 22:53:29 +02:00
Username404 43136672bd
Remove the ParseComponents constructor declaration and make NamedIdentifier.name a const variable again 2021-08-08 22:51:49 +02:00
Username404 e8b2f90263
Return pointers in PareTree.findById() and return references in ParseTree.findByName(). 2021-08-08 16:23:46 +02:00
Username404 dd223026a0
Fix the findByName function. 2021-08-08 14:59:47 +02:00
Username404 fa546865a0
Use runtime type information in ParseComponents.hpp. 2021-08-08 14:38:21 +02:00
Username404 c23d88e0eb
Add a return type to the ParseTree "<<" operator. 2021-08-07 13:33:13 +02:00
Username404 2a5df0bb32
Put the #ifdef directives before the case statements in Target.hpp to avoid issues. 2021-08-07 11:41:04 +02:00
Username404 2f853fe797
Add unsigned short values to the tok::type enum and move the parseString function to misc.hpp. 2021-08-06 19:12:28 +02:00
Username404 fbe8e189d3
Reuse a lambda in main.cpp. 2021-08-06 11:58:43 +02:00
Username404 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
Username404-59 c2a9c630ed
Update docs/gettingstarted.md.
Fixez a typo in the 5th section of docs/gettingstarted.md and adds an alternative "structure" keyword for classes.

Signed-off-by: Username404-59 <w.iron.zombie@gmail.com>
2021-08-05 01:16:35 +02:00
Username404-59 913bd4ba9b
Edit a line in the 5th section of docs/gettingstarted.md. 2021-08-05 01:00:25 +02:00
Username404 55970f861d
Add a "Classes" section to the docs/gettingstarted.md file, and edit a few lines. 2021-08-05 00:29:00 +02:00
Username404 328a073d50
Add a "dollar sign" token to lex.hpp and use it in lexer.cpp 2021-08-05 00:03:50 +02:00
Username404 e3804aa342
Make the class names constant in ParseComponents.hpp. 2021-08-01 13:02:57 +02:00
Username404 7ce27cc49d
Fix the function names in calls of the 2.3 section in docs/gettingstarted.md. 2021-07-31 22:36:03 +02:00
Username404 dcbefc1a59
Update docs/gettingstarted.md:
Add sub-sections about function parameters + function calls and a new section about comments.
2021-07-31 22:28:46 +02:00
Username404-59 abf2747588
Add a missing dot in the README.MD file.
Signed-off-by: Username404-59 <w.iron.zombie@gmail.com>
2021-07-31 22:03:20 +02:00
Username404 6d2314af06
Fix the end of the third section in docs/gettingstarted.md (+ the Hello World code blocks), and add a note about primitive types. 2021-07-31 21:35:07 +02:00
Username404 34777acc74
Rename the variable containing the name of classes in StandardComponents::Class, nest the Constructor structure in it and remove StandardComponents::ClassBody. 2021-07-31 21:17:57 +02:00
Username404 677868a959
Add a directory with documentation files. 2021-07-31 21:17:33 +02:00
Username404 4512909b23
Don't break in the ADDTARGET macro of Target.hpp, and define class names of Py.hpp, Lua.hpp and Js.hpp to use them in Target.hpp. 2021-07-31 18:56:17 +02:00
Username404 ac195d413b
Undefine the ADDTARGET macro after the switch statement in Target.hpp 2021-07-31 18:38:57 +02:00
Username404 bf5ca80c4d
Add a Macro to Target.hpp and check for a std::threads implementation in Yerbacon.hpp. 2021-07-31 16:47:00 +02:00
Username404 905e7e7e82
Add lexing and parsing exceptions and parse = and #= 2021-07-29 17:35:35 +02:00
Username404 ecc2683cea
Show an error when the executable is not found in scripts/ybcon. 2021-07-12 14:36:46 +02:00