Fix location tracking bugs (i) cursor was not initialized with input file name, ...
authorNick Downing <nick@ndcode.org>
Sun, 24 Dec 2023 23:39:25 +0000 (10:39 +1100)
committerNick Downing <nick@ndcode.org>
Mon, 25 Dec 2023 05:38:15 +0000 (16:38 +1100)
commitbe91e307f14325e27cb654797923d068ca9ee98b
tree4cea3ceb287ca5bc4db2a96c2148204645992bf4
parentd656c08aa099975c5623712b7d8e3cfe4874b1a4
Fix location tracking bugs (i) cursor was not initialized with input file name, (ii) id_loc and other places were corrupted by taking a reference to y_tab.yylloc rather than a copy, (iii) lex_yy.scanner_cursor was not put back when putting back text in state SC_AFTER_IDENTIFIER, (iv) line and column should be 1-based
ndcode/piyacc/cli.py
ndcode/piyacc/parse-gram.y
ndcode/piyacc/scan-gram.l
ndcode/piyacc/skel/skel_py.py
ndcode/piyacc/skel/skel_py_element.py
ndcode/piyacc/state.py
skel_y_tab.py