Trying Out Source Code

To run PPL code you first have to install PPL.

A simple way to try out source code is to execute a PPL program file. Here is a simple example:

  • Create file hello.ppl with the following content:

    File hello.ppl
    function start
        repeat 3 times
            write_line ( "Hello world" )
        .
    .
  • Execute the program with the following OS command:

    ppl hello.ppl
  • Result written to the OS’s standard out device:

    Hello world
    Hello world
    Hello world

More ways to execute code are explained in PPL’s How to …​ Guide.

results matching ""

    No results matching ""