From 7ae38053cf1e1e5c8f84c34a142efb043f6d4810 Mon Sep 17 00:00:00 2001 From: Heejin Ahn Date: Fri, 24 May 2019 12:44:50 -0700 Subject: Show line/col for parsing exceptions in gen-s-parser (#2138) --- scripts/gen-s-parser.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'scripts/gen-s-parser.py') diff --git a/scripts/gen-s-parser.py b/scripts/gen-s-parser.py index 5e5ec494f..8329ae13b 100755 --- a/scripts/gen-s-parser.py +++ b/scripts/gen-s-parser.py @@ -528,7 +528,7 @@ def instruction_parser(): emit(trie) printer.print_line("parse_error:") with printer.indent(): - printer.print_line("throw ParseException(std::string(op));") + printer.print_line("throw ParseException(std::string(op), s.line, s.col);") def print_header(): -- cgit v1.2.3