-
Notifications
You must be signed in to change notification settings - Fork 168
RFC: Schema parser #45
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
Conversation
f8251ce
to
429f22a
Compare
429f22a
to
7591a42
Compare
Planning to hold off merging this until folks get a chance to return from the holidays. |
yylex_destroy(scanner); | ||
return result; | ||
} | ||
|
||
std::unique_ptr<ast::Node> parseFile(FILE *file, const char **error) { | ||
std::unique_ptr<ast::Node> parseString(const char *text, const char **error) { | ||
return parseStringImpl(text, error, false); |
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.
nit: it's hard to guess what is the meaning of the boolean without reading a type signature of parseStringImpl, so it's usually a good practice to leave a comment /* enableSchema */
right next to a parameter.
@@ -1,6 +1,6 @@ | |||
#line 1 "lexer.cpp" | |||
#line 1 "/Users/swolchok/libgraphqlparser/lexer.cpp" |
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 probably not something you'd like to leave :)
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.
Ugh, this keeps cropping up. cmake seems to run the tools by passing their absolute path. thanks.
7591a42
to
af91437
Compare
This adds support for the RFC schema language additions in graphql/graphql-spec#90 .
Should fix #22 when complete.