HaskellTiger
HaskellTiger copied to clipboard
show source context in parse/semant errors
Eg, instead of outputting
tigerc: Parse Error at token (Lexeme class=IN, posn=12:1, string="in")
or
semantic issue at line 11, col 24: "parameter 0 of func isOdd requires type INT but was passed a value of type STRING"
Show the source context