lucaswiman / revex Goto Github PK
View Code? Open in Web Editor NEWREVerse EXpressions: example generation from regular expressions
License: Other
REVerse EXpressions: example generation from regular expressions
License: Other
Probably using Boltzmann sampling on PEGs from parsimonious.
See:
Added an expected failure test in 690d155. The regex is [ -\/:-@\[-`\{-~]
via https://twitter.com/mountain_ghosts/status/847130837644709888
These features are regular, though are a bit difficult to map from the parse tree directly onto a derivative. In particular the following syntaxes:
(?=...)
Matches if ... matches next, but doesn’t consume any of the string. This is called a lookahead assertion. For example, Isaac (?=Asimov) will match 'Isaac ' only if it’s followed by 'Asimov'.(?!...)
Matches if ... doesn’t match next. This is a negative lookahead assertion. For example,Isaac (?!Asimov)
will match 'Isaac ' only if it’s not followed by 'Asimov'.(?<=...)
Matches if the current position in the string is preceded by a match for ... that ends at the current position. This is called a positive lookbehind assertion.(?<=abc)def
will find a match in abcdef, since the lookbehind will back up 3 characters and check if the contained pattern matches. The contained pattern must only match strings of some fixed length, meaning thatabc
ora|b
are allowed, buta*
anda{3,4}
are not.
Also add support for the \b
boundary marker.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.