diff options
| author | krasimir <krasimir@chalmers.se> | 2009-11-26 14:43:31 +0000 |
|---|---|---|
| committer | krasimir <krasimir@chalmers.se> | 2009-11-26 14:43:31 +0000 |
| commit | ba1b602053300d982e973f446e44bd7a436c157d (patch) | |
| tree | 558a2dcfd55ea676eaa2aa8cfe6b5286c3239089 /src/PGF.hs | |
| parent | 6b0a662c35856beb306f0c873869e4a0e02165ef (diff) | |
change PGF.categories to return list of identifiers instead of types
Diffstat (limited to 'src/PGF.hs')
| -rw-r--r-- | src/PGF.hs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/PGF.hs b/src/PGF.hs index 1345c027d..b49a19db6 100644 --- a/src/PGF.hs +++ b/src/PGF.hs @@ -199,7 +199,7 @@ abstractName :: PGF -> Language -- | List of all categories defined in the given grammar. -- The categories are defined in the abstract syntax -- with the \'cat\' keyword. -categories :: PGF -> [Type] +categories :: PGF -> [CId] -- | The start category is defined in the grammar with -- the \'startcat\' flag. This is usually the sentence category @@ -279,7 +279,7 @@ languages pgf = cncnames pgf languageCode pgf lang = fmap (replace '_' '-') $ lookConcrFlag pgf lang (mkCId "language") -categories pgf = [DTyp [] c (map EMeta [0..length hs]) | (c,hs) <- Map.toList (cats (abstract pgf))] +categories pgf = [c | (c,hs) <- Map.toList (cats (abstract pgf))] startCat pgf = DTyp [] (lookStartCat pgf) [] |
