diff options
| author | kr.angelov <kr.angelov@gmail.com> | 2012-03-12 14:25:51 +0000 |
|---|---|---|
| committer | kr.angelov <kr.angelov@gmail.com> | 2012-03-12 14:25:51 +0000 |
| commit | 230f309317af6ae79f49091c9580223f756dbfb8 (patch) | |
| tree | ee1cee3c48370fcf04b63794250c71c16b28cbfb /src/runtime/c/utils | |
| parent | 1726995921f6c05686b2b06f672b1376e589f8ac (diff) | |
libpgf: a new implementation for literals which also allows custom literals. the same mechanism is now used for the metavariables
Diffstat (limited to 'src/runtime/c/utils')
| -rw-r--r-- | src/runtime/c/utils/pgf-translate.c | 5 |
1 files changed, 5 insertions, 0 deletions
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 <pgf/data.h> #include <pgf/parser.h> #include <pgf/lexer.h> +#include <pgf/literals.h> #include <pgf/linearize.h> #include <pgf/expr.h> #include <pgf/edsl.h> @@ -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. |
