当我使用时,我很困惑 prolog 中的 csymf 和 csym 有什么区别
?-code_type(X,csym).
X = 48 ;
X = 49 ;
....
?-code_type(X,csymf).
X = 65;
X = 66;
....
请有人告诉我X应该是什么,我在这部分阅读了SWI-prolog的手册,并提到
csym :Char is a letter (upper- or lowercase), digit or the underscore (_). These are valid C and Prolog symbol characters.
csymf :Char is a letter (upper- or lowercase) or the underscore (_). These are valid first characters for C and Prolog symbols.
那你能给我提供一些例子吗?
谢谢