Compare commits
No commits in common. "4673c60c44068628486655147e75cc1060ed6f0e" and "234bc42e2bd8df4c0320736160a166680c5131fb" have entirely different histories.
4673c60c44
...
234bc42e2b
BIN
UMLClassDiagram.pdf
Normal file
BIN
UMLClassDiagram.pdf
Normal file
Binary file not shown.
BIN
UMLClassDiagram.png
Normal file
BIN
UMLClassDiagram.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 284 KiB |
Binary file not shown.
|
Before Width: | Height: | Size: 45 KiB |
Binary file not shown.
Binary file not shown.
|
Before Width: | Height: | Size: 297 KiB |
@ -72,6 +72,11 @@ std::unique_ptr<Node> Parser::ParseBlock() {
|
||||
// Remove whitespace using peek and consume (' ', '\t', '\n')
|
||||
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_next = Peek(1);
|
||||
|
||||
@ -89,7 +94,9 @@ std::unique_ptr<Node> Parser::ParseBlock() {
|
||||
}
|
||||
|
||||
// 3. Parse ordered list
|
||||
// TODO: This only checks a single digit, should check for 'n' digits
|
||||
if (std::isdigit(c) && c_next == '.') {
|
||||
// TODO: Do we need to check for white space?
|
||||
return ParseList(true);
|
||||
}
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user