Everywhere: Pass step1 tests by supporting more Tokens in the Reader

This commit is contained in:
Riyyi
2023-03-20 18:11:37 +01:00
parent 68303dfe7b
commit 94dcd4c50e
6 changed files with 193 additions and 46 deletions
+11 -6
View File
@@ -32,14 +32,19 @@ private:
Token consume();
bool consumeSpecific(Token token);
void ignore();
void retreat();
ASTNode* readImpl();
ASTNode* readSpliceUnquote();
ASTNode* readList();
ASTNode* readQuote();
ASTNode* readQuasiQuote();
ASTNode* readUnquote();
ASTNode* readString();
ASTNode* readSpliceUnquote(); // ~@
ASTNode* readVector(); // []
ASTNode* readHashMap(); // {}
ASTNode* readList(); // ()
ASTNode* readQuote(); // '
ASTNode* readQuasiQuote(); // `
ASTNode* readUnquote(); // ~
ASTNode* readWithMeta(); // ^
ASTNode* readDeref(); // @
ASTNode* readString(); // "foobar"
ASTNode* readValue();
void dumpImpl(ASTNode* node);