Skip to main content
Help us improve PyPI by participating in user testing. All experience levels needed!

The PLambda language

Project description

PLambda

An early prototype of a workable version of JLambda for Python. To be used mainly as a part of the IOP imaude system.

JLambda and PLambda are essentially network command and control languages. JLambda for controlling Java processes, and PLambda for python processes. JLambda is over 14 years old, whereas PLambda is just a pup.

Note that Python is not Java so there will be some differences, but hopefully the spirit will shine through.

PLambda, like JLambda, is a fast, efficient, minimalistic, call-by-value, lexically scoped Lisp or Scheme like language with closures built upon the underlying data structures of the language it rests upon. The interpreter is implemented via CPS (continuation passing style).

Install

There is a pip package, but that will move along at a lazier pace than developing directly from the repository.


pip install plambda

Dependencies

Python 2.7 is desired, though it might work on most pythons. You will need the antlr4 runtime:


pip install antlr4-python2-runtime

Develop

Checkout the repository and do:


make develop

Websites

The jlambda webpage lives over here: http://jlambda.com/~iop/jlambda.html

The iop webpage lives over here: http://jlambda.com/~iop/

The main client of the iop system is SRI International’s Pathway Logic: http://pl.csl.sri.com/

Recipe to add an operator

  1. Add it to the grammar plambda.antlr4.PLambda.g4
  2. Process the grammar with make antlr4
  3. Add the operator to the plambda.eval.SymbolTable
  4. Add the operator to the plambda.eval.Interpreter
  5. Add some tests to tests/language.py

Project details


Release history Release notifications

This version
History Node

1.0.13

History Node

1.0.12

History Node

1.0.11

History Node

1.0.10

History Node

1.0.9

History Node

1.0.8

History Node

1.0.7

History Node

1.0.6

History Node

1.0.5

History Node

1.0.4

History Node

1.0.3

History Node

1.0.2

History Node

1.0.1

History Node

1.0.0

History Node

1.0.0.dev0

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Filename, size & hash SHA256 hash help File type Python version Upload date
PLambda-1.0.13.tar.gz (36.8 kB) Copy SHA256 hash SHA256 Source None Nov 15, 2016

Supported by

Elastic Elastic Search Pingdom Pingdom Monitoring Google Google BigQuery Sentry Sentry Error logging CloudAMQP CloudAMQP RabbitMQ AWS AWS Cloud computing Fastly Fastly CDN DigiCert DigiCert EV certificate StatusPage StatusPage Status page