Skip to content
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

Parsing error should output original file location #82

Open
lightclient opened this issue Sep 26, 2021 · 0 comments
Open

Parsing error should output original file location #82

lightclient opened this issue Sep 26, 2021 · 0 comments
Labels
A-assembler Area: assembler C-enhance Category: a request for an improvement E-medium Experience: of moderate difficulty

Comments

@lightclient
Copy link
Contributor

Currently, if parsing fails in a child %import the error only gives the line number.

foo.etk

%import("bar.etk")

bar.etk

push1 0x42
asdf
$ eas foo.etk
Error: parsing failed
Caused by: lexing failed
Caused by:  --> 2:1
  |
2 | asdf␊
  | ^---
  |
  = expected EOI, op, push, local_macro, builtin, or label_definition
@lightclient lightclient added C-enhance Category: a request for an improvement A-assembler Area: assembler E-medium Experience: of moderate difficulty labels Sep 26, 2021
gzanitti added a commit to gzanitti/etk that referenced this issue Oct 10, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
A-assembler Area: assembler C-enhance Category: a request for an improvement E-medium Experience: of moderate difficulty
Projects
None yet
Development

No branches or pull requests

1 participant