aboutsummaryrefslogtreecommitdiff
path: root/driver/parser/semantic_action.go
diff options
context:
space:
mode:
authorRyo Nihei <nihei.dev@gmail.com>2022-11-12 21:30:40 +0900
committerRyo Nihei <nihei.dev@gmail.com>2022-11-12 21:30:40 +0900
commit71577d39f48d129cae48f9d242f407560360862d (patch)
tree9d9b8d055e41b09b7bb3f077e6f0f1b59d1aecc8 /driver/parser/semantic_action.go
parentFix counting of token positions (diff)
downloadurubu-71577d39f48d129cae48f9d242f407560360862d.tar.gz
urubu-71577d39f48d129cae48f9d242f407560360862d.tar.xz
Set token positions for the EOF symbol
vartan intentionally had not set positional information for the EOF symbol in a token because the corresponding character does not exist in the source code. However, to be able to include the positional information in a syntax error message when a syntax error occurs due to the detection of the EOF symbol during parsing, this commit sets the position next to the last character in the source code as the position of the EOF symbol.
Diffstat (limited to 'driver/parser/semantic_action.go')
0 files changed, 0 insertions, 0 deletions