CJex / regulex

:construction: Regular Expression Excited!
https://jex.im/regulex/
MIT License
5.71k stars 756 forks source link

Add support for ES6 Unicode #17

Open CJex opened 9 years ago

CJex commented 9 years ago

Support /\u{12345}/u .

pouyakary commented 7 years ago

before I start

@JexCheng hi! First of all we owe you a super big thanks. We're making a visual language that compiles to RegEx in order to make it more clean to write complex regexp. And we had to write a reverse compiler to compile back regexp into my language. In that project we extensively used Regulex's parser. (we also have a TypeScript deceleration file for regulex that I'm working on and will soon contribute it back to you). So we wanted to say thank for you awesome parser. We tried many projects and none of them had an AST better than yours, without your parser we had to go so much more far to have it.

\p{ .. } / \P{ ... } are not supported in Regulex

As in RegExp Unicode Property Escapes by TC39 there are now some more Unicode sets that you can add with \p{ .. } and exclude with \P{ ... }:

/\p{Decimal_Number}/u

There are some good documentations here. As we are now heavily dependent on Regulex's parser we want to invest on it. If you like we like to contribute back. So we like to handle this. Just we would love to know how you like the AST structure for this new elements to be.

CJex commented 7 years ago

@pmkary This project will be fully rewrited in another compile to js X language(but keep AST compatible), so currently these features would not be made in this version.

pouyakary commented 7 years ago

Thank you. So I think we have to fork the project. Looking forward towards your new compiler.

PeterlitsZo commented 2 years ago

How about now :eyes: