v1.2 - grammar simulator (not finished)