lambdacalc | simple example of an interpreter in JS | Interpreter library

 by   zaach JavaScript Version: Current License: No License

kandi X-RAY | lambdacalc Summary

kandi X-RAY | lambdacalc Summary

lambdacalc is a JavaScript library typically used in Utilities, Interpreter applications. lambdacalc has no bugs, it has no vulnerabilities and it has low support. You can download it from GitHub.

A simple example of an interpreter in JS. Evaluates lambda calculus expressions.
Support
    Quality
      Security
        License
          Reuse

            kandi-support Support

              lambdacalc has a low active ecosystem.
              It has 13 star(s) with 2 fork(s). There are 1 watchers for this library.
              OutlinedDot
              It had no major release in the last 6 months.
              lambdacalc has no issues reported. There are no pull requests.
              It has a neutral sentiment in the developer community.
              The latest version of lambdacalc is current.

            kandi-Quality Quality

              lambdacalc has no bugs reported.

            kandi-Security Security

              lambdacalc has no vulnerabilities reported, and its dependent libraries have no vulnerabilities reported.

            kandi-License License

              lambdacalc does not have a standard license declared.
              Check the repository for any license declaration and review the terms closely.
              OutlinedDot
              Without a license, all rights are reserved, and you cannot use the library in your applications.

            kandi-Reuse Reuse

              lambdacalc releases are not available. You will need to build from source code and install.
              Installation instructions are not available. Examples and code snippets are available.

            Top functions reviewed by kandi - BETA

            kandi's functional review helps you automatically verify the functionalities of the libraries and avoid rework.
            Currently covering the most popular Java, JavaScript and Python libraries. See a Sample of lambdacalc
            Get all kandi verified functions for this library.

            lambdacalc Key Features

            No Key Features are available at this moment for lambdacalc.

            lambdacalc Examples and Code Snippets

            No Code Snippets are available at this moment for lambdacalc.

            Community Discussions

            QUESTION

            Lambda Calculus change of variable and application question
            Asked 2020-Sep-12 at 12:17

            I am studying Haskell and I am learning what is an abstraction, substitution (beta equivalence), application, free and bound variables (alpha equivalence), but I have some doubts resolving these exercises, I don't know if my solutions are correct.

            Make the following substitutions

            ...

            ANSWER

            Answered 2020-Sep-12 at 06:14

            1. (λ x → y x x) [x:= f z]
            Sol. (\x -> y x x) =>α (\w -> y w w) =>α (\w -> x w w) =>β (\w -> f z w w)

            No, you can't rename y, it's free in (λ x → y x x). Only bound variables can be (consistently) α-renamed. But only free variables can be substituted, and there's no free x in that lambda term.

            2. ((λ x → y x x) x) [y:= x]
            Sol. ((\x -> y x x)x) =>α (\w -> y w w)[y:= x] = (\w -> x w w)

            Yes, substituting x for y would allow it to be captured by the λ x, so you indeed must α-rename the x in (λ x → y x x) first to some new unique name as you did, but you've dropped the application to the free x for some reason. You can't just omit parts of a term, so it's ((\w -> y w w) x)[y:= x]. Now perform the substitution. Note you're not asked to perform the β-reduction of the resulting term, just the substitution.

            I'll leave the other two out. Just follow the rules carefully. It's easy if you rename all bound names to unique names first, even if the renaming is not strictly required, for instance

            Source https://stackoverflow.com/questions/63856698

            Community Discussions, Code Snippets contain sources that include Stack Exchange Network

            Vulnerabilities

            No vulnerabilities reported

            Install lambdacalc

            You can download it from GitHub.

            Support

            For any new features, suggestions and bugs create an issue on GitHub. If you have any questions check and ask questions on community page Stack Overflow .
            Find more information at:

            Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items

            Find more libraries
            CLONE
          • HTTPS

            https://github.com/zaach/lambdacalc.git

          • CLI

            gh repo clone zaach/lambdacalc

          • sshUrl

            git@github.com:zaach/lambdacalc.git

          • Stay Updated

            Subscribe to our newsletter for trending solutions and developer bootcamps

            Agree to Sign up and Terms & Conditions

            Share this Page

            share link

            Explore Related Topics

            Consider Popular Interpreter Libraries

            v8

            by v8

            micropython

            by micropython

            RustPython

            by RustPython

            otto

            by robertkrimen

            sh

            by mvdan

            Try Top Libraries by zaach

            jison

            by zaachJavaScript

            jsonlint

            by zaachJavaScript

            orderly.js

            by zaachJavaScript

            reflect.js

            by zaachJavaScript

            jsxgettext

            by zaachJavaScript