Added bnf when adding a new concept + Started logging filtering

This commit is contained in:
2019-12-13 20:26:11 +01:00
parent 75c8793d53
commit c668cc46d2
29 changed files with 1487 additions and 190 deletions
+3 -4
View File
@@ -18,13 +18,12 @@ class ConceptEvaluator(OneReturnValueEvaluator):
def matches(self, context, return_value):
return return_value.status and \
return_value.who.startswith(BaseParser.PREFIX) and \
isinstance(return_value.value, Concept) and \
not isinstance(return_value.value, ParserResultConcept) # because there are specific evaluators
isinstance(return_value.value, ParserResultConcept) and \
isinstance(return_value.value.value, Concept)
def eval(self, context, return_value):
sheerka = context.sheerka
concept = return_value.value
concept = return_value.value.value
# pre condition should already be validated by the parser.
# It's a mandatory condition for the concept before it can be recognized