Commits

Pierre Carbonnelle committed 2d0bb04 Draft

Edited online

Comments (0)

Files changed (1)

 from pyDatalog import pyDatalog
 
 pyDatalog.load("""
-    + parent(bill,'John Adams')
+    + parent(bill,'John Adams') # bill is the parent of John Adams
 """)
 }}}
-Note that the unquoted names must start with lower cases, and that quotes must be used for string with spaces or starting with an uppercase letter.  
+Note that the unquoted names must start with lower cases, and that quotes must be used for string with spaces or starting with an uppercase letter.  Comments, line continuation and constant strings adhere to the [[http://docs.python.org/reference/lexical_analysis.html|lexical rules of python]].
 
 You can now query our database of facts :
 {{{