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

wrong location after directive (Mantis 5127) #72

Open
damiendoligez opened this issue Jan 9, 2015 · 0 comments
Open

wrong location after directive (Mantis 5127) #72

damiendoligez opened this issue Jan 9, 2015 · 0 comments

Comments

@damiendoligez
Copy link

Transferred from http://caml.inria.fr/mantis/view.php?id=5127
See the Mantis page for the (longish) discussion.

The locations in the Camlp4 ast are completely wrong for the
material that follows a directive. For a two line file

#use "y.ml";;
let a = 5

the location in the StVal node for line 2 has

start_line = 3 (should be 2)
start_bol = 1 (should be 14)
start_off = 1 (should be 14)

the stop location is also wrong.

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

1 participant