mirror of
https://github.com/GrammaticalFramework/gf-core.git
synced 2026-04-24 03:52:50 -06:00
gf-book web page index and toc
This commit is contained in:
13
gf-book/examples/chapter9/LogicSymb.gf
Normal file
13
gf-book/examples/chapter9/LogicSymb.gf
Normal file
@@ -0,0 +1,13 @@
|
||||
concrete LogicSymb of Logic = open Formal, Prelude in {
|
||||
|
||||
lincat
|
||||
Prop, Ind = TermPrec ;
|
||||
lin
|
||||
And = infixl 2 "\\&" ;
|
||||
Or = infixl 2 "\\vee" ;
|
||||
If = infixr 1 "\\sup" ;
|
||||
Not = prefix 3 "\\sim" ;
|
||||
All P = prefix 3 (parenth ("\\forall" ++ P.$0)) P ;
|
||||
Exist P = prefix 3 (parenth ("\\exists" ++ P.$0)) P ;
|
||||
Past = prefix 3 "P" ;
|
||||
}
|
||||
Reference in New Issue
Block a user