mirror of
https://github.com/GrammaticalFramework/gf-core.git
synced 2026-05-20 16:42:51 -06:00
use "-" and ";" instead of "_" and "\n" in NQueens
This commit is contained in:
@@ -4,7 +4,7 @@ lincat Matrix, Vec = Str ;
|
|||||||
ListNat, Sat = {} ;
|
ListNat, Sat = {} ;
|
||||||
|
|
||||||
lin nilV _ _ = "" ;
|
lin nilV _ _ = "" ;
|
||||||
consV _ j k _ _ v = j ++ "X" ++ k ++ "\n" ++ v ;
|
consV _ j k _ _ v = j ++ "X" ++ k ++ ";" ++ v ;
|
||||||
|
|
||||||
matrix _ v = v ;
|
matrix _ v = v ;
|
||||||
|
|
||||||
|
|||||||
@@ -3,8 +3,8 @@ concrete NatAscii of Nat = {
|
|||||||
lincat Nat = Str ;
|
lincat Nat = Str ;
|
||||||
|
|
||||||
lin zero = "" ;
|
lin zero = "" ;
|
||||||
succ n = "_" ++ n ;
|
succ n = "-" ++ n ;
|
||||||
|
|
||||||
lincat NE = {} ;
|
lincat NE = {} ;
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user