![Maven Central Adds Sigstore Signature Validation](https://cdn.sanity.io/images/cgdhsj6q/production/7da3bc8a946cfb5df15d7fcf49767faedc72b483-1024x1024.webp?w=400&fit=max&auto=format)
Security News
Maven Central Adds Sigstore Signature Validation
Maven Central now validates Sigstore signatures, making it easier for developers to verify the provenance of Java packages.
A simple REPL for lambda calculus
.. image:: https://travis-ci.org/CodeGrimoire/ChurchREPL.svg?branch=master :target: https://travis-ci.org/CodeGrimoire/ChurchREPL
when calling churchrepl and new REPL will be opened.
.. code-block::
churchrepl [-f --file file [file ...]] [-v --verbose]
Flags:
(optional) Read definitions and expressions from a file before loading the normal REPL.
.. code-block::
-f|--file file [file ...]
(optional) print debugging and verbose output.
.. code-block::
-v|--verbose
The EBNF grammar is as follows*:
::
(* church-lambda EBNF ) ( --- meta --- *) program = {line}; line = (define | function); define = "@" alias ":" function;
(* --- lambdas --- *)
function = lambda | application;
lambda = "λ" variable "." expr;
application = '(' expr expr ')';
expr = (lambda | application | variable | alias );
(* --- primitives --- *)
variable = /[a-z]/;
alias = /[_A-Z][_A-Z0-9]*/;
A simple example program:
::
@ID: λx.x
@APPLY: λf.λx.(f x)
@TRUE: λx.λy.x
@FALSE: λx.λy.y
@ZERO: λf.λx.x
@SUCC: λn.λf.λx.(f ((n f) x))
@ONE: (SUCC ZERO)
@TWO: (SUCC ONE)
@THREE: (SUCC TWO)
@FOUR: (SUCC THREE)
(SUCC ZERO)
(SUCC ONE)
(SUCC TWO)
(SUCC THREE)
(SUCC FOUR)
Note: The λ (lambda, unicode u03bb) is equivalent to a backslash as far as this program is concerned. When using the repl it may be easier to use a backslash.
FAQs
A simple REPL for lambda calculus
We found that churchrepl demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
Maven Central now validates Sigstore signatures, making it easier for developers to verify the provenance of Java packages.
Security News
CISOs are racing to adopt AI for cybersecurity, but hurdles in budgets and governance may leave some falling behind in the fight against cyber threats.
Research
Security News
Socket researchers uncovered a backdoored typosquat of BoltDB in the Go ecosystem, exploiting Go Module Proxy caching to persist undetected for years.