Commit Graph

366 Commits

Author SHA1 Message Date
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
Username404 8598509f0b
Revert "Handle duplicated --printresult arguments."
This reverts commit 25b50d1c
2021-07-11 15:44:30 +02:00
Username404 c8f3e689bd
Remove the library target since it won't be useful. 2021-07-10 12:00:19 +02:00
Username404 3265e5f374
Remove transpile() from the misc.hpp header 2021-07-10 11:05:14 +02:00
Username404 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
Username404 b1c8bc5b7f
Update README.md and use the right mingw32 executable on debian. 2021-07-09 18:39:14 +02:00
Username404-59 6c62ee9f1a
Handle duplicated --printresult arguments. 2021-07-08 16:40:47 +02:00
Username404-59 84b2d8812c
Fix the condition introduced in previous commits. 2021-07-08 12:57:33 +02:00
Username404-59 710590fef6
Fix the previous commit. 2021-07-08 10:42:10 +02:00
Username404-59 c3bf6609f2
Fix the shell script arguments not working at all. 2021-07-08 10:37:17 +02:00
Username404-59 4b1dd01128
Complete the build requirements and the example in the README.md file. 2021-07-08 10:18:18 +02:00
Username404-59 cebfc6457d
Add a "Build requirements" section to the README.md file. 2021-07-07 23:09:21 +02:00
Username404-59 612eda5b2f
Update README.md 2021-07-07 22:55:00 +02:00
Username404-59 36b3a07b35
Show the usage dialog when a .ybcon file isn't provided in the shell script. 2021-07-07 22:36:14 +02:00
Username404-59 dfc42a49af
Remove .zcompdump files after installing the zsh autocompletion script. 2021-07-07 21:38:01 +02:00
Username404-59 db14d469bd
Ad a warning in Yerbacon.hpp that shows up when YBCON_VERSION isn't already defined. 2021-07-07 20:06:18 +02:00
Username404-59 3f4aed1389
Add support for the --parallel argument in shell scripts. 2021-07-07 19:10:39 +02:00
Username404-59 b7eb32c636
Handle token vectors with less than 2 values in the Parser::parseVector() method. 2021-07-07 17:40:04 +02:00
Username404-59 c7b5960783
Add the build timestamp to Windows executables. 2021-07-07 17:02:49 +02:00
Username404-59 f6f0a1dc64
Set the language to neutral in the resources file for Windows. 2021-07-07 16:36:23 +02:00
Username404-59 8ed9b529ea
Improve the copyright text used in the Windows resources file. 2021-07-07 16:35:05 +02:00
Username404-59 e59ce68760
Add a copyright text to the Windows resources file. 2021-07-07 15:57:20 +02:00
Username404-59 416ab3a30e
Fix the executable's description on Windows. 2021-07-07 15:38:50 +02:00
Username404-59 de24219fca
Define the two reference variables in one line in the loop of Parser.hpp. 2021-07-06 20:57:20 +02:00
Username404-59 b82faeb399
Substract 1 to the lexed vector's size in Parser.hpp to avoid getting out of bounds because of the next reference. 2021-07-06 20:49:28 +02:00
Username404-59 07ca24c610
Move the YBCON_VERSION redefinition to Yerbacon.hpp. 2021-07-06 17:29:26 +02:00
Username404-59 3359dc7649
Add a Yerbacon header (+ namespace) and move the getVersion function into it. 2021-07-06 15:43:52 +02:00
Username404-59 a222e8a165
Fix the characters placed next to identifiers/numbers being skipped in lexer.cpp. 2021-07-06 14:44:09 +02:00
Username404-59 46a3964596
Don't include the thread header in main.cpp 2021-07-06 12:26:17 +02:00
Username404-59 87de5ca3f4
Use the deferred policy when --parallel isn't present. 2021-07-06 12:25:13 +02:00