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 function square value:, 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 square 5, 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. You define it with function and call it
by writing its pattern.
A variable stores a value so you can use that value again later.
A flex is a function that uses a replacement: section. 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 float, 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.