import { useState } from "react" const Tutorial = () => { const [collapsed, setCollapsed] = useState(true) if (collapsed) { return } return ( <>

SLAM is a procedural, stack-based programming language inspired by Forth and Lisp.

In the core of every SLAM program, there is an implied, global stack of strongly and dynamically typed values. A SLAM program consists of a sequence of words that when evaluated, can consume and produce values from/to the stack.

Phrases, roughly equal to Lisp's quoted S-expressions, are a sequence of words that are not immediately evaluated when encountered, but instead put on the stack for later manipulation. Phrases can be used to implement strings or homogenous list structures. Phrases are also the core of conditional expressions, where branches of code are only evaluated when a condition is met.

) } export default Tutorial