experiment with gfc input

This commit is contained in:
aarne
2005-05-27 20:05:17 +00:00
parent 665c542af2
commit 92007a3aaf
8 changed files with 1104 additions and 872 deletions

View File

@@ -1,4 +1,3 @@
module GF.Canon.AbsGFC where
import GF.Infra.Ident --H
@@ -6,12 +5,19 @@ import GF.Infra.Ident --H
-- Haskell module generated by the BNF converter, except --H
-- newtype Ident = Ident String deriving (Eq,Ord,Show) --H
data Canon =
MGr [Ident] Ident [Module]
| Gr [Module]
deriving (Eq,Ord,Show)
data Line =
LMulti [Ident] Ident
| LHeader ModType Extend Open
| LFlag Flag
| LDef Def
| LEnd
deriving (Eq,Ord,Show)
data Module =
Mod ModType Extend Open [Flag] [Def]
deriving (Eq,Ord,Show)
@@ -131,8 +137,8 @@ data Term =
data Tokn =
KS String
| KM String
| KP [String] [Variant]
| KM String
deriving (Eq,Ord,Show)
data Assign =