1
0
forked from GitHub/gf-core
This commit is contained in:
aarne
2004-10-25 14:22:18 +00:00
parent 47eca4023b
commit 18c0f62519
15 changed files with 280 additions and 236 deletions

View File

@@ -1,3 +1,5 @@
--# -path=.:../prelude
concrete ArithmEng of Arithm = LogicEng ** open LogicResEng in {
lin

View File

@@ -1,4 +1,4 @@
concrete LogicEng of Logic = open LogicResEng in {
concrete LogicEng of Logic = open LogicResEng, Prelude in {
flags lexer=vars ; unlexer=text ;
@@ -8,9 +8,10 @@ lincat
lin
Statement A = {s = A.s ++ "."} ;
ThmWithProof A a = {s = ["Theorem ."] ++ A.s ++ [". <p> Proof ."] ++ a.s ++ "."} ;
ThmWithProof A a = {s =
["Theorem ."] ++ A.s ++ "." ++ PARA ++ "Proof" ++ "." ++ a.s ++ "."} ;
ThmWithTrivialProof A a =
{s = "Theorem" ++ "." ++ A.s ++ [". <p> Proof . Trivial ."]} ;
{s = "Theorem" ++ "." ++ A.s ++ "." ++ PARA ++ "Proof" ++ "." ++ "Trivial" ++ "."} ;
Disj A B = {s = A.s ++ "or" ++ B.s} ;
Conj A B = {s = A.s ++ "and" ++ B.s} ;
Impl A B = {s = "if" ++ A.s ++ "then" ++ B.s} ;

View File

@@ -94,6 +94,7 @@ oper
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
-- these should be hidden, and never changed since it's hardcoded in (un)lexers
BIND : Str = "&+" ;
PARA : Str = "&-" ;
} ;