Giter Club home page Giter Club logo

sedlying's Introduction

Sedlying - sedlex buffers for marking at boundary codepoints

Sedlex buffers which ignore mark requests at non-boundary codepoints. This means they lie about exactly adhering to the interface required by sedlex.

This needs a version of sedlex which allows for marks to be ignored. In particular, if there are no transitions out of a DFA state, sedlex should mark with a value and immediately backtrack instead of returning the value. You can find an appropriate fork of sedlex in the mark-ignore branch of this repo.

Use with Care

These buffers will only prevent markings from being performed at non-boundary points, the sedlex regular expressions still work at the codepoint level. So even with an input with boundaries only at grapheme clusters, "g\u{308}" will match the regular expression "g", any even though users generally percieve "g\u{308}" to be a single character.

Installing

You can install the package with:

opam pin add sedlying https://github.com/ifazk/sedlying.git

Development

To run tests, you are going to need uugen and a patched version of sedlex.

opam pin add sedlex https://github.com/ifazk/sedlex.git#mark-ignore
opam pin add uugen https://github.com/ifazk/uugen.git

Documentation

The API documentation can be found here.

LICENSE

Written in 2019 by Ifaz Kabir

This project uses the MIT license. LICENSE.txt for details.

Acknowledgements

Some parts of the source code are adapted from sedlex.

sedlying's People

Contributors

ifazk 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.