Statement: the smallest standalone element of an imperative programming language. A program is formed by a sequence of one or more statements. Expression can be a part of a statement.

PPL language supports the following statements:

  • Assignment statement
  • Example:

    tau = 10us

    Legend: PPL keywords; PPL pulse commands; comments.

  • Conditional statement if-else-end
  • Example:

    if T > 1us mwpulse 10us else wait 10us end

    Legend: PPL keywords; PPL pulse commands; comments.

  • Repeat statement repeat-end
  • Example:

    repeat 5 detect I end

    Legend: PPL keywords; PPL pulse commands; comments.

  • Parallel execution statement parallel-end
  • Example:

    parallel mwpulse t90 end

    Legend: PPL keywords; PPL pulse commands; comments.

  • Wait statement wait
  • Example:

    wait T

    Legend: PPL keywords; PPL pulse commands; comments.

  • Detect statement detect
  • Example:

    detect I

    Legend: PPL keywords; PPL pulse commands; comments.