summaryrefslogtreecommitdiff
path: root/grammars/prelude
diff options
context:
space:
mode:
authoraarne <unknown>2003-11-10 12:50:22 +0000
committeraarne <unknown>2003-11-10 12:50:22 +0000
commitc84ce99de2e9a17e2413f2f81cae0088170cc3b9 (patch)
treeb1ccdf00e62655a6115330da88cc13ff5c673752 /grammars/prelude
parent47c029be3d92c5cdf7cf60ca1622dfbbfa1d2e30 (diff)
Glue things
Diffstat (limited to 'grammars/prelude')
-rw-r--r--grammars/prelude/Prelude.gf5
1 files changed, 5 insertions, 0 deletions
diff --git a/grammars/prelude/Prelude.gf b/grammars/prelude/Prelude.gf
index f5903d7ec..bda2f5f6d 100644
--- a/grammars/prelude/Prelude.gf
+++ b/grammars/prelude/Prelude.gf
@@ -80,4 +80,9 @@ oper
Predef.PFalse => False ; Predef.PTrue => True
} ;
+-- bind together two tokens in the lexer, either obligatorily or optionally
+
+ oper
+ bind : Str -> Str -> Str = \x,y -> x ++ "&+" ++ y ;
+ bindOpt : Str -> Str -> Str = \x,y -> variants {bind x y ; x ++ y} ;
} ;