A Python-based interpreter for the agent-oriented programming language JASON
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
examples
pyson
simse
tests
.gitignore
LICENSE.txt
README.rst
requirements.txt
setup.py
tox.ini

README.rst

pyson - Jason-style AgentSpeak for Python

Setup

python setup.py develop

Hello world

!hello_world.

+!hello_world <-
  .print("Hello world!").

Usage

Run a standalone agent program:

$ python -m pyson examples/hello_world.asl

Run an interactive console:

$ python -m pyson

See examples/embedded for an example that interfaces with custom Python code.

Jason compability

pyson should be mostly equivalent to Jason.

  • Plan annotations are ignored as of yet.
  • Standard library does not yet contain syntactic transformations with {begin ...} and {end}.
  • Standard library does not yet contain introspective and plan-manipulation actions.
  • Jason 2.0 fork join operators not yet supported.
  • Literals are only comparable if they have the same signature.