1
0
forked from GitHub/gf-core

Document CFTerm constructors.

This commit is contained in:
bringert
2007-01-29 12:20:31 +00:00
parent 2a25794c8f
commit fef4d56e71

View File

@@ -53,13 +53,13 @@ import qualified Data.Set as Set
type CFRule_ = CFRule Cat_ CFTerm Token
data CFTerm
= CFObj Fun [CFTerm]
| CFAbs Int CFTerm
| CFApp CFTerm CFTerm
| CFRes Int
| CFVar Int
| CFConst String
| CFMeta String
= CFObj Fun [CFTerm] -- ^ an abstract syntax function with arguments
| CFAbs Int CFTerm -- ^ A lambda abstraction. The Int is the variable id.
| CFApp CFTerm CFTerm -- ^ Application
| CFRes Int -- ^ The result of the n:th non-terminal
| CFVar Int -- ^ A lambda-bound variable
| CFConst String
| CFMeta String -- ^ A metavariable
deriving (Eq,Ord,Show)
type Cat_ = String