From 230f309317af6ae79f49091c9580223f756dbfb8 Mon Sep 17 00:00:00 2001 From: "kr.angelov" Date: Mon, 12 Mar 2012 14:25:51 +0000 Subject: libpgf: a new implementation for literals which also allows custom literals. the same mechanism is now used for the metavariables --- src/runtime/c/utils/pgf-translate.c | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'src/runtime/c/utils') diff --git a/src/runtime/c/utils/pgf-translate.c b/src/runtime/c/utils/pgf-translate.c index b2a8bae59..878e07992 100644 --- a/src/runtime/c/utils/pgf-translate.c +++ b/src/runtime/c/utils/pgf-translate.c @@ -8,6 +8,7 @@ #include #include #include +#include #include #include #include @@ -77,6 +78,10 @@ int main(int argc, char* argv[]) { status = EXIT_FAILURE; goto fail_concr; } + + // Register a callback for the literal category Symbol + pgf_parser_add_literal(from_concr, gu_str_string("Symb", pool), + &pgf_nerc_literal_callback); // Arbitrarily choose linearization index 0. Usually the initial // categories we are interested in only have one field. -- cgit v1.2.3