More stuff related to lists
This commit is contained in:
@@ -72,7 +72,7 @@ void Parser::parseLines(string in, Logger log) {
|
||||
}
|
||||
terms.push_back(termBuffer);
|
||||
termBuffer.clear();
|
||||
} else if ((c == ',' || c == '{' || c == '}' || c == '(' || c == ')') && !isString) {
|
||||
} else if ((c == ',' || c == '{' || c == '}' || c == '(' || c == ')' || c == '[' || c == ']') && !isString) {
|
||||
if (!buffer.empty()) {
|
||||
termBuffer.push_back(buffer);
|
||||
buffer.clear();
|
||||
@@ -120,6 +120,7 @@ void Parser::processLines() {
|
||||
else if (ct == "let") token.keyword = keywords::LET;
|
||||
else if (ct == "print") token.keyword = keywords::PRINT;
|
||||
else if (ct == "println") token.keyword = keywords::PRINTLN;
|
||||
else if (ct == "printlist") token.keyword = keywords::PRINTLIST;
|
||||
else if (ct == "input") token.keyword = keywords::INPUT;
|
||||
else if (ct == "return") token.keyword = keywords::RETURN;
|
||||
else if (ct == "exit") token.keyword = keywords::EXIT;
|
||||
|
Reference in New Issue
Block a user