0
Most adventure games, to keep the parser simple, might just have some simple rules, which accepts verb + noun or a cardinal direction, and simple things like that. In Backus-Naur Form, a simple parser might look like:
s => D
s => v
s => v object
object => noun
object => ADJ NOUN
ADJ => {red, bi...