mirror of
https://github.com/GrammaticalFramework/gf-core.git
synced 2026-07-05 05:12:45 -06:00
Added binary numeral grammars.
This commit is contained in:
@@ -0,0 +1,11 @@
|
||||
concrete BinaryDigits of Binary = {
|
||||
|
||||
flags startcat=Bin ;
|
||||
|
||||
lincat Bin = { s : Str } ;
|
||||
|
||||
lin End = { s = "" } ;
|
||||
lin Zero b = { s = "0" ++ b.s } ;
|
||||
lin One b = { s = "1" ++ b.s } ;
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user