diff options
| author | kr.angelov <kr.angelov@gmail.com> | 2013-02-11 15:51:26 +0000 |
|---|---|---|
| committer | kr.angelov <kr.angelov@gmail.com> | 2013-02-11 15:51:26 +0000 |
| commit | 6a36ce77fff65076707126fc6803b3b010bed2f7 (patch) | |
| tree | 19266ceb2b4d1aba15082e1f207fe5fecd430d6a /src/runtime/c/pgf/pgf.c | |
| parent | d124fa9a124327d8142b9a5c005e6067d93c3e7e (diff) | |
the class PgfConcr from the Python binding now has a property name which returns the name of the concrete syntax
Diffstat (limited to 'src/runtime/c/pgf/pgf.c')
| -rw-r--r-- | src/runtime/c/pgf/pgf.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/runtime/c/pgf/pgf.c b/src/runtime/c/pgf/pgf.c index 898d3be05..f0da5bddf 100644 --- a/src/runtime/c/pgf/pgf.c +++ b/src/runtime/c/pgf/pgf.c @@ -109,6 +109,12 @@ pgf_get_language(PgfPGF* pgf, PgfCId lang) return gu_map_get(pgf->concretes, &lang, PgfConcr*); } +GuString +pgf_concrete_name(PgfConcr* concr) +{ + return concr->name; +} + void pgf_iter_categories(PgfPGF* pgf, GuMapItor* fn, GuExn* err) { |
