Skip to content

Examples

This page links to small SUP programs demonstrating common patterns.

  • Arithmetic and variables
  • Functions and calls
  • Control flow (if, repeat)
  • Lists and string utilities
  • Files, JSON, regex, env/glob (via builtins)

You can run examples with the CLI:

sup path/to/example.sup