I know that it is possible to define definite clause grammars in Picat, but the syntax is much more verbose than in Prolog. In Prolog, definite clause grammars can be written more concisely:
pronoun --> him,her,it.
Surprisingly, Picat's official tutorial doesn't mention a syntax for definite clause grammars. Would it be possible to use Prolog's DCG notation in Picat?
I have an idea. This is simple DCG converter for Picat. This code is example file of DCG like format.
Next code is main.pi file.
Next is converted code. Thank you for deleted and comments.