Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

removed stray debug print

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

0 comments on commit 8b18295

Please sign in to comment.
Something went wrong with that request. Please try again.