1
0
forked from GitHub/gf-core

Defined Tree type and moved parsed elements type to Tree

This commit is contained in:
jordi.saludes
2010-06-13 15:55:25 +00:00
parent 3e5d4381a0
commit 0b1ea70bb6
2 changed files with 13 additions and 5 deletions
+2 -1
View File
@@ -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):