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 script file. Here is a simple example:

  • Create file hello.ppl with the following content:

    File hello.ppl
    repeat 3 times
        write_line ( "Hello world" )
    .
  • Execute the script 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 here.

results matching ""

    No results matching ""