mirror of
https://github.com/GrammaticalFramework/gf-core.git
synced 2026-10-17 14:16:09 -06:00
New numeral grammars.
This commit is contained in:
1 parent
a931676d90
commit
e470c6281f
5 files changed
+75
-10
No files matched your search
@@ -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 = "&+" ;
|
||||
} ;
|
||||
Reference in new issue
Block a user