leg grammar for ooc