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

Parser generators and dependencies with .ml{,y,i} files. #187

Closed
jnfoster opened this issue Jul 13, 2017 · 3 comments · Fixed by #218
Closed

Parser generators and dependencies with .ml{,y,i} files. #187

jnfoster opened this issue Jul 13, 2017 · 3 comments · Fixed by #218

Comments

@jnfoster
Copy link

If I manually run Menhir in my source directory, it generates .ml and .mli files. If I forget to delete those files and then run jbuilder it will ignore subsequent changes to the .mly file, which can be very confusing.

@jnfoster jnfoster changed the title Generated files Parser generators and dependencies with .ml{,y,i} files. Jul 13, 2017
@ghost
Copy link

ghost commented Jul 14, 2017

Basically jbuilder always prefer the files in the source tree if they exist. This is useful for instance for configuration files, that can be either generated by a configure script or from a default configuration for development.

I suppose we could mark explicitly the files for which we want this behavior.

@jnfoster
Copy link
Author

I understand. I see how doing anything different might be tricky given jbuilder's choice to not require the programmer to list out source files. Maybe there could be a mechanism for rules like (menhir ...) to somehow mark the .{ml,mli} files as generated and overwrite them or complain if they already exist?

@elfring
Copy link

elfring commented Jul 21, 2017

How would you like to filter generated source files out from the other input files?

This issue was closed.
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

Successfully merging a pull request may close this issue.

2 participants