Syntax and values
- != — inequality
- % — remainder
- * — multiplication
- + — addition and concatenation
- - — subtraction
- / — division
- < — less than
- <= — less than or equal to
- = — initialization and assignment
- == — equality
- > — greater than
- >= — greater than or equal to
- and: when both conditions must be true
- Grouping instructions in blocks
- Boolean: true or false
- Braces: map literals
- Changing a value inside nested collections
- Functions inside functions
- Sharing and copying lists and maps
- Colon: block headers and map entries
- Comma: separators and trailing commas
- Comments: #
- The complete grammar: how Pliro fits together
- else: what happens otherwise
- Working out a value: expressions
- false — the Boolean false literal
- for: visiting each item
- Using a function: calls and arguments
- function: naming a reusable job
- Choosing names and recognizing keywords
- if: making a choice
- in — separate loop name and iterable
- Indexing with []
- let: giving a value a name
- Where can I use my variable?
- List: keeping items in order
- Map: looking up values by a key
- Using a dot to find a named value
- none: when there is no value
- not: reversing a true-or-false answer
- Number and number literals
- or: when at least one condition must be true
- Parentheses: grouping and calls
- A function that calls itself
- return: sending an answer back
- set: changing an existing value
- Source files and projects
- Source-language directive
- Square brackets: lists and indexing
- Text and string literals
- Different kinds of values
- true — the Boolean true literal
- Unary + — numeric identity
- Unary - — numeric negation
- Unsupported and reserved syntax
- use — import a project module
- How Pliro stores text files
- when — cooperative event scripts
- while: repeating while a condition is true
- Whitespace and indentation
