Skip to content

Latest commit

 

History

History
24 lines (18 loc) · 1.06 KB

File metadata and controls

24 lines (18 loc) · 1.06 KB

SID Language Reference

SID is a stack-based language using Reverse Polish Notation (RPN). Values are pushed onto a data stack; functions consume values from the top and push their results back.

Notably SID only really has three types of stack values:

Value Type Stack effect
Literals Simply added on top of the data stack.
Templates May consume stack entries to render, then put on the data stack.
Invokes Queues function on the data stack onto the program stack.

Documentation Index

Document Covers
Syntax Literals, templates, nested templates, $ substitution, nested invokes, comments
Execution Invoke (!), comptime (@!), execution pipeline, scopes
Types Labels, primitive types, container types, function types
Built-ins Reference for every built-in function