Commit Graph

89 Commits (expression_parsing.sync-conflict-20210316-090018-O3W7KWN)
 

Author SHA1 Message Date
Tristan B. Kildaire b6d005d532 Nice, that works 4 years ago
Tristan B. Kildaire 18a5bdca16 Added recursive brace parsing for parseExpression()
Updated test case to test it
4 years ago
Tristan B. Kildaire e5b86498f5 Added TODO about parseExpression for recursive () parsing 4 years ago
Tristan B. Kildaire b7f77b8619 parseExpression fixed for termination
Updated test cases to test this
4 years ago
Tristan B. V. Kildaire 0cc1b2e4ea Added TODO 4 years ago
Tristan B. V. Kildaire 6267ba1505 Added more enter/leave debug messages 4 years ago
Tristan B. V. Kildaire 2b7dd2fce3 Added unittest for identifiers 4 years ago
Tristan B. V. Kildaire bfdbaaeee7 Replaced old expect messages with new `expect(string)` 4 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
4 years ago
Tristan B. V. Kildaire 88a5c0e482 Added enter and leave debug prints to `parseBody()` 4 years ago
Tristan B. V. Kildaire 2cdc53e9b6 Cleaned up debug prints for `parseIf` and `parseWhile` 4 years ago
Tristan B. V. Kildaire f547a1127d Added TODO for `parseExpression` - found possible way to implement expression parsing correctly 4 years ago
Tristan B. V. Kildaire 94f15af031 Made token movement for `parseIf` and `parseWhile` self-contained 4 years ago
Tristan B. V. Kildaire 847f76d7d2 Cleaned up `parseClass` 4 years ago
Tristan B. V. Kildaire f36ab8df5f Updated test case by adding more recursive tests 4 years ago
Tristan B. V. Kildaire 3437d6ca84 Updated test case 4 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
4 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
4 years ago
Tristan B. V. Kildaire b0f0aa9361 Updated test case 4 years ago
Tristan B. V. Kildaire f62c2bbc02 Added class parsing to `parse()` and updated test case to test it 4 years ago
Tristan B. V. Kildaire 5c37112f42 Added more keywords 4 years ago
Tristan B. V. Kildaire a223045bb3 Added a few more keywords for future functionality 4 years ago
Tristan B. V. Kildaire 28c7bc4d3e Added new splitter 4 years ago
Tristan B. V. Kildaire a493ecc2a9 Added `parseClass()` function, `class` keyword support - for future class support 4 years ago
Tristan B. V. Kildaire 14aafe7097 Added some notes on refactoring the statement parsing system 4 years ago
Tristan B. V. Kildaire ffa94ba6e5 Added TODO 4 years ago
Tristan B. V. Kildaire f679a6dd83 Added support for while loops 4 years ago
Tristan B. V. Kildaire 302017e051 Added comment 4 years ago
Tristan B. V. Kildaire 1c335db683 Fixed bug that would allow you to not have a closing } for a body if you ran out of tokens.
It was checked by other means but not for `parse` me thinks
4 years ago
Tristan B. V. Kildaire ec8b03b4b6 Changed some stuff up, found bug that needs to be sorted out 4 years ago
Tristan B. V. Kildaire 25910b4940 Updated test case to include two function calls 4 years ago
Tristan B. V. Kildaire 0abfbf0b9e Function calls implemented 4 years ago
Tristan B. V. Kildaire da79f7f1d5 Updated test cases
Added string literal support for expressions
4 years ago
Tristan B. V. Kildaire 7a2ee46cdb Added new test cases 4 years ago
Tristan B. V. Kildaire bd656b9809 Updated test case 4 years ago
Tristan B. V. Kildaire 9b3440190b Recursive if statement parsing works! 4 years ago
Tristan B. V. Kildaire 8f746c97d0 Recursive expression handling 4 years ago
Tristan B. V. Kildaire 3ffa81d75f Call `nextToken` from within `parseExpression` to know when to quit, therefore removed calls made to nextToken after the call to `parseExpression` 4 years ago
Tristan B. V. Kildaire 5f4e46120b Moved symbol recognition unittests from parser.d to symbols.d 4 years ago
Tristan B. V. Kildaire e30291a5a0 Fixed unittests in parser 4 years ago
Tristan B. V. Kildaire f9b68b9658 Migrated symbol code from parser.d to symbols.d 4 years ago
Tristan B. V. Kildaire 89b52ec81e Added support for multiple function parameters in a function declaration 4 years ago
Tristan B. V. Kildaire 162b94447c Added body parsing for functions 4 years ago
Tristan B. V. Kildaire 6ef78bdb3b WIP: Function parsing 4 years ago
Tristan B. V. Kildaire eee13e915b Added invalid test cases 4 years ago
Tristan B. V. Kildaire aa8c23b4c7 Error out on invalid form for `parseTypedDeclaration` 4 years ago
Tristan B. V. Kildaire eca6acf4bf WIP: Variable declarations with/without assignments 4 years ago
Tristan B. V. Kildaire 84d190f78e WIP: Variable declaration parsing 4 years ago
Tristan B. V. Kildaire 9b45df01a6 Updated test case 4 years ago
Tristan B. V. Kildaire 162dd2d7e5 Added more symbols 4 years ago