I've got two different types of sentences to parse, but i'll just give them simples names for now. Basically, I have two parse trees
1.
A --> A , pp
A --> dv, np
2.
A --> tv, np
I hope that makes sense, I just have no idea how to program this in prolog without getting into lots of loops! Any help would be great, also please let me know if i can provide more information (first time using stack overflow)