Code Monkey home page Code Monkey logo

Comments (5)

swolchok avatar swolchok commented on May 5, 2024
  1. What's your build environment? I've got /usr/local/include/graphqlparser/AstVisitor.h in my install, which the quoted import should find IIUC.

  2. That is an excellent question. I'm not sure how that got there. I'll have to look into it.

  3. Answered on Twitter -- https://twitter.com/ScottWolchok/status/702974901511000064

  4. 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.

fxfactorial avatar fxfactorial commented on May 5, 2024
  1. Yep, its not installing it.

Here is Ubuntu 14.04 VM install:

http://pastebin.com/QJXFZvpy

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:

http://pastebin.com/Ji9SRj0A

  1. thanks
  2. 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

  1. 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.

swolchok avatar swolchok commented on May 5, 2024
  1. My install was stale. I patched installation and pushed to master; we now actually install Ast.h and AstVisitor.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 on Node, and they're all there in the header -- you get accept to apply a visitor and getLocation to get the source location. Methods available on the subclasses are in Ast.h, which should now be installed correctly.

from libgraphqlparser.

fxfactorial avatar fxfactorial commented on May 5, 2024

Thanks! This lets me continue my project.

from libgraphqlparser.

rmosolgo avatar rmosolgo commented on May 5, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.