assemblyscript-regex
assemblyscript-regex copied to clipboard
A regex engine for AssemblyScript
I'd consider this library to be a useable POC (proof of concept) in its current state. The implementation is based around the description of regex as provided by the [MDN...
I guess better use `new RegExp("[\w]+")` instead pre-compiled `/[\w]+/` for example
Add CI tests that ensure: - [x] unit tests all pass - [x] code is correctly formatted - [ ] the code can be executed both as AS and TS
https://github.com/ColinEberhardt/assemblyscript-regex/blob/75f1d474a60a6b4334b2a1cd367b7a90b0db026d/assembly/regexp.ts#L153-L157 The RegExp constructor is exported as `exports["RegExp#constructor"]` with a signature of `(this_: RegExp, regex: string, flags: string) => RegExp` (all pointers, the `this_` argument is typically `0` to indicate...