1
0
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:
kevin.kofler
2010-05-16 21:12:01 +00:00
parent ee1c419979
commit df98e9b442
2 changed files with 2 additions and 1 deletions

View File

@@ -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

View File

@@ -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");