Eightface

by Dave Kellam

Reverse Polish Notation

Does anyone know much about prolog programming? One of the questions we’ve been given is define a predicate eval_polish/2 that evaluates reverse polish notation expressions. I can’t figure it out at all. Bah.

If you enjoyed this post, please subscribe.