Merge pull request '(DOC): Updates to UML' (#38) from dev into main

Reviewed-on: #38
This commit is contained in:
Hayden Hargreaves 2025-11-04 12:53:37 -07:00
commit 4673c60c44
6 changed files with 0 additions and 7 deletions

Binary file not shown.

Binary file not shown.

Before

Width:  |  Height:  |  Size: 284 KiB

BIN
doc/ParserFlowchart.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 45 KiB

BIN
doc/UMLClassDiagram.pdf Normal file

Binary file not shown.

BIN
doc/UMLClassDiagram.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 297 KiB

View File

@ -72,11 +72,6 @@ std::unique_ptr<Node> Parser::ParseBlock() {
// Remove whitespace using peek and consume (' ', '\t', '\n') // Remove whitespace using peek and consume (' ', '\t', '\n')
ConsumeWhiteSpace(); ConsumeWhiteSpace();
// NOTE: Simple example
// std::string ch(1, Peek());
// std::unique_ptr<Node> block = std::make_unique<TextNode>(ch);
// Consume();
char c = Peek(); char c = Peek();
char c_next = Peek(1); char c_next = Peek(1);
@ -94,9 +89,7 @@ std::unique_ptr<Node> Parser::ParseBlock() {
} }
// 3. Parse ordered list // 3. Parse ordered list
// TODO: This only checks a single digit, should check for 'n' digits
if (std::isdigit(c) && c_next == '.') { if (std::isdigit(c) && c_next == '.') {
// TODO: Do we need to check for white space?
return ParseList(true); return ParseList(true);
} }