-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
This resolves #1. * src/LambdaAST.hs (emptyTermSet): New definition. (addTerm): New function. * src/LambdaAST/Path.hs (Branch, Path): Derive Eq. (<|>, goRight, goLeft): New function. (left, right, rightNoLambda, self): New function. (traverse, find, findRedex, findFreeOccurrence): New function. (outermostFirst, innermostFirst): New definition. (outermostfirstNoLambda, innermostFirstNoLambda): New definition. (findFirstInnermostRedex, findFirstOutermostRedex): Remove. (findInnermostUnboundOccurrence, findOutermostUnboundOccurrence): Remove. (Cursor, PathSelector, TraversalOrder): New type. * src/Main.hs (setPragma): Make choosing strategies coherent. * src/Reducer.hs (EvaluationOrder): Remove. (findNextRedex, findNextUnboundOcc): Remove. (Strategy, normalOrder, applicativeOrder): Use 'TraversalOrder'. (callByName, callByValue): New definition. (defaultStrategy): Update. (betaReduce): Use 'findRedex'. (lambdaApply): Drop case distinction. (deltaReduce): Use 'findFreeOccurrence'.
- Loading branch information
Showing
4 changed files
with
139 additions
and
125 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters