2011-08-30 7 views
0

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 . 
?- 

아무도 설명 할 수 있습니까? 어떤 조언을

많은 감사,

답변

5

당신은 당신의 쿼리에 추가 쉼표가 있습니다. 해야합니다.

body(Body, Miles, _, _, _), Miles > 100. 
+0

감사합니다. 어떻게 알 수 있습니까? – ant2009

관련 문제