mirror of
https://github.com/GrammaticalFramework/gf-core.git
synced 2026-11-03 19:15:26 -07:00
Glue things
This commit is contained in:
1 parent
47c029be3d
commit
c84ce99de2
3 files changed
+10
-4
No files matched your search
@@ -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