Commit Graph

30 Commits

Author SHA1 Message Date
6955c5cb4d
Remove tok::type::EOF_ because it is useless, and fix the next local constant reference in Parser.hpp
Signed-off-by: Username404 <w.iron.zombie@gmail.com>
2022-03-01 20:14:47 +01:00
63b24752d6
Make the members of the tok structure non-const to avoid undefined behaviour when the "=" operator is called
Signed-off-by: Username404 <w.iron.zombie@gmail.com>
2022-02-14 14:12:00 +01:00
de2259b6ed
Add a "inverseLCharacter" static function to tok
Signed-off-by: Username404 <w.iron.zombie@gmail.com>
2022-02-14 14:12:00 +01:00
f33aec687a
Parse Calls/ParseTrees
Signed-off-by: Username404 <w.iron.zombie@gmail.com>
2022-02-14 14:12:00 +01:00
04923f03a5
Revert "Remove a useless #include directive in lex.hpp"
This reverts commit 41e33e30ba5faef9bd841777eae8701718bf8f69.
2022-02-14 14:12:00 +01:00
4f40fdaed7
Add a "=" operator and a default constructor to tok 2022-02-14 14:12:00 +01:00
96dd67b69a
Remove a useless #include directive in lex.hpp 2022-02-14 14:12:00 +01:00
cf4ea8a1f8
Improve the tok constructors 2022-02-14 14:12:00 +01:00
19f76c405c
Remove a useless constructor in lex.hpp 2022-02-14 14:12:00 +01:00
3c4586cc70
Add "ASTERISK" and "DIVIDE" token types to lex.hpp, and implement comments 2022-02-14 14:12:00 +01:00
659cdf4e80
Make tok::LexerException and Parser::ParserException type definitions instead of extending the Yerbacon::Exception class 2021-09-25 17:33:28 +02:00
6af6c04d5f
Remove the unlikely attribute from the '\r' case, and add an EOF token type 2021-09-23 13:21:47 +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
664a6a92be
Begin adding transpilation of basic elements 2021-08-22 23:57:18 +02:00
fd6ce35291
Add line numbers to Yerbacon::Exception 2021-08-18 19:31:02 +02:00
e9ce6362af
Add a DOT token to lex.hpp, and only use the enum characters. 2021-08-10 13:54:50 +02:00
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
328a073d50
Add a "dollar sign" token to lex.hpp and use it in lexer.cpp 2021-08-05 00:03:50 +02:00
905e7e7e82
Add lexing and parsing exceptions and parse = and #= 2021-07-29 17:35:35 +02:00
077f95b36b
Begin the parser 2021-07-03 21:54:12 +02:00
9ade88b6aa
Make the lex function return a value instead of a reference. 2021-04-01 16:20:14 +02:00
c190e308f8
Remove separator tokens, and move a boolean variable. 2021-04-01 15:32:31 +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
60f88896a4
Replace an #include directive in src/headers/lex.hpp. 2021-03-19 13:53:53 +01:00
f32f8abc5c
Remove useless comments in the beginning of each C++ file. 2021-03-17 13:00:22 +01:00
6d2c23bb39
Add a misc.hpp file. 2021-03-03 19:47:25 +01:00
45cbe5b9e2
Lex the entire strings. 2021-02-22 19:42:20 +01:00
34c3cfb041
Hidden git history due to a license change. 2021-02-12 15:07:03 +01:00