Code Monkey home page Code Monkey logo

rewrite.js's People

Contributors

contrast-zone avatar

Stargazers

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

Watchers

 avatar  avatar

Forkers

douglasamante

rewrite.js's Issues

Unit tests

It may be useful to add tests using a testing library like Jest to add some unit test. While tests may ensure that the code keeps working, it's also useful for new developers to see how to use the library by using the existing unit tests as examples of whats possible.

Spilt up parsing and the rewrite engine into two files

I can imagine a lot of useful use cases where I care about having a rewrite engine, but not a whole lot about a specific DSL. Let's for example say that I want to implement a new computer aided algebra system, or an optimisation in a compiler stage; in those cases I'd like to reuse an existing rewrite engine so that I don't have to reinvent the wheel, but I don't want to write a new DSL since it should work with the product I'm writing (like a CAS or a compiler).

The DSL is mostly useful for people who want to use the tool as a standalone tool and not as a library in their own application. If every JavaScript library implemented their own DSL with a custom parser then you would no longer be writing JavaScript but instead a bunch of different DSL's.

This is my biggest gripe with rewrite systems like Maude, you spend more time learning the specific language than actually using it for anything productive, and its non-obvious how to actually integrate it in a product and not just as a toy.

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.