kritixilithos / Carrot

Carrot is a simple string-based esolang whose memory is on a tape of tapes
MIT License
8 stars 1 forks source link

JavaScript regex is limited #2

Open kritixilithos opened 7 years ago

kritixilithos commented 7 years ago

The title says it all. For example, lookbehinds are not supported in JS regex. And since Carrot is a string-based language that relies on regex, JS regex will only limit Carrot. To fix this, either I need to create an interpreter in Java, or create a regex engine myself (both of which are unlikely). This is undecided at the moment, probably will look into it once Carrot has more functions.

somebody1234 commented 6 years ago

If you don't mind porting to node then perl-regex would work

somebody1234 commented 6 years ago

It doesn't seem that hard to port to Java though (although clearly Perl regex is superior :P)

kritixilithos commented 6 years ago

@somebody1234 It is written in node as of now

kritixilithos commented 6 years ago

Ehh, Java is unlikely now, I gotten use to JS's hackiness :P Thanks I will take a look into that package

somebody1234 commented 6 years ago

BTW, it's just Perl 5 bindings