This paper addresses efficient parsing in the context of logical inference for the purpose of using logic programming languages
in compiler writing. A bottom-up, deterministic parsing mechanism is formulated for “bounded right context” grammars, a subclass
of LR(k) grammars with characteristics amenable to declarative parser specification. A working parser generator for λProlog
is described, although the basic parsing mechanism is applicable to logic programming in general.