mirror of
https://github.com/GrammaticalFramework/gf-core.git
synced 2026-05-07 10:12:51 -06:00
Glue things
This commit is contained in:
@@ -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} ;
|
||||
} ;
|
||||
|
||||
Reference in New Issue
Block a user