Added file name + line number to symbols and use it for reasonable error handling now, added a version number to the compiled grammer
This commit is contained in:
@@ -75,6 +75,8 @@ obj parser (Object) {
|
||||
for (current_symbol = lex.next(); current_symbol != eof_symbol() && current_symbol != invalid_symbol(); current_symbol = lex.next();) {
|
||||
/*println("current_symbol is ")*/
|
||||
/*println(current_symbol.to_string())*/
|
||||
if (current_symbol != eof_symbol() && current_symbol != invalid_symbol())
|
||||
current_symbol.source = name
|
||||
input.addEnd(current_symbol)
|
||||
}
|
||||
input.addEnd(current_symbol)
|
||||
|
||||
Reference in New Issue
Block a user