forked from GitHub/gf-core
Defined Tree type and moved parsed elements type to Tree
This commit is contained in:
@@ -2,7 +2,8 @@
|
||||
import gf
|
||||
query = gf.read_pgf("Query.pgf")
|
||||
lang = gf.read_language('QueryEng')
|
||||
print 'start category:',query.startcat()
|
||||
cat = query.startcat()
|
||||
print 'start category:',cat
|
||||
lexed = "is 2 prime"
|
||||
print "Parsing '%s':" % lexed
|
||||
for e in query.parse(lexed, lang):
|
||||
|
||||
Reference in New Issue
Block a user