mirror of
https://github.com/GrammaticalFramework/gf-core.git
synced 2026-10-26 00:43:17 -06:00
word completion in the C parser now returns information about the function which generates the token
This commit is contained in:
1 parent
ef071d9157
commit
301b100988
5 files changed
+19
-5
No files matched your search
@@ -1163,7 +1163,10 @@ Iter_fetch_token(IterObject* self)
|
||||
|
||||
PyObject* py_tok = PyString_FromString(tp->tok);
|
||||
PyObject* py_cat = PyString_FromString(tp->cat);
|
||||
PyObject* res = Py_BuildValue("(f,O,O)", tp->prob, py_tok, py_cat);
|
||||
PyObject* py_fun = PyString_FromString(tp->fun);
|
||||
PyObject* res = Py_BuildValue("(f,O,O,O)", tp->prob, py_tok, py_cat, py_fun);
|
||||
Py_DECREF(py_fun);
|
||||
Py_DECREF(py_cat);
|
||||
Py_DECREF(py_tok);
|
||||
|
||||
return res;
|
||||
|
||||
Reference in new issue
Block a user