Code Monkey home page Code Monkey logo

nmfu's Introduction

nmfu logo banner

nmfu


the "no memory for you" "parser" generator


PyPI - License PyPI PyPI - Python Version Jenkins Jenkins tests Jenkins Coverage Read the Docs

nmfu attempts to turn a parser specified as a procedural matching thing into a state machine, parsing protocols with minimal memory and in arbitrarily sized chunks.

There are a number of examples present in the examples/ folder, as well as documentation and a tutorial available on readthedocs.

Plugins

There is a vim plugin available which adds syntax highlighting for .nmfu files at mincrmatt12/nmfu-vim, as well as a pygments lexer plugin at mincrmatt12/nmfu-pygments.

License

NMFU is licensed under the GPLv3. Copyright (C) 2020-2023 Matthew Mirvish.

nmfu's People

Contributors

mincrmatt12 avatar

Stargazers

Tyler Tian avatar  avatar

Watchers

James Cloos avatar  avatar  avatar

nmfu's Issues

Condition points with wait matches work poorly

if statements are implemented with proxy nodes, which while functional requires guesstimating which sets of characters count as "valid" to forward them before joining DFAs.

This goes somewhat wrong with the wait match, which intentionally sets itself up as its own error handler (since otherwise
any usage of it would be ambiguous).

There are two separate problems here:

  • Using a wait match in an if body does not work.
  • Doing so silently does the wrong thing.

Both of these issues should be fixed by 0.5.0.

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.