mirror of
https://github.com/GrammaticalFramework/gf-core.git
synced 2026-05-20 00:22:51 -06:00
started a subdir for the book
This commit is contained in:
10
book/examples/chapter8/CalculatorC.gf
Normal file
10
book/examples/chapter8/CalculatorC.gf
Normal file
@@ -0,0 +1,10 @@
|
||||
concrete CalculatorC of Calculator = open Formal, Prelude in {
|
||||
lincat
|
||||
Exp = TermPrec ;
|
||||
lin
|
||||
EPlus = infixl 0 "+" ;
|
||||
EMinus = infixl 0 "-" ;
|
||||
ETimes = infixl 1 "*" ;
|
||||
EDiv = infixl 1 "/" ;
|
||||
EInt i = constant i.s ;
|
||||
}
|
||||
Reference in New Issue
Block a user