trealla-prolog / trealla

A compact, efficient Prolog interpreter written in plain-old C.
MIT License
268 stars 13 forks source link

Operator not recognised #592

Closed flexoron closed 2 weeks ago

flexoron commented 2 weeks ago
?- op(1,fy,.).
   true.
?- [user].
.(a).
   true.
?- .X.
Error: syntax error, missing operand, user:1 % unexpected
infradig commented 2 weeks ago

Interesting...

~/trealla (devel) $ tpl
?- op(1,fy,.).
   true.
?- [user]. .(a). end_of_file.
   true.
?- .(A).
   A = a.
?- 
flexoron commented 2 weeks ago

v2.56.4

?- .X.
   X = a.
?- ._.
Error: syntax error, missing operand to infix, user:1 % unexpected
?-