shortened test program, conditional jumps added to roadmap

This commit is contained in:
fsan 2021-10-25 23:23:11 -03:00
parent e451ffd7c5
commit db73353453
3 changed files with 2 additions and 2 deletions

View File

@ -23,6 +23,7 @@ lexer::lex_file(std::string filename) {
id = true;
*value += c;
} else {
print_tokens(_tokens);
std::cout << "Invalid identifier " << value << c << '\n';
exit(-1);
}

View File

@ -17,6 +17,7 @@ struct token {
TOK_OP,
TOK_ASSIGN,
TOK_DO,
TOK_WHILE,
TOK_END,
TOK_LPAREN,
TOK_RPAREN,

View File

@ -1,5 +1,3 @@
a = 2 + 2;
j = 2 + 1;
h = 2 + 1;
b = 4 + 8 + 6 + a + 2;
p = a + 1;