1
0
forked from GitHub/gf-core

Build cfgm files using the nondeterministic conversion. Allow coercions in cfgm rule functions and remove the name.

This commit is contained in:
bringert
2005-03-21 13:27:04 +00:00
parent 96a08c9df4
commit 75d228629a
9 changed files with 312 additions and 254 deletions

View File

@@ -1,4 +1,3 @@
module AbsCFG where
-- Haskell module generated by the BNF converter
@@ -18,7 +17,12 @@ data Flag =
deriving (Eq,Ord,Show)
data Rule =
Rule Ident Name Profile Category [Symbol]
Rule Fun Profile Category [Symbol]
deriving (Eq,Ord,Show)
data Fun =
Cons Ident
| Coerce
deriving (Eq,Ord,Show)
data Profile =
@@ -34,10 +38,6 @@ data Symbol =
| TermS String
deriving (Eq,Ord,Show)
data Name =
Name SingleQuoteString
deriving (Eq,Ord,Show)
data Category =
Category SingleQuoteString
deriving (Eq,Ord,Show)