mirror of
https://github.com/GrammaticalFramework/gf-core.git
synced 2026-05-19 16:12:52 -06:00
Updated to simple CFGM grammar, use CFGM pretty printer when printing cfgm grammars.
This commit is contained in:
@@ -3,6 +3,7 @@ module AbsCFG where
|
||||
-- Haskell module generated by the BNF converter
|
||||
|
||||
newtype Ident = Ident String deriving (Eq,Ord,Show)
|
||||
newtype SingleQuoteString = SingleQuoteString String deriving (Eq,Ord,Show)
|
||||
data Grammars =
|
||||
Grammars [Grammar]
|
||||
deriving (Eq,Ord,Show)
|
||||
@@ -33,32 +34,10 @@ data Symbol =
|
||||
deriving (Eq,Ord,Show)
|
||||
|
||||
data Name =
|
||||
Name [IdentParam] Category
|
||||
Name SingleQuoteString
|
||||
deriving (Eq,Ord,Show)
|
||||
|
||||
data Category =
|
||||
Category IdentParam Ident [Proj]
|
||||
deriving (Eq,Ord,Show)
|
||||
|
||||
data IdentParam =
|
||||
IdentParam Ident [Field]
|
||||
deriving (Eq,Ord,Show)
|
||||
|
||||
data Field =
|
||||
Field KeyValue
|
||||
deriving (Eq,Ord,Show)
|
||||
|
||||
data Proj =
|
||||
Proj Param
|
||||
deriving (Eq,Ord,Show)
|
||||
|
||||
data KeyValue =
|
||||
KeyValue Ident Param
|
||||
deriving (Eq,Ord,Show)
|
||||
|
||||
data Param =
|
||||
ParamSimple Ident
|
||||
| ParamPatt Ident [Param]
|
||||
| ParamRec [KeyValue]
|
||||
Category SingleQuoteString
|
||||
deriving (Eq,Ord,Show)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user