Comments (5)
-
What's your build environment? I've got
/usr/local/include/graphqlparser/AstVisitor.h
in my install, which the quoted import should find IIUC. -
That is an excellent question. I'm not sure how that got there. I'll have to look into it.
-
Answered on Twitter -- https://twitter.com/ScottWolchok/status/702974901511000064
-
It's an example. You can use it if you want to just process the AST as JSON, but if your program is written in C++ or in a language capable of directly calling C or C++ APIs, you'll get better performance using the library that way. I'm not aware of a real server implementation that uses libgraphqlparser directly right now :(
from libgraphqlparser.
- Yep, its not installing it.
Here is Ubuntu 14.04 VM install:
which oddly added stuff to /var/empty
. After moving stuff to their appropriate places in /usr/local
then I have this
gar@osboxes:/usr/local/include/graphqlparser)-(88K:11)
> ls
./ AstNode.h GraphQLParser.h lexer.h location.hh position.hh syntaxdefs.h
../ c/ JsonVisitor.h libgraphqlparser/ parser.tab.hpp stack.hh
which doesn't have AstVisitor.h.
For completeness here is the OS X
install:
- thanks
- Yes exactly but where are the method declarations? How can I know what methods are available on this object, I'm looking around and can't find it.
which related to 4
- I'm interested in using this directly for the directly via bindings but related to 3 I can't find the interface of a node. From the example I know it has a
get
method but what else? I looked through the Headers but can't seem to find it. Can you provide another example of where you're pulling something out of the parsed AST instead of turning it into JSON and giving to someone else to handle. I see the C based example but would prefer to stay with C++.
from libgraphqlparser.
- My install was stale. I patched installation and pushed to master; we now actually install
Ast.h
andAstVisitor.h
. Thanks for the bug report and sorry it took me a few days to get around to this.
3 & 4) There are very few methods you can call onNode
, and they're all there in the header -- you getaccept
to apply a visitor andgetLocation
to get the source location. Methods available on the subclasses are inAst.h
, which should now be installed correctly.
from libgraphqlparser.
Thanks! This lets me continue my project.
from libgraphqlparser.
I was just catching up --
a real server implementation that uses libgraphqlparser directly
🎉 I finally got a proper Ruby extension going: https://github.com/rmosolgo/graphql-libgraphqlparser-ruby
It even works on Heroku, thanks to https://github.com/goco-inc/heroku-buildpack-libgraphqlparser
So, thanks for the great project!
from libgraphqlparser.
Related Issues (20)
- Why not use PEGTL instead?
- New version? HOT 8
- SONAME versioning
- Parsing query with variables HOT 1
- Compilation failed for libgraphqlparser (graphqlparser & lexer.cpp) HOT 2
- Update master to main
- Improve Readme?
- Create release to include bugfixes resolved on master HOT 1
- graphqlparser_bison: parser.ypp:8.10-12: error: invalid version requirement: 3 HOT 2
- Missing support for descriptions
- Missing support for extending interfaces
- Missing support for types implementing multiple interfaces HOT 1
- Locations not properly updated when parsing multi-line block strings
- CONTRIBUTING.md still mentions license to be BSD HOT 1
- Checked in Flex / Bison files are under GPL license HOT 3
- Build fails with latest ctypesgen HOT 1
- Missing support for extending schemas
- Remove "facebook" namespace from cpp? HOT 1
- Missing support for extending interfaces
- Missing support for extending input object types
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from libgraphqlparser.