非法学期开始
GNU Emacs 23.2.1 prolog-mode-version 是“prolog.el”中定义的变量。它的值是“1.22”
我查阅了以下文件:
body(mercury, 36, small, none, none).
body(venus, 67, small, atmosphere, none).
body(earth, 93, small, atmosphere, none).
body(moon, 93, small, none, none).
body(mars, 141, small, atmosphere, none).
body(jupiter, 489, large, atmosphere, rings).
但是,当我执行以下操作时:
body(Body, Miles, _, _, _,) , Miles > 100.
我收到以下错误,这对我来说似乎完全合法:
?- body(Body, Miles, _, _, _,) , Miles > 100.
ERROR: Syntax error: Illegal start of term
ERROR: body(Body, Miles, _, _, _,
ERROR: ** here **
ERROR: ) , Miles > 100 .
?-
任何人都可以解释我出错了吗?
非常感谢您的任何建议,
GNU Emacs 23.2.1
prolog-mode-version is a variable defined in `prolog.el'. Its value is "1.22"
I have consulted the following file:
body(mercury, 36, small, none, none).
body(venus, 67, small, atmosphere, none).
body(earth, 93, small, atmosphere, none).
body(moon, 93, small, none, none).
body(mars, 141, small, atmosphere, none).
body(jupiter, 489, large, atmosphere, rings).
However, when I do the following:
body(Body, Miles, _, _, _,) , Miles > 100.
I get the following error, it seems perfectly legal to me:
?- body(Body, Miles, _, _, _,) , Miles > 100.
ERROR: Syntax error: Illegal start of term
ERROR: body(Body, Miles, _, _, _,
ERROR: ** here **
ERROR: ) , Miles > 100 .
?-
Can anyone explain I am going wrong?
Many thanks for any advice,
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
您的查询中多了一个逗号。
应该是
You have an extra comma in your query.
It should be