<?xml version="1.0" encoding="UTF-8"?>
<!-- generator="FeedCreator 1.8" -->
<?xml-stylesheet href="https://docs.tlapl.us/lib/exe/css.php?s=feed" type="text/css"?>
<rdf:RDF
    xmlns="http://purl.org/rss/1.0/"
    xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
    xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
    xmlns:dc="http://purl.org/dc/elements/1.1/">
    <channel rdf:about="https://docs.tlapl.us/feed.php">
        <title>TLA+ Wiki - creating</title>
        <description></description>
        <link>https://docs.tlapl.us/</link>
        <image rdf:resource="https://docs.tlapl.us/_media/logo.png" />
       <dc:date>2026-11-19T03:22:07+00:00</dc:date>
        <items>
            <rdf:Seq>
                <rdf:li rdf:resource="https://docs.tlapl.us/creating:scanning?rev=1795057101&amp;do=diff"/>
                <rdf:li rdf:resource="https://docs.tlapl.us/creating:actions?rev=1795053826&amp;do=diff"/>
                <rdf:li rdf:resource="https://docs.tlapl.us/creating:operators?rev=1795035910&amp;do=diff"/>
                <rdf:li rdf:resource="https://docs.tlapl.us/creating:statements?rev=1795027495&amp;do=diff"/>
                <rdf:li rdf:resource="https://docs.tlapl.us/creating:evaluation?rev=1794892331&amp;do=diff"/>
                <rdf:li rdf:resource="https://docs.tlapl.us/creating:start?rev=1794890611&amp;do=diff"/>
                <rdf:li rdf:resource="https://docs.tlapl.us/creating:expressions?rev=1794889232&amp;do=diff"/>
                <rdf:li rdf:resource="https://docs.tlapl.us/creating:jlists?rev=1762277569&amp;do=diff"/>
            </rdf:Seq>
        </items>
    </channel>
    <image rdf:about="https://docs.tlapl.us/_media/logo.png">
        <title>TLA+ Wiki</title>
        <link>https://docs.tlapl.us/</link>
        <url>https://docs.tlapl.us/_media/logo.png</url>
    </image>
    <item rdf:about="https://docs.tlapl.us/creating:scanning?rev=1795057101&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2026-11-19T02:58:21+00:00</dc:date>
        <dc:creator>ahelwer (ahelwer@undisclosed.example.com)</dc:creator>
        <title>scanning - Change BufferedReader to class variable</title>
        <link>https://docs.tlapl.us/creating:scanning?rev=1795057101&amp;do=diff</link>
        <description>Scanning TLA⁺ Tokens

This page corresponds to chapter 4 of Crafting Interpreters by Robert Nystrom, henceforth referred to as &quot;the book&quot;.
We will learn how to chunk up TLA⁺ source file string input into a series of tokens suitable for parsing.
For each section in the chapter, first read the section in the book and then read the corresponding tutorial section on this page to see how to adapt the concepts to TLA⁺.</description>
    </item>
    <item rdf:about="https://docs.tlapl.us/creating:actions?rev=1795053826&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2026-11-19T02:03:46+00:00</dc:date>
        <dc:creator>ahelwer (ahelwer@undisclosed.example.com)</dc:creator>
        <title>actions - Fixed input handling</title>
        <link>https://docs.tlapl.us/creating:actions?rev=1795053826&amp;do=diff</link>
        <description>Variables, States, and Actions

Currently, our implementation is not significantly different from any other ordinary programming language.
However, TLA⁺ is not an ordinary language - it isn&#039;t even a programming language!
TLA⁺ specifications are not programs.
Properly speaking, a TLA⁺ specification is a predicate over an infinite sequence of states, where states are an assignment of values to variables.
TLA⁺ specs&#039; closest analogue to program execution is enumerating the set of all unique reachab…</description>
    </item>
    <item rdf:about="https://docs.tlapl.us/creating:operators?rev=1795035910&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2026-11-18T21:05:10+00:00</dc:date>
        <dc:creator>ahelwer (ahelwer@undisclosed.example.com)</dc:creator>
        <title>operators - Add guidance to the challenges</title>
        <link>https://docs.tlapl.us/creating:operators?rev=1795035910&amp;do=diff</link>
        <description>Functions, Operators, and Parameters

We now rejoin Crafting Interpreters for Chapter 10.
The chapter is titled Functions, but TLA⁺ actually has two related concepts to handle here: functions, and operators.
It&#039;s worth taking some time to conceptually delineate them.</description>
    </item>
    <item rdf:about="https://docs.tlapl.us/creating:statements?rev=1795027495&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2026-11-18T18:44:55+00:00</dc:date>
        <dc:creator>ahelwer (ahelwer@undisclosed.example.com)</dc:creator>
        <title>statements - Add missing line of code in Environment class to tutorial</title>
        <link>https://docs.tlapl.us/creating:statements?rev=1795027495&amp;do=diff</link>
        <description>Handling TLA⁺ Statements

Here we cover Chapter 8: Statements and State of the book Crafting Interpreters.
We&#039;ll implement the ability to associate identifiers with values, then subsequently use those identifiers in expressions.
While Lox was designed with a dual REPL/file execution model in mind, TLA⁺ was not - so the behavior of our interpreter will vary quite a bit from the book!
We&#039;ll have to implement parser &amp; interpreter</description>
    </item>
    <item rdf:about="https://docs.tlapl.us/creating:evaluation?rev=1794892331&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2026-11-17T05:12:11+00:00</dc:date>
        <dc:creator>ahelwer (ahelwer@undisclosed.example.com)</dc:creator>
        <title>evaluation - Fixed initial definition of ENABLED</title>
        <link>https://docs.tlapl.us/creating:evaluation?rev=1794892331&amp;do=diff</link>
        <description>Evaluating Constant TLA⁺ Expressions

Now that we can parse expressions, let&#039;s evaluate them!
Here we follow the material in Chapter 7 of Crafting Interpreters.
It&#039;s an exciting chapter, so let&#039;s jump in.

Section 7.1: Representing Values

In section 7.1 we define a mapping from language values to internal Java values.
Our mapping for TLA⁺ is fairly similar to Lox, although we use</description>
    </item>
    <item rdf:about="https://docs.tlapl.us/creating:start?rev=1794890611&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2026-11-17T04:43:31+00:00</dc:date>
        <dc:creator>ahelwer (ahelwer@undisclosed.example.com)</dc:creator>
        <title>start - Fix stale recommendation not to read closures chapter</title>
        <link>https://docs.tlapl.us/creating:start?rev=1794890611&amp;do=diff</link>
        <description>Create your own TLA⁺ tools

Building your own simplified parsing, model-checking, and even proof-checking tools for TLA⁺ is the best way to prepare yourself for serious work on the existing TLA⁺ tools.
This process will give you a strong understanding of how &amp; why the tools are written the way they are.
Even though your solution will not match their workings line-for-line, you&#039;ll learn to recognize the tricky parts and can compare &amp; contrast your own approach with the existing implementation.
Yo…</description>
    </item>
    <item rdf:about="https://docs.tlapl.us/creating:expressions?rev=1794889232&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2026-11-17T04:20:32+00:00</dc:date>
        <dc:creator>ahelwer (ahelwer@undisclosed.example.com)</dc:creator>
        <title>expressions - Fixed operator precedence bugs</title>
        <link>https://docs.tlapl.us/creating:expressions?rev=1794889232&amp;do=diff</link>
        <description>Parsing Constant TLA⁺ Expressions

This tutorial page covers the next two chapters in Crafting Interpreters:

	*  Chapter 5: Representing Code
	*  Chapter 6: Parsing Expressions

Same as the book, we could build a parser for our entire minimal TLA⁺ language subset before moving on to interpreting it, but that would be boring!
Instead we focus on a simple vertical slice of the language: expressions.
And not just any expressions, constant expressions - expressions that do not contain variables or …</description>
    </item>
    <item rdf:about="https://docs.tlapl.us/creating:jlists?rev=1762277569&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2025-11-04T17:32:49+00:00</dc:date>
        <dc:creator>ahelwer (ahelwer@undisclosed.example.com)</dc:creator>
        <title>jlists - Further simplified instanceof code</title>
        <link>https://docs.tlapl.us/creating:jlists?rev=1762277569&amp;do=diff</link>
        <description>Conjunction &amp; Disjunction Lists

Chapter 9 of Crafting Interpreters covers control flow - if, while, for, and all that.
TLA⁺ doesn&#039;t really have that, because TLA⁺ specifications aren&#039;t imperative programs.
However, TLA⁺ does have something somewhat analogous.
When specifying a system&#039;s actions, we commonly need to do two things: write preconditions or &quot;guards&quot; controlling whether an action can be taken, and specify the set of possible next-state transitions.
For the former we use conjunction (a…</description>
    </item>
</rdf:RDF>
