1
0
forked from GitHub/gf-core

Added mkText : Phr -> Text

This commit is contained in:
bringert
2007-04-20 22:55:55 +00:00
parent 59ccc22409
commit aa8dbcea8a

View File

@@ -38,6 +38,7 @@ incomplete resource Constructors = open Grammar in {
mkText : overload {
mkText : Text ; -- [empty text]
mkText : Phr -> Text ; -- John walks.
mkText : Phr -> Text -> Text -- John walks. ...
} ;
@@ -591,6 +592,8 @@ incomplete resource Constructors = open Grammar in {
mkText = overload {
mkText : Text -- [empty text]
= TEmpty ;
mkText : Phr -> Text -- John walks.
= \x -> TFullStop x TEmpty ;
mkText : Phr -> Text -> Text -- John walks. ...
= TFullStop
} ;