Merge pull request '(DOC): Updates to UML' (#38) from dev into main
Reviewed-on: #38
This commit is contained in:
commit
4673c60c44
Binary file not shown.
Binary file not shown.
|
Before Width: | Height: | Size: 284 KiB |
BIN
doc/ParserFlowchart.png
Normal file
BIN
doc/ParserFlowchart.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 45 KiB |
BIN
doc/UMLClassDiagram.pdf
Normal file
BIN
doc/UMLClassDiagram.pdf
Normal file
Binary file not shown.
BIN
doc/UMLClassDiagram.png
Normal file
BIN
doc/UMLClassDiagram.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 297 KiB |
@ -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);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user