Experimenting in the CPAL Playground

The CPAL Playground is a web service that allows to write and execute CPAL code without any installation. It is not meant to develop complete applications but probably the best way to quickly discover CPAL and experiment with it. For instance, you can execute in the Playground sample source files that are indexed here. There are limitations to what the CPAL playground can do:

  • including external files is not possible
  • visualisation of the functional architecture and the automata embedded in the code is not possible

Setting up the CPAL-Editor

The best programming experience with CPAL is obtained using the CPAL-Editor, as it offers an all-in-one environment with graphical representation of the functional architecture and the automata describing the logics of the tasks, as well as syntax highlighting. It is also possible to run CPAL programs from within the CPAL-Editor and visualize the results.

The CPAL-Editor requires a Java virtual machine version 8, 9 or 10. On Linux and Mac OS X, the following additional steps are needed:

  • install Graphviz for your platform,
  • install a few dependencies like SWT libraries that are listed in the readme file of the distribution (under Linux with apt install),
  • in the parameters menu, indicate the path to the command line tools (./tools sub-directory of the install folder) and the path to Graphviz’s neato and dot executables (e.g., under /usr/bin on Ubuntu).

The CPAL-Editor on Windows32 and Windows64 platforms do not require to perform these additional steps.