flix / flix

The Flix Programming Language
https://flix.dev/
Other
2.05k stars 143 forks source link

Add Regular Expression Constants #5634

Closed magnus-madsen closed 1 year ago

magnus-madsen commented 1 year ago

(Later we can extend the compiler to cache the result of Pattern.compile somewhere.)

magnus-madsen commented 1 year ago

@stephentetley Would you be interested in this? (Otherwise I can ask Jakob.)

stephentetley commented 1 year ago

Thanks Magnus - I'd be open to trying in about two months, but I really need to get my libraries working again with Flix head so that's my immediate priority.

magnus-madsen commented 1 year ago

Of course. Sorry for all the churn. Hopefully the package manager, which arrives soon, will help a bit.

stephentetley commented 1 year ago

I've started looking at this and have gone through the parser and weeder so far.

mlutze commented 1 year ago

Thanks Stephen! Feel free to open a PR while it's in progress.

stephentetley commented 1 year ago

Thanks Matthew, I've just made a WIP PR.

stephentetley commented 1 year ago

The PR now compiles and passes tests: #5707

magnus-madsen commented 1 year ago

Fixed in master.