Fixed #55 : DefConceptParser: failed to recognize concept

Fixed #62 : DefConceptParser: parsing error
Fixed #64 : DefConceptParser: Failed to parse when too many concept keyword
Fixed #65 : DefConceptParser : Add auto_eval keyword
Fixed #66 : DefConceptParser : Add def_var keyword
Fixed #67 : Add get_errors()
This commit is contained in:
2021-04-13 15:15:17 +02:00
parent 81e67147e9
commit bef5f3208c
17 changed files with 838 additions and 235 deletions
+10 -1
View File
@@ -2,9 +2,9 @@
push_ontology("english")
def concept adjective
def concept color
set_isa(color, adjective)
def concept red
def concept blue
def concept orange
@@ -31,5 +31,14 @@ set_isa(black, color)
set_isa(white, color)
set_isa(grey, color)
def concept size
size is an adjective
def concept tall
tall is a size
def concept short
short is a size
def concept qualify x from bnf adjective x as set_attr(x, c:adjective:, adjective) ret x
def concept qualify x from bnf x 'is' adjective as set_attr(x, c:adjective:, adjective) ret x