Text and interpolation
A whole message can be ordinary text. Insert a value with @ followed by its name, or call a function with $ followed by its name and arguments.
Hi @user.name!Result:
Hi Anya!The reference reads the name property on @user and inserts the result. A simple reference or call can appear directly in a message. Use $(...) for a calculation, comparison, or combination of operations.
Recognize a reference
Section titled “Recognize a reference”References start at a word boundary. You can write Hello, @user! without turning an email address such as [email protected] into code.
The same rule protects Unicode words and URL paths: 日本@user and https://example.test/@user remain literal. Leave a boundary between preceding prose and a reference you want evaluated.
Names are case-sensitive ASCII letters, digits and underscore, without a leading digit. This restriction applies to identifiers, not the message’s prose.
Show the syntax itself
Section titled “Show the syntax itself”Write @@ for a single at sign. At a reference boundary, @@user.name adds an at sign before the name. Use $("@user.name") to show the reference itself as text.
Contact: [email protected]Hello, @@user.name! · $("@user.name")Result:
Contact: [email protected]Hello, @Anya! · @user.nameWrite $$ to display a dollar sign. In $$fixed(6, 2), the second dollar sign starts the function call and the result is $6.00. The same pattern works with interpolation. $$(1 + 2) displays $3.
To display a function call as text, put it in a quoted expression such as $("$fixed(6, 2)"). Use the same technique inside Markdown code fences, where PokkanStrings syntax remains active.
When a name does not exist
Section titled “When a name does not exist”An unknown reference gives a name or scope error in both text and expressions. A valid name without a value, such as @message in a command with no target message, yields nil. See values and missing data to provide a fallback.
Continue with expressions for calculations, or whitespace and indentation to arrange blocks without shifting the sent message.