Permalink
Browse files

removed stray debug print

  • Loading branch information...
Michael Joseph Walsh
Michael Joseph Walsh committed Apr 9, 2012
1 parent 45817e7 commit 8b182952b687678a04469d57e11f36af14915481
View
@@ -2,7 +2,7 @@
<?eclipse-pydev version="1.0"?>
<pydev_project>
-<pydev_property name="org.python.pydev.PYTHON_PROJECT_INTERPRETER">Default</pydev_property>
+<pydev_property name="org.python.pydev.PYTHON_PROJECT_INTERPRETER">Homebrew installed Python 2.7</pydev_property>
<pydev_property name="org.python.pydev.PYTHON_PROJECT_VERSION">python 2.7</pydev_property>
<pydev_pathproperty name="org.python.pydev.PROJECT_SOURCE_PATH">
<path>/Intellect</path>
View
@@ -616,9 +616,6 @@ def eval(self, agenda):
# put the policy attributes into the policy's global namespace
for attributeStmt in self.attributeStmts:
-
- print "attributeStmt = {0}".format(attributeStmt)
-
# check for issues
for atom in [atom for atom in Node.filter_to_list(Atom, attributeStmt.expressionStmt.children[0]) if len(atom.children) is 1]:
if atom.first_child() in keyword.kwlist:
View
@@ -30,4 +30,4 @@
__author__ = "Michael Josephh Walsh"
-VERSION = (1, 4, 5)
+VERSION = (1, 4, 6)
@@ -3,6 +3,10 @@ from intellect.examples.rulesfest.BuyOrder import BuyOrder
import logging
import random
+'''
+Ruleset based on the nursery rhyme...
+'''
+
rule "Start policy":
then:
log("Policy is being reasoned over.", "example", logging.DEBUG)
@@ -266,10 +266,10 @@ comparisonOperation returns [object] // returns a ComparisonOperation object
| LESSEQUAL { $object = ComparisonOperation( $LESSEQUAL.text ) }
| ALT_NOTEQUAL { $object = ComparisonOperation( $ALT_NOTEQUAL.text ) }
| NOTEQUAL { $object = ComparisonOperation( $NOTEQUAL.text ) }
- | 'in' { $object = ComparisonOperation( "in" ) }
- | 'not' 'in' { $object = ComparisonOperation( "not in" ) }
- | 'is' { $object = ComparisonOperation( "is" ) }
- | 'is' 'not' { $object = ComparisonOperation( "is not" ) } )
+ | IN { $object = ComparisonOperation( "in" ) }
+ | NOT IN { $object = ComparisonOperation( "not in" ) }
+ | IS { $object = ComparisonOperation( "is" ) }
+ | IS NOT { $object = ComparisonOperation( "is not" ) } )
;
expression returns [object] // returns Exrpession object

0 comments on commit 8b18295

Please sign in to comment.