Closed triska closed 3 years ago
A small thing I noticed: To table a DCG non-terminal, use the non-terminal indicator F//N (note the //), for example:
F//N
//
:- table expr//1.
This is because there is no guarantee how or even whether a DCG non-terminal is compiled to a Prolog predicate.
Thanks! I've always thought it always got transpiled to arguments arity + 2. I've updated the code
A small thing I noticed: To table a DCG non-terminal, use the non-terminal indicator
F//N
(note the//
), for example:This is because there is no guarantee how or even whether a DCG non-terminal is compiled to a Prolog predicate.