GithubHelp home page GithubHelp logo

codewitch-honey-crisis / reggie Goto Github PK

View Code? Open in Web Editor NEW
11.0 1.0 3.0 11.4 MB

A regular expression code generator for C#

Home Page: https://www.codeproject.com/Articles/5315958/Reggie-A-Non-Backtracking-Streaming-Regular-Expression-Code

License: MIT License

C# 87.69% Ragel 0.05% DIGITAL Command Language 0.10% TSQL 12.16%
regex regular-expression code-generator code-generation regular-expressions regular-expression-engine

reggie's Introduction

Reggie

Reggie is a DFA (non-backtracking) regular expression code generator for C#.

Rather than a regular expression engine, Reggie generates C# code to match text directly, based on inputted regular expressions.

It is essentially a tool to transform non-backtracking regular expressions into C# code.

The advantage of using it over .NET's intrinsic regular expression engine is that this engine will work over arbitrary forward only streams of text, exposed via IEnumerable<char> or TextReader without needing the input to be loaded into memory.

Furthermore, since it doesn't backtrack, it also performs better generally in many cases, although in certain situations Microsoft's can overtake this one. It all depends on the scenario.

Since the generated output is pure C#, these don't impact application load times.

There are several binaries in the build directory. These are necessary to support the build process, and are not used at runtime. They are safe, and may be decompiled using .NETpeek or similar if you don't trust them.

Each has a codeproject.com article over at that site. They are safe.

reggie's People

Contributors

codewitch-honey-crisis avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar

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.