More sophisticated python types

This commit is contained in:
jordi.saludes
2010-06-12 20:28:22 +00:00
parent b8bbb57b85
commit b8a022e3a8
2 changed files with 147 additions and 99 deletions

View File

@@ -1,9 +1,9 @@
#!/usr/bin/env python
from gf import *
query = read_pgf("Query.pgf")
lang = read_lang('QueryEng')
lang = read_language('QueryEng')
cat = startcat(query)
lexed = "is 2 prime"
print "Parsing '%s':" % lexed
for e in parse(query, lang, cat, lexed):
print '\t',show_expr(e)
print '\t',e