87cab44fb8
Fixed #135: Change services service priorities Fixed #136: ErrorManager: Implement recognize_error Fixed #137: BNFNodeParser : Error when parsing regex with sub parsers Fixed #138: get_last_errors(): real errors sources are lost Fixed #139: OneError return value removes the origin of the error Fixed #140: Concept variables are not correctly handled when parsing sub expression Fixed #143: Implement has_unknown_concepts()
9 lines
505 B
Plaintext
9 lines
505 B
Plaintext
push_ontology("english")
|
|
def concept x is a string pre is_question() as isinstance(x, str)
|
|
def concept x is an integer pre is_question() as isinstance(x, int)
|
|
def concept x is an int pre is_question() as isinstance(x, int)
|
|
def concept x starts with y pre is_question() where x is a string as x.startswith(y)
|
|
def concept sha256 from bnf r'[a-f0-9]{64}'
|
|
def concept sha512 from bnf r'[a-f0-9]{128}'
|
|
|
|
def concept explain x where isinstance(x, sha256) as get_results_by_digest(x, id=0, depth=2) auto_eval True |