|
01abadc1fa
|
Use cmp_less instead of cmp_greater in Parser.hpp
Signed-off-by: Username404 <w.iron.zombie@gmail.com>
|
2022-03-19 16:28:59 +01:00 |
|
|
bee9917947
|
Use LPAR instead of a character in a condition of Parser.hpp
Signed-off-by: Username404 <w.iron.zombie@gmail.com>
|
2022-03-17 15:49:03 +01:00 |
|
|
272323d091
|
Add two local variables to Parser.hpp
Signed-off-by: Username404 <w.iron.zombie@gmail.com>
|
2022-03-17 15:47:03 +01:00 |
|
|
1f819bc136
|
When parsing a function call, invoke parse without specialization since the "=" operator needs a ParseTree
Signed-off-by: Username404 <w.iron.zombie@gmail.com>
|
2022-03-13 22:35:18 +01:00 |
|
|
f3d03adead
|
Add functions, indentation, better variables parsing and more
Signed-off-by: Username404 <w.iron.zombie@gmail.com>
|
2022-03-13 15:15:29 +01:00 |
|
|
2425d19f9f
|
Add a Parser::parse overload which takes input iterators as arguments
Signed-off-by: Username404 <w.iron.zombie@gmail.com>
|
2022-03-09 20:48:57 +01:00 |
|
|
8e7aaadbd0
|
Rename parseVector to parse in Parser.hpp, and make the parameter a span instead of a vector
Signed-off-by: Username404 <w.iron.zombie@gmail.com>
|
2022-03-09 19:31:30 +01:00 |
|
|
cca696b27a
|
Fix the line number of next in Parser.hpp
Signed-off-by: Username404 <w.iron.zombie@gmail.com>
|
2022-03-04 19:31:28 +01:00 |
|
|
9d7300ce89
|
Fix errors by removing the isNotBlank boolean and using hasNext instead
Signed-off-by: Username404 <w.iron.zombie@gmail.com>
|
2022-03-04 19:19:13 +01:00 |
|
|
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 |
|
|
ec4121de1c
|
Fix parsing of parentheses by searching after the current index
Signed-off-by: Username404 <w.iron.zombie@gmail.com>
|
2022-02-14 16:03:34 +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 |
|
|
68dc7ea1a1
|
Make Parser::parseVector a function template
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 |
|
|
158021cf68
|
Fix the indentation of a line modified by the previous commit
|
2022-02-14 14:12:00 +01:00 |
|
|
173ed5d6c3
|
Add a parsingError() function to Parser.hpp
|
2022-02-14 14:12:00 +01:00 |
|
|
a098973023
|
Throw an exception when a final variable is being redefined, and use types instead of auto in the ParseTree::findReferenceByName() method and when calling it in Parser.hpp
|
2022-02-14 14:12:00 +01:00 |
|
|
08661d83a3
|
Add an explicit return type to the nextAre function
|
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 |
|
|
c6ee98e76b
|
Accept the use of "structure" as an alternative to the "class" keyword
|
2021-09-25 16:11:02 +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 |
|
|
82d733af54
|
Edit the use of convertible_to in Parser.hpp
|
2021-09-18 16:34:01 +02:00 |
|
|
8cb72a9baa
|
Remove a useless condition in Parser.hpp
|
2021-09-18 16:26:29 +02:00 |
|
|
fefa7b05c7
|
Take an initializer_list instead of variadic arguments in the nextAre lambda function
|
2021-09-18 15:32:31 +02:00 |
|
|
500662f5c5
|
Add the isFinalDefine boolean to 1 in Parser.hpp
|
2021-09-15 20:05:23 +02:00 |
|
|
08a038cf82
|
Set the ParsingException cause to another string when no identifier is given to a class, and pass the component's line to the exception
|
2021-09-14 20:43:09 +02:00 |
|
|
1992e1d42b
|
Add transpilation of strings to lua-compatible ones, and fix a comment
|
2021-08-24 17:23:31 +02:00 |
|
|
5d4be1039d
|
Add a new variadic lambda in Parser.hpp to check the types of tokens
|
2021-08-23 14:58:46 +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 |
|
|
9871cc66c7
|
Add a Reference structure to the StandardComponents namespace.
|
2021-08-08 22:53:29 +02:00 |
|
|
fa546865a0
|
Use runtime type information in ParseComponents.hpp.
|
2021-08-08 14:38:21 +02:00 |
|
|
905e7e7e82
|
Add lexing and parsing exceptions and parse = and #=
|
2021-07-29 17:35:35 +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 |
|
|
b7eb32c636
|
Handle token vectors with less than 2 values in the Parser::parseVector() method.
|
2021-07-07 17:40:04 +02:00 |
|
|
de24219fca
|
Define the two reference variables in one line in the loop of Parser.hpp.
|
2021-07-06 20:57:20 +02:00 |
|
|
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 |
|
|
9d36279f95
|
Remove the useless object copy in Parser.hpp.
|
2021-07-03 22:59:03 +02:00 |
|
|
f308ad9da0
|
Remove the "previous" reference in Parser.hpp and start the iteration on lexed tokens at 0 instead of 1.
|
2021-07-03 22:32:45 +02:00 |
|
|
3ce905d602
|
Remove a few useless newlines in header files
|
2021-07-03 21:57:02 +02:00 |
|
|
077f95b36b
|
Begin the parser
|
2021-07-03 21:54:12 +02:00 |
|