mirror of
https://github.com/GrammaticalFramework/gf-core.git
synced 2026-04-24 03:52:50 -06:00
C compiler
This commit is contained in:
13
examples/gfcc/ResImper.gf
Normal file
13
examples/gfcc/ResImper.gf
Normal file
@@ -0,0 +1,13 @@
|
||||
resource ResImper = open Prelude, Precedence in {
|
||||
|
||||
oper
|
||||
continue : Str -> SS -> SS = \s -> infixSS ";" (ss s);
|
||||
statement : Str -> SS = \s -> postfixSS ";" (ss s);
|
||||
ex : {s : PrecTerm} -> Str = \exp -> exp.s ! p0 ;
|
||||
infixL :
|
||||
Prec -> Str -> {s : PrecTerm} -> {s : PrecTerm} -> {s : PrecTerm} =
|
||||
\p,h,x,y -> {s = mkInfixL h p x.s y.s} ;
|
||||
|
||||
constant : Str -> {s : PrecTerm} = \c -> {s = mkConst c} ;
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user