Skip to content

Commit

Permalink
rename lambda list to sequence
Browse files Browse the repository at this point in the history
  • Loading branch information
billhails committed Dec 1, 2024
1 parent edccc34 commit 7b36055
Show file tree
Hide file tree
Showing 15 changed files with 43 additions and 365 deletions.
179 changes: 0 additions & 179 deletions fn/infer.fn

This file was deleted.

144 changes: 0 additions & 144 deletions fn/normalize.fn

This file was deleted.

4 changes: 3 additions & 1 deletion fn/rewrite/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,10 @@ this to be practical we would need to target LLVM rather than a bytecode
interpreter.

* [ceskf.fn](ceskf.fn) - The core CESKF machine.
* [infer.fn](infer.fn) - Type inference.
* [interpreter.fn](interpreter.fn) - A naïve lambda interpreter demo.
* [petterson92.fn](petterson92.fn) - Pettersson's Term Pattern Matching Compiler.
* [normalize.fn](normalize.fn) - ANF conversion.
* [petterson92.fn](petterson92.fn) - Pettersson's Term Pattern Matching Compiler algorithm.
* [pratt.fn](pratt.fn) - Pratt Parser.
* [pratt_lexer.fn](pratt_lexer.fn) - Lexer Support for the Parser.
* [pratt_sexpr.fn](pratt_sexpr.fn) - Target Symbolic Expressions for the parser.
30 changes: 15 additions & 15 deletions src/anf.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -64,11 +64,6 @@ structs:
integer: int
next: AexpIntList

CexpApply:
function: Aexp
nargs: int
args: AexpList

AexpMakeVec:
nargs: int
args: AexpList
Expand All @@ -81,6 +76,11 @@ structs:
namespaces: AexpNamespaceArray
body: Exp

CexpApply:
function: Aexp
nargs: int
args: AexpList

CexpIf:
condition: Aexp
consequent: Exp
Expand All @@ -104,21 +104,11 @@ structs:
condition: Aexp
clauses: MatchList

MatchList:
matches: AexpIntList
body: Exp
next: MatchList

CexpLetRec:
nbindings: int
bindings: LetRecBindings
body: Exp

LetRecBindings:
var: HashSymbol
val: Aexp
next: LetRecBindings

CexpAmb:
exp1: Exp
exp2: Exp
Expand All @@ -136,6 +126,16 @@ structs:
annotatedVar: AexpAnnotatedVar = NULL
body: Exp

MatchList:
matches: AexpIntList
body: Exp
next: MatchList

LetRecBindings:
var: HashSymbol
val: Aexp
next: LetRecBindings

unions:
CexpCondCases:
charCases: CexpCharCondCases
Expand Down
Loading

0 comments on commit 7b36055

Please sign in to comment.