forked from GitHub/gf-core
Putting def definitions in place.
This commit is contained in:
@@ -2,12 +2,10 @@ module AbsGF where
|
||||
|
||||
import Ident --H
|
||||
|
||||
-- Haskell module generated by the BNF converter, except for --H
|
||||
-- Haskell module generated by the BNF converter, except --H
|
||||
|
||||
-- newtype Ident = Ident String deriving (Eq,Ord,Show) --H
|
||||
|
||||
newtype LString = LString String deriving (Eq,Ord,Show)
|
||||
|
||||
data Grammar =
|
||||
Gr [ModDef]
|
||||
deriving (Eq,Ord,Show)
|
||||
@@ -66,7 +64,7 @@ data TopDef =
|
||||
DefCat [CatDef]
|
||||
| DefFun [FunDef]
|
||||
| DefDef [Def]
|
||||
| DefData [ParDef]
|
||||
| DefData [DataDef]
|
||||
| DefTrans [FlagDef]
|
||||
| DefPar [ParDef]
|
||||
| DefOper [Def]
|
||||
@@ -89,6 +87,15 @@ data FunDef =
|
||||
FunDef [Ident] Exp
|
||||
deriving (Eq,Ord,Show)
|
||||
|
||||
data DataDef =
|
||||
DataDef Ident [DataConstr]
|
||||
deriving (Eq,Ord,Show)
|
||||
|
||||
data DataConstr =
|
||||
DataId Ident
|
||||
| DataQId Ident Ident
|
||||
deriving (Eq,Ord,Show)
|
||||
|
||||
data ParDef =
|
||||
ParDef Ident [ParConstr]
|
||||
| ParDefIndir Ident Ident
|
||||
|
||||
Reference in New Issue
Block a user