This commit is contained in:
2026-01-29 15:53:30 +01:00
parent 794d05f3d9
commit cb4c43e604
+15
View File
@@ -33,6 +33,21 @@ void fillTable() {
table[1]['o'] = 2;
table[2]['\n'] = ACCEPT;
table[2][' '] = START;
table[START]['d'] = 1;
table[1]['x'] = 2;
table[1]['y'] = 2;
table[2]['='] = 3;
table[3]['-'] = 4;
for (int i = '0'; i <='9'; i++) {
table[3][i] = 5;
table[4][i] = 5;
table[5][i] = 5;
}
table[5]['\n'] = ACCEPT;
table[5][' '] = START;
// TODO Expand the table to pass (and fail) the described syntax
// table[...][...] = ...