Syntax error: End of file in quoted atom

3,438 views
Skip to first unread message

Himani

unread,
Mar 7, 2016, 10:27:28 AM3/7/16
to SWI-Prolog
hii 

I am new to Prolog. I am getting this error again and again. Syntax error: End of file in quoted atom. Please help.

Anne Ogborn

unread,
Mar 7, 2016, 10:53:58 AM3/7/16
to Himani, SWI-Prolog
you have an unmatched single quote somewhere in your file.

Unlike most languages, Prolog has 'atoms',  Identifiers that start with lowercase are atoms

i_am_an_atom

but you can also make an atom by enclosing anything i single quotes

'I AM AN ATOM TOO!!!!'



the built in editor can help.  load your program and query 

?- edit.

the editor will stop coloring at the start of the long atom



From: Himani <mittal...@gmail.com>
To: SWI-Prolog <swi-p...@googlegroups.com>
Sent: Monday, March 7, 2016 7:27 AM
Subject: [SWIPL] Syntax error: End of file in quoted atom

hii 

I am new to Prolog. I am getting this error again and again. Syntax error: End of file in quoted atom. Please help.
--
You received this message because you are subscribed to the Google Groups "SWI-Prolog" group.
To unsubscribe from this group and stop receiving emails from it, send an email to swi-prolog+...@googlegroups.com.
Visit this group at https://groups.google.com/group/swi-prolog.
For more options, visit https://groups.google.com/d/optout.


Reply all
Reply to author
Forward
0 new messages