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 | |
| 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')
| -rw-r--r-- | src/runtime/c/pgf/pgf.c | 6 | ||||
| -rw-r--r-- | src/runtime/c/pgf/pgf.h | 3 |
2 files changed, 9 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) { diff --git a/src/runtime/c/pgf/pgf.h b/src/runtime/c/pgf/pgf.h index 032834d77..ef68e651f 100644 --- a/src/runtime/c/pgf/pgf.h +++ b/src/runtime/c/pgf/pgf.h @@ -91,6 +91,9 @@ pgf_iter_languages(PgfPGF*, GuMapItor*, GuExn* err); PgfConcr* pgf_get_language(PgfPGF*, PgfCId lang); +GuString +pgf_concrete_name(PgfConcr*); + void pgf_iter_categories(PgfPGF* pgf, GuMapItor* fn, GuExn* err); |
