summaryrefslogtreecommitdiff
path: root/scripts/gen-s-parser.py
diff options
context:
space:
mode:
authorHeejin Ahn <aheejin@gmail.com>2019-05-24 12:44:50 -0700
committerGitHub <noreply@github.com>2019-05-24 12:44:50 -0700
commit7ae38053cf1e1e5c8f84c34a142efb043f6d4810 (patch)
tree6206f285e01f637a0698d693ce47a9493c911ed4 /scripts/gen-s-parser.py
parent5644d15b87577478659d7cbeb9bb0555cc233631 (diff)
downloadbinaryen-7ae38053cf1e1e5c8f84c34a142efb043f6d4810.tar.gz
binaryen-7ae38053cf1e1e5c8f84c34a142efb043f6d4810.tar.bz2
binaryen-7ae38053cf1e1e5c8f84c34a142efb043f6d4810.zip
Show line/col for parsing exceptions in gen-s-parser (#2138)
Diffstat (limited to 'scripts/gen-s-parser.py')
-rwxr-xr-xscripts/gen-s-parser.py2
1 files changed, 1 insertions, 1 deletions
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():