PPL quick reference (www.practical-programming.org)

Christian Neumanns

2016-10-07


Table of Contents
Introduction
1. Trying Out Source Code
2. Basic Syntax Rules
Single line comment
Multi line comment
Line termination
Line continuation
Case sensitivity
Identifiers
Code blocks and indents
3. Primitive Data Literals
String
Character
Number
Yes_no (boolean)
Null
4. Collection Literals
List literal
Map literal
5. Expressions and operators
6. Instructions
Constant declaration
Variable declaration and assignment
Flow control
if instructions
if then else
if is null
repeat instructions (loops)
repeat for each
repeat while
repeat times
repeat from to
repeat forever
exit repeat
next repeat
case instructions
case type of
case enumerated of
case value of
case reference of
return
Resource handling instruction
use resource
Error handling instructions
assert
assert is null
check
error
Section instructions
section
exit section
Event handling instructions
generate event
on event
stop event handler
Embedded Java instructions
Unit testing instructions
test
verify
verify_error
7. Commands and Functions
8. Object-oriented programming concepts
Types
Factories
Services
9. Advanced techniques
Null-safety
Static typing
Semantic typing
Feature redefinition in child types
Design by Contract
Unit testing
PPL/Java synergy
Source code templates

Home