shortened test program, conditional jumps added to roadmap
This commit is contained in:
parent
e451ffd7c5
commit
db73353453
|
@ -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);
|
||||
}
|
||||
|
|
|
@ -17,6 +17,7 @@ struct token {
|
|||
TOK_OP,
|
||||
TOK_ASSIGN,
|
||||
TOK_DO,
|
||||
TOK_WHILE,
|
||||
TOK_END,
|
||||
TOK_LPAREN,
|
||||
TOK_RPAREN,
|
||||
|
|
Loading…
Reference in New Issue