For instance print foo-> gives the error as being at column 4.
Improve expression error messages. frysk-core/frysk/expr/ChangeLog 2007-12-11 Andrew Cagney <cagney@redhat.com> * TestArithmetics.java (checkErrorExpr(String,String)): New. (testEndOfFileError()): New. (testExpressionError()): New. (checkVariableExpr(String expr, long value)): New. (testMember()): New. (expr(String)): Delete. (checkScratchExpr(String,long)): Replace checkExpr(long,String). * SyntaxException.java: New. * TestVariables.java: Delete; merge into TestArithmetics.java. * ExpressionFactory.java (parse(ExprSymTab,String)): Do not append ETX character; handle antlr exceptions. (complete(ExprSymTab,String,int,List)): Ditto. * CExpr.g: Terminate the expression with EOF, not ETX. (fhpd) print & Error: incomplete expression (fhpd) print 1...2 Error: unexpected input: expecting '.', found '2' (fhpd) print 1 . . 2 Error: invalid expression at: . 2