GithubHelp home page GithubHelp logo

CLI tool available? about ohm HOT 6 CLOSED

blakelapierre avatar blakelapierre commented on August 24, 2024
CLI tool available?

from ohm.

Comments (6)

robertothais avatar robertothais commented on August 24, 2024 1

I also had a need for this, and recently released https://github.com/robertothais/ohm-cli.

It currently only supports validating grammars and recognizing inputs. I'd like to add support for semantic actions soon. Any feedback is welcome.

from ohm.

pdubroy avatar pdubroy commented on August 24, 2024 1

I'm going to close this as we now have an "official" CLI tool.

from ohm.

mroeder avatar mroeder commented on August 24, 2024

Hi Blake,
I think that's worth a shot and we could put something like that in bin. There currently is a script in this directory - es5bench - that does something similar: Parse dist/ohm.js against the ES5 grammar and compile it to JS code (using examples/ecmascript/compile.js). It's not a semantics but I don't see why it couldn't be.

from ohm.

alexwarth avatar alexwarth commented on August 24, 2024

I agree that it would be useful to have something like this!

On Thu, Mar 3, 2016 at 2:47 PM, mroeder [email protected] wrote:

Hi Blake,
I think that's worth a shot and we could put something like that in bin
http://../blob/master/bin. There currently is a script in this
directory - es5bench http://../blob/master/bin/es5bench - that does
something similar: Parse dist/ohm.js against the ES5 grammar and compile
it to JS code (using examples/ecmascript/compile.js
http://../blob/master/examples/ecmascript/compile.js). It's not a
semantics but I don't see why it couldn't be.


Reply to this email directly or view it on GitHub
#71 (comment).

from ohm.

justinmchase avatar justinmchase commented on August 24, 2024

It looks like this was done.

$ npm install ohm-js -g
$ ohm-js $opts

from ohm.

mroeder avatar mroeder commented on August 24, 2024

No, it actually is still in the pipeline (something that takes grammar, semantics, operation/attribute name and input and processes it).

from ohm.

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.