Giter VIP home page Giter VIP logo

jacob's People

Contributors

ahmedshuhel avatar canna71 avatar parro-it avatar parroit avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

jacob's Issues

Car return character doesn't let jacob run in Linux shell

Calling jacob from the the command line gives this:
/usr/bin/env 'node\r' : No such file or directory

This is because there's an extra \r in the file:
jacob/cmd/cmd.js

At first line, when it tries to use the shebang:
#! /usr/bin/env node

If anybody has this issue, you can fix it with vim:
:set ff=unix

Possible to use Jacob without Node.js?

I'm working on a single page web app where I would love to include Jacob as a client side service. The current code contains a lot of requires (node includes). I do not require filesystem - just generating compilers/interpreters from grammar strings on the fly. Is this technical possible or is this waste of time if I try to delete all node.js dependencies?

Lexer issue

Hi,
I spoted a bug in the Lexer:

This example expose the issue:

If we have those tree rules:

<> abc {console.log(`abc = ${this.jjtext}`);}
<> a {console.log(`a = ${this.jjtext}`);}
<> b {console.log(`b = ${this.jjtext}`);}

And we set the input : "abcab"

We expect to get:

abc = abc
a = a
b = b

But we get:

abc = abc
a = ab

Jacob is, in my oppignion, the best parser generator avalible for the platform if this bug could be fixed it would be awesome.

Cheers

undefined number of arguments

Hi, I just recently discovered Jacob and the world of lexers/parsers so I don't know many about them.

I have a parser that allows me to parse a function call that looks like that:

exec myfunc(myvar)
exec myfunc("mytext")

Expression = 'DEFINED' 'ID' 'LBRACE' ('ID'|'MESSAGE') 'RBRACE' function(defined, id, _){console.log(defined, id, [...arguments].slice(3, -1));}

however, this parser only allow me to have one argument. I tried using regex to allow more but got rejected by the compiler.
Is it possible? Is there another way I didn't think of?

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.