Fixed #32 : concept groups are not correctly updated
Fixed #35 : Refactor test helper class (CNC, CC, CIO) Fixed #36 : Concept values are not used when declared with variable expression Fixed #37 : Objects in memory lose their values are restart Fixed #38 : func(a=b, c) (which is not allowed) raise an exception
This commit is contained in:
@@ -13,6 +13,7 @@ from core.rule import Rule
|
||||
from core.sheerka.ExecutionContext import ExecutionContext
|
||||
from core.sheerka.services.SheerkaMemory import SheerkaMemory
|
||||
from core.tokenizer import Token, TokenKind
|
||||
from core.var_ref import VariableRef
|
||||
from evaluators.BaseEvaluator import OneReturnValueEvaluator
|
||||
from parsers.PythonParser import PythonNode
|
||||
|
||||
@@ -332,6 +333,10 @@ class PythonEvaluator(OneReturnValueEvaluator):
|
||||
:param name:
|
||||
:return:
|
||||
"""
|
||||
|
||||
if isinstance(name, VariableRef):
|
||||
return getattr(name.obj, name.prop)
|
||||
|
||||
if isinstance(name, Rule):
|
||||
return context.sheerka.resolve_rule(context, name)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user