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

produce tree with location #70

Open
craff opened this issue Jun 28, 2023 · 3 comments
Open

produce tree with location #70

craff opened this issue Jun 28, 2023 · 3 comments
Assignees

Comments

@craff
Copy link

craff commented Jun 28, 2023

Would be nice to be able to produce a tree with some location in it. The application I have in mind is
generation of ocaml file what should use the line directive for error to point in the original file.

I would add tree_with_loc and trees_with_loc similar to tree and trees.

If you assign me, I will submit a PR ASAP.

@aantron
Copy link
Owner

aantron commented Jun 29, 2023

I would be happy to merge it! Can you describe the application briefly in a bit more detail? I was unable to understand -- you are generating an OCaml file from HTML, and you'd like to point lines back to the HTML file?

@craff
Copy link
Author

craff commented Jun 30, 2023 via email

@craff
Copy link
Author

craff commented Jun 30, 2023

I did the PR and tested it in https://github.com/craff/simple_httpd. It seems to do the job.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants