-
Notifications
You must be signed in to change notification settings - Fork 24
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
Make the library domain-safe #60
Conversation
1f42a63
to
79fb805
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
On the general idea, lgtm!
@@ -264,7 +250,7 @@ let main lexer lexbuf file_name = | |||
lexer lexbuf | |||
in | |||
let result = | |||
try with_clear_parser (main lexer lexbuf) file_name |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
With menhir, there is no more need to clear the parser?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
no menhir doesn't use the internal states from Stdlib.Parsing
so it would be pointless to call this function, and as far as i know it doesn't have an equivalent function.
value: | ||
value: valu_ EOF { $1 } | ||
|
||
valu_: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It's better to have value
here, and rename value
l.101
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
discussed elsewhere: sadly value
is required to be defined this way because it is the name of the value exported. I've added comments instead
sounds good |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
🚀
PR on top of #51
This PR changes the parser from ocamlyacc to menhir. I made this sit on top of #51 for simplicity sake.
If merged I believe we should release this as
opam-file-format.2.2.0