-
Notifications
You must be signed in to change notification settings - Fork 1.9k
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
Add flowconfig parser js_of_ocaml package #7698
Conversation
goodmind
commented
May 4, 2019
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.
cool! i don't know if it's your end goal or not, but this could make it possible to test flowconfig in Try Flow. (aside: if your goal is to allow config changes in Try Flow, flowconfig isn't necessary, we can discuss further)
@@ -1,14 +1,217 @@ | |||
// Partially from | |||
// https://github.com/ejgallego/jscoq/blob/2718f9caf31398704c2d84ff089e3f6f0321eada/coq-js/js_stub/str.js |
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.
this is AGPL-3+, and the part based on strstubs.c is LGPL2 + static linking exception. we will have to review license compatibility...
without looking into how hard it'd be first, i'd be more inclined to remove the uses of Str
instead. might even make sense to use a real parser (we already depend on sedlex and ocamllex) but that's a bigger project.
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.
Thanks, I'll remove it for now, I think LGPL2 is compatible with MIT, not sure about AGPL3
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.
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.
Str
also would be useful for flow.js overall, not just flowconfig 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.
Js_of_ocaml (3.6) now include all full support for Str
@@ -0,0 +1,21 @@ | |||
// Stdlib overrides until js_of_ocaml fixes it |
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.
is there an upstream github issue we can reference?
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.
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 was fixed, but I know that Flow uses old js_of_ocaml
I'm not sure about specific goal, I heard that babel needed flowconfig parsing for |
@mroch I think LICENSE was updated
Is this still doesn't work with MIT? |
My goal is to allow any js tool to write or read flowconfig, related #7771 |
/cc @mroch does LICENSE still bad one? It is LGPL2.1 now |
case 120: case 88: base = 16; i += 2; break; | ||
case 111: case 79: base = 8; i += 2; break; | ||
case 98: case 66: base = 2; i += 2; break; | ||
case 117: case 85: sign = 0; i += 2; break; |
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.
sign = 0
is not correct.
Closing since there are license issues, and we already have support for flowconfig in try-flow |