Switch from scheme to lua
Add rule transitions
Add basic regex compilation