forked from GitHub/gf-core
Build Query.pgf in build-gfctest.sh and look for it in the current directory
This commit is contained in:
@@ -16,5 +16,6 @@
|
||||
# You should have received a copy of the GNU Lesser General Public
|
||||
# License along with this library; if not, see <http://www.gnu.org/licenses/>.
|
||||
|
||||
gf --make ../../examples/tutorial/embedded/QueryEng.gf &&
|
||||
ghc --make -fglasgow-exts -O2 -no-hs-main $* -c PGFFFI.hs &&
|
||||
ghc --make -fglasgow-exts -O2 -no-hs-main $* gfctest.c gf_lexing.c PGFFFI.hs -o gfctest
|
||||
|
||||
@@ -24,7 +24,7 @@ int main(int argc, char *argv[])
|
||||
{
|
||||
gf_init(&argc, &argv);
|
||||
|
||||
GF_PGF pgf = gf_readPGF("../examples/tutorial/embedded/Query.pgf");
|
||||
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");
|
||||
|
||||
Reference in New Issue
Block a user