Compiling and using finite-state syntactic rules | Synapse