Skip to content

Commit

Permalink
removed stray debug print
Browse files Browse the repository at this point in the history
  • Loading branch information
Michael Joseph Walsh committed Apr 9, 2012
1 parent 45817e7 commit 8b18295
Show file tree
Hide file tree
Showing 5 changed files with 10 additions and 9 deletions.
2 changes: 1 addition & 1 deletion .pydevproject
Original file line number Diff line number Diff line change
Expand Up @@ -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>
Expand Down
3 changes: 0 additions & 3 deletions intellect/Node.py
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down
2 changes: 1 addition & 1 deletion intellect/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -30,4 +30,4 @@

__author__ = "Michael Josephh Walsh"

VERSION = (1, 4, 5)
VERSION = (1, 4, 6)
4 changes: 4 additions & 0 deletions intellect/examples/rulesfest/rulesets/example.policy
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down
8 changes: 4 additions & 4 deletions intellect/grammar/Policy.g
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 8b18295

Please sign in to comment.