Commit Graph

1012 Commits (master)
 

Author SHA1 Message Date
Tristan B. V. Kildaire 43050f9d3f Cleaned up 3 years ago
Tristan B. V. Kildaire a911141da9 Added new test case for if-statement parsing to test lone else's and else if's 3 years ago
Tristan B. V. Kildaire eaf359ec2d Updated test case 3 years ago
Tristan B. V. Kildaire 88a5528070 Updated test cases for testing if-statement parsing 3 years ago
Tristan B. V. Kildaire 35132be9d6 If statement parsing completed
Also on unknown symbol in `parseBody` remember to error out and exit
3 years ago
Tristan B. V. Kildaire 70bdeed89b WIP: If statement parsing seems to work and pick up some errors 3 years ago
Tristan B. V. Kildaire bbe52bb287 Exit after else 3 years ago
Tristan B. V. Kildaire 6edae88d76 We would never not start on an if, hence said variable would always be true 3 years ago
Tristan B. V. Kildaire 2873a6ab4e Cleaned up 3 years ago
Tristan B. V. Kildaire 1121f2d84e Updated test case 3 years ago
Tristan B. V. Kildaire 0ccadf51d4 Updated test case 3 years ago
Tristan B. V. Kildaire 5874a4c801 Fixed if statement parsing bug 3 years ago
Tristan B. Kildaire 7882b49c72 Removed redundancy 3 years ago
Tristan B. Kildaire 808c124724 WIP: If statements
Something is consuming too much if statement wise (only when `else` is present though)
3 years ago
Tristan B. Kildaire 4322c2aa0c WIP: If statement with else if's and else 3 years ago
Tristan B. V. Kildaire 9c22731098 Bruh 3 years ago
Tristan B. Kildaire b84ee81e7b Revert 3 years ago
Tristan B. Kildaire 9763a85478 Expect now throws an exception 3 years ago
Tristan B. Kildaire 5330ee95f1 Upgraded to new gogga 3 years ago
Tristan B. V. Kildaire 034129162f Updated test case 3 years ago
Tristan B. Kildaire 81a4c0537b Multiple function declarations can now be parsed, previous error was due to exiting only when we were out of tokens, now we exit after consuming `}` after the call to parseBody() 3 years ago
Tristan B. Kildaire 0ea5b78a2f Bruh 3 years ago
Tristan B. Kildaire b6467583a1 Updated test case 3 years ago
Tristan B. V. Kildaire d89e999958 Cleaned up 3 years ago
Tristan B. Kildaire 18a5bdca16 Added recursive brace parsing for parseExpression()
Updated test case to test it
3 years ago
Tristan B. Kildaire e5b86498f5 Added TODO about parseExpression for recursive () parsing 3 years ago
Tristan B. Kildaire b7f77b8619 parseExpression fixed for termination
Updated test cases to test this
3 years ago
Tristan B. V. Kildaire 0cc1b2e4ea Added TODO 3 years ago
Tristan B. V. Kildaire 6267ba1505 Added more enter/leave debug messages 3 years ago
Tristan B. V. Kildaire 2b7dd2fce3 Added unittest for identifiers 3 years ago
Tristan B. V. Kildaire bfdbaaeee7 Replaced old expect messages with new `expect(string)` 3 years ago
Tristan B. V. Kildaire 4ed0b385cf Added new `expect(string)` method for custom messages for panic
Also made `expect(SymbolType, Token)` use said new method
3 years ago
Tristan B. V. Kildaire 88a5c0e482 Added enter and leave debug prints to `parseBody()` 3 years ago
Tristan B. V. Kildaire 2cdc53e9b6 Cleaned up debug prints for `parseIf` and `parseWhile` 3 years ago
Tristan B. V. Kildaire f547a1127d Added TODO for `parseExpression` - found possible way to implement expression parsing correctly 3 years ago
Tristan B. V. Kildaire 94f15af031 Made token movement for `parseIf` and `parseWhile` self-contained 3 years ago
Tristan B. V. Kildaire 847f76d7d2 Cleaned up `parseClass` 3 years ago
Tristan B. V. Kildaire f36ab8df5f Updated test case by adding more recursive tests 3 years ago
Tristan B. V. Kildaire 3437d6ca84 Updated test case 3 years ago
Tristan B. V. Kildaire a502cad168 Allowed `paraeBody()` to parse classes by making a class to `parseClass` o occurence of `class` keyword
Updated test case to test this
3 years ago
Tristan B. V. Kildaire 60516134ff Allow identifiers to contain numbers and underscores, however numbers may not be the first character of the identifier
Updated test cases to test this
3 years ago
Tristan B. V. Kildaire b0f0aa9361 Updated test case 3 years ago
Tristan B. V. Kildaire f62c2bbc02 Added class parsing to `parse()` and updated test case to test it 3 years ago
Tristan B. V. Kildaire 5c37112f42 Added more keywords 3 years ago
Tristan B. V. Kildaire a223045bb3 Added a few more keywords for future functionality 3 years ago
Tristan B. V. Kildaire 28c7bc4d3e Added new splitter 3 years ago
Tristan B. V. Kildaire a493ecc2a9 Added `parseClass()` function, `class` keyword support - for future class support 3 years ago
Tristan B. V. Kildaire 14aafe7097 Added some notes on refactoring the statement parsing system 3 years ago
Tristan B. V. Kildaire ffa94ba6e5 Added TODO 3 years ago
Tristan B. V. Kildaire f679a6dd83 Added support for while loops 3 years ago