Example programs in Pop11. You can use poplog pop11 command to run them, for example:

poplog pop11 < example1.p

- example1.p Hello World
- example2.p Simple imperative operations on numbers
- example3.p Bigintegers and ratios, more arithmetic
- example4.p Comparisons and conditional execution
- example5.p For loops and arrays
- example6.p Functions and procedures
- example7.p Operations on two dimensional arrays (matrices)
- example8.p Miller-Rabin probabilistic primality test

poplog pop11 example1.p

More examples:

- Hash tables
- AVL trees and a test program
- Generating permutations 1
- Generator made of a Poplog process
- Propositional theorem proving using Hao Wang method
- Recursive descent parser 1 and sample input for the parser
- Recursive descent parser 2 and sample input for the parser
- Simple evaluator for arithmetic expressions
- Simple interpreter
- Recursive search in ordered tree
- Iterative search and insertion into ordered tree
- Computing derivative of expression in tree form
- Compute connected components of undirected graph
- Find path between two nodes in directed graph

"Functional" examples:

- recursive adder using acumulator
- recursive adder using chain
- another recursive adder using chain
- inclusion in a binary search tree

Examples of compilation via popc.

More example and an introducton to Pop11 gives Poplog primer

Pop11 example programs at Rosetta Code.