mirror of
https://github.com/corda/corda.git
synced 2025-03-12 23:44:13 +00:00
Originally, this developer wanted to (ab)use the PikeVM with a hand-crafted program and an added "callback" opcode to parse the regular expressions. However, this turned out to be completely unnecessary: there are no ambiguities in regular expression patterns, so there is no need to do anything else than parse the pattern, one character at a time, into a nested expression that then knows how to write itself into a program for the PikeVM. For the moment, we still hardcode the program for the regular expression pattern demonstrating the challenge with the prioritized threads because the compiler cannot yet parse reluctant operators. Signed-off-by: Johannes Schindelin <johannes.schindelin@gmx.de>