sent -> s in the test grammar, add rule printing function