mirror of
https://github.com/GrammaticalFramework/gf-core.git
synced 2026-05-25 10:48:54 -06:00
Added gf-lexing.* to c-bindings.
This commit is contained in:
@@ -18,7 +18,7 @@
|
||||
#include <stdio.h>
|
||||
#include <stdlib.h>
|
||||
#include "pgf.h"
|
||||
// #include "gf_lexing.h"
|
||||
#include "gf_lexing.h"
|
||||
|
||||
int main(int argc, char *argv[])
|
||||
{
|
||||
@@ -27,10 +27,10 @@ int main(int argc, char *argv[])
|
||||
GF_PGF pgf = gf_readPGF("Query.pgf");
|
||||
GF_Language lang = gf_readLanguage("QueryEng");
|
||||
GF_Type cat = gf_startCat(pgf);
|
||||
// char *lexed = gf_stringOp("lextext", "Is 2 prime");
|
||||
char *lexed = "is 23 odd";
|
||||
char *lexed = gf_stringOp("lextext")("Is 2 prime");
|
||||
// char *lexed = "is 23 odd";
|
||||
GF_Tree *result = gf_parse(pgf, lang, cat, lexed);
|
||||
//free(lexed);
|
||||
free(lexed);
|
||||
GF_Tree *p = result;
|
||||
if (*p) {
|
||||
do {
|
||||
|
||||
Reference in New Issue
Block a user