Git Product home page Git Product logo

beans's People

Contributors

jthulhu avatar

Stargazers

 avatar  avatar  avatar

Watchers

 avatar

Forkers

quibo

beans's Issues

Remove dangerous recursive calls

There are currently two functions that could blow-up the stack. One in the regex module, the other in the parser.

Both of these could be replaced with a loop, which could prevent the danger.

Improving regex engine detection of static strings

The regex engine needs to be able to detect at least prefix static strings from regex to do an initial step in which it removes from the available possible matches the regex that do not even start with the good prefix.

Generated files are not explicit

Generated files should begin with something like // This file has been generated using 'beans' from the files xx and yy; DO NOT EDIT THIS FILE DIRECTLY, so people unfamiliar with the library can still know what to look at to do changes to those files.

Improving performance of Location creation

The regex engine's matching function should take as parameter the location of the last matched string in the stream, and the Match object returned should have the location of the matched string in the stream.
This would add no asymptotic overhead to creating locations, as opposed to the current way which adds a O(ln(n)) overhead for each token.

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.