I am mostly doing this to just practice improving code generation on an easier target than C. Since I can run the tests under python I have good confidence the changes make sense. Also, the generated code is fairly easy to read.
With this PR, these examples:
def starts_with_foo(s): s matches "foo${_}"
def ends_with_foo(s): s matches "${_}foo"
def contains_foo(s): s matches "${_}foo${_}"
def contains_foo_bar(s): s matches "${_}foo${_}bar${_}"
I am mostly doing this to just practice improving code generation on an easier target than C. Since I can run the tests under python I have good confidence the changes make sense. Also, the generated code is fairly easy to read.
With this PR, these examples:
compile to: