-
-
Notifications
You must be signed in to change notification settings - Fork 118
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Feature Request, Not Show Offset Chars at Error Line! #55
Comments
good, but test one also have bug.
please check/fix this. |
I can't understand your english. Please explain clearly. And please check that your english is right on Google Translate before report. |
Please try your two input to the interpreter. this is fixed :
but this not fix :
|
because anko doesn't have such a operator. it's not a bug. |
anko have * and ** operator. also with input :
this is not bug. and is right. 👍 so with input :
but just say column 10. 👎 so have bug! |
another exampel :
so why say column |
It's not a bug. Anko support pointer dereference.
This is same as:
anko parse |
anko can treat C like So not a bug, this too. |
Hi
Feature Request, Not Show Offset Chars at Error Line(yycolumn)!
Example error text :
so
11:**
, here ** why empty?error of (lexer and parser) both just show line and not show offset current error line!
carefull link for example , have
startColumn
andcolumn
:i also work on this , file
anko.go
:fmt.Fprintf(os.Stderr, "%s:%d: %s\n", source, e.Pos.Line, err)
changed to :
so now also show offset/column of error. 👍 👍
One-Test
now again compile
go build anko.go
and next test with a input :file : http://ilestra.com/input-1.txt
now error is :
example/test.ank:1:12 syntax error: unexpected ')'
say in offset 12 have error but in offset 12 code end.
and error of me available in offset 10. 👎 👎
Two-Test
also now with another test input :
file : http://ilestra.com/input-2.txt
also now error say :
example/test.ank:1:27 syntax error: unexpected ')'
but offset/column of my error available in 25 or 26.
Tree-Test
also again test with input :
file : http://ilestra.com/input-3.txt
error now:
example/test.ank:1:29 syntax error: unexpected $end
Output of column/offset is expected to be 28 or 29
Github delete space of my test's code. so i also upload file.
I think Lexer need some changes.
may problem is
$$.SetPosition($1.Position())
in some yacc rule?can you check/fix this?
The text was updated successfully, but these errors were encountered: