Pattern
A pattern is the shape of a line of DynLex code. For example, print message is a
pattern. DynLex matches your code against patterns to decide what it means.
These pages use the same words in the same way. If a word feels new, come back here.
pattern is the sentence shape DynLex understands.parameter is a named slot in that pattern.argument is the real value you put into that slot.section is a grouped block with deeper-indented child lines.
A pattern is the shape of a line of DynLex code. For example, print message is a
pattern. DynLex matches your code against patterns to decide what it means.
A parameter is a named slot in a pattern. In to get value squared:, the word
value is that slot.
In plain-word patterns, DynLex finds these by usage. If your function body uses a pattern word, that word becomes a parameter.
An argument is the real value you put into a parameter slot. In 5 squared, the
argument is 5 because it fills the value slot.
A condition is a piece of code that answers yes or no. DynLex uses conditions in places like
if and while.
A section is a grouped block. Lines that are indented one level deeper belong to that section.
A function is a named piece of behavior. Define an action with to, a multi-line value
function with to get, or a one-line replacement with means:. The full
function form remains available for declarations with metadata sections.
A variable stores a value so you can use that value again later.
A flex is a function that uses a replacement: section. A means:
declaration creates this form implicitly. It replaces one piece of code with another piece of code.
A class is a data shape with named members such as x and y.
A type tells DynLex what kind of value something is, such as an integer, a floating-point number, a string, or a class.
An import brings code from another file into the current file. You write it with
import.
An intrinsic is a built-in low-level operation. Most everyday DynLex code should use normal patterns from the standard library instead of writing intrinsics directly.