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

Source position information in AST #1192

Open
dorchard opened this issue Dec 9, 2024 · 0 comments
Open

Source position information in AST #1192

dorchard opened this issue Dec 9, 2024 · 0 comments

Comments

@dorchard
Copy link
Collaborator

dorchard commented Dec 9, 2024

Currently the fluid AST does not contain any information about source position as far as I can see. I think it would be very useful to add this (e.g., start and end positions per AST node) to aid in user-facing tools, like type checkers and more fine-grained provenance information in the future. It looks like this would be fairly straightforward to add leveraging the combinators in purescript-parsing (e.g., https://pursuit.purescript.org/packages/purescript-parsing/10.2.0/docs/Parsing#v:position).

See also:

@rolyp rolyp added this to Fluid Dec 9, 2024
@github-project-automation github-project-automation bot moved this to Proposed in Fluid Dec 9, 2024
@rolyp rolyp moved this from Proposed to Planned in Fluid Dec 9, 2024
@dorchard dorchard added the types label Jan 13, 2025
@rolyp rolyp changed the title AST does not contain source position information Source position information in AST Jan 24, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Status: Planned
Development

No branches or pull requests

1 participant