Commit Graph

26 Commits

Author SHA1 Message Date
84b9f9de73
Add the [[unlikely]] attribute to the '\r' case in lexer.cpp 2021-09-10 22:20:41 +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
66af9b9e2b
Update a multi-line comment in lexer.cpp 2021-08-18 19:36:30 +02:00
fd6ce35291
Add line numbers to Yerbacon::Exception 2021-08-18 19:31:02 +02:00
e8916cf40f
Move the UNEXPECTED case in lexer.cpp 2021-08-10 14:55:28 +02:00
f4297fe851
Use STRING directly in the getIdentifierCharType() function. 2021-08-10 14:01:20 +02:00
e9ce6362af
Add a DOT token to lex.hpp, and only use the enum characters. 2021-08-10 13:54:50 +02:00
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
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
a222e8a165
Fix the characters placed next to identifiers/numbers being skipped in lexer.cpp. 2021-07-06 14:44:09 +02:00
74a7a5f2f7
Simplify a condition in lexer.cpp 2021-07-06 10:15:30 +02:00
e8c633d545
Save 13 lines in lexer.cpp and remove the longlex boolean variable. 2021-07-06 10:12:37 +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
f32f8abc5c
Remove useless comments in the beginning of each C++ file. 2021-03-17 13:00:22 +01:00
8772be9d5c
Use a switch-case expression instead of an if statement in lexer.cpp. 2021-03-06 13:38:26 +01:00
d3d951d843
Revert "Simplify a if statement in lexer.cpp."
This reverts commit 42796ac54ccac44c8a2033ea39635ba44284c5d7.
2021-03-06 13:27:02 +01:00
c02f8bcc1a
Simplify a if statement in lexer.cpp. 2021-03-06 13:24:08 +01:00
4d8f09ee68
Use the right installation directories. 2021-03-03 13:24:16 +01:00
d42c0d4293
Lex identifiers and numbers instead of just strings, and use isdigit instead of isalphanum in lexer.cpp. 2021-03-02 21:51:59 +01:00
ea0f3ac037
Add another TODO in lexer.cpp. 2021-02-23 15:07:08 +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