sregex icon indicating copy to clipboard operation
sregex copied to clipboard

Serialize AST

Open turbo opened this issue 5 years ago • 0 comments
trafficstars

I've been writing a project in Lua/OR and so far relied on a custom regex implementation in Lua-Land because I need access to the AST of parsed expressions. That's not possible with the PCRE bindings in OR. It seems like sregex is one step closer because parsing, compiling, and executing are different steps, with the parser returning "a pointer to the AST" according to the readme.

Is there a way to access that AST and serialize it (to JSON or similar) for further processing?

turbo avatar Jun 19 '20 11:06 turbo