the class PgfConcr from the Python binding now has a property name which returns the name of the concrete syntax

This commit is contained in:
kr.angelov
2013-02-11 15:51:26 +00:00
parent 0b7b939aca
commit a6b35a9053
3 changed files with 24 additions and 1 deletions

View File

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

View File

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