nmcglo / lamreducer Goto Github PK
View Code? Open in Web Editor NEWLambda Calculus Reducer. Bug: applicative ordering exits early due to my quit protocol
Lambda Calculus Reducer. Bug: applicative ordering exits early due to my quit protocol
README -- LambdaReducer.hs -------------------------- Features: -Performs proper alpha reduction techniques, then applies beta reduction until it cannot, then applies eta reduction until it cannot. -Returns a fully reduced lambda expression as computed using applicative ordering techniques. -------------------------- Potential Bugs: -Alpha renaming will produce an alpha equivalent expression to that of the expected output in the assignment description. There is only the ability for 26 total variable names, I could make it do more but I figured that that was not the purpose of the assignment. -Previously, I had implemented it so that it just adds a number to the end of the variable to be renamed. That may be safer, but this looks better. If theres something wrong with the alpha renaming, such as renaming something to an already used variable - that is easily fixed by changing <Atom (pickFreshVar (allVars e))> in line 52 with <Atom (x ++ "1")>. This now appends a 1 to the end of variables when renaming, creating NEW variable names and not just trying to find one that's not been used previously.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.