forked from GitHub/gf-core
Document CFTerm constructors.
This commit is contained in:
@@ -53,13 +53,13 @@ import qualified Data.Set as Set
|
|||||||
type CFRule_ = CFRule Cat_ CFTerm Token
|
type CFRule_ = CFRule Cat_ CFTerm Token
|
||||||
|
|
||||||
data CFTerm
|
data CFTerm
|
||||||
= CFObj Fun [CFTerm]
|
= CFObj Fun [CFTerm] -- ^ an abstract syntax function with arguments
|
||||||
| CFAbs Int CFTerm
|
| CFAbs Int CFTerm -- ^ A lambda abstraction. The Int is the variable id.
|
||||||
| CFApp CFTerm CFTerm
|
| CFApp CFTerm CFTerm -- ^ Application
|
||||||
| CFRes Int
|
| CFRes Int -- ^ The result of the n:th non-terminal
|
||||||
| CFVar Int
|
| CFVar Int -- ^ A lambda-bound variable
|
||||||
| CFConst String
|
| CFConst String
|
||||||
| CFMeta String
|
| CFMeta String -- ^ A metavariable
|
||||||
deriving (Eq,Ord,Show)
|
deriving (Eq,Ord,Show)
|
||||||
|
|
||||||
type Cat_ = String
|
type Cat_ = String
|
||||||
|
|||||||
Reference in New Issue
Block a user