diff options
| author | aarne <unknown> | 2003-11-10 15:45:42 +0000 |
|---|---|---|
| committer | aarne <unknown> | 2003-11-10 15:45:42 +0000 |
| commit | e470c6281fc2ee7f53fa0ae41d76c30bb52b0f0b (patch) | |
| tree | bacd93bf8b07d653cf3119503fdf604a2466f556 /grammars/prelude | |
| parent | a931676d902033fdef17e7e086c40f5c753e9844 (diff) | |
New numeral grammars.
Diffstat (limited to 'grammars/prelude')
| -rw-r--r-- | grammars/prelude/Prelude.gf | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/grammars/prelude/Prelude.gf b/grammars/prelude/Prelude.gf index bda2f5f6d..5d8734d04 100644 --- a/grammars/prelude/Prelude.gf +++ b/grammars/prelude/Prelude.gf @@ -83,6 +83,10 @@ oper -- 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} ; + glue : Str -> Str -> Str = \x,y -> x ++ BIND ++ y ; + glueOpt : Str -> Str -> Str = \x,y -> variants {glue x y ; x ++ y} ; + noglueOpt : Str -> Str -> Str = \x,y -> variants {x ++ y ; glue x y} ; + +-- this should be hidden, and never changed since it's hardcoded in (un)lexers + BIND : Str = "&+" ; } ; |
