Skip to reading
At the Clockmaker’s Bench: Illustrated Parser & Cursor Workshop

Check what the rule really matched

Edition 0.86.4.9

The 19-page 0.86.4.9 revision supersedes the supplied 18-page 0.86.4.8 Illustrated Workshop. The original cover and early lessons retain their 0.86.4.8 labels. Opening and validation instructions are revised, and page 19 adds an export check. The earlier PDF is retained for reference and excluded from current guide/page totals.

Download PDFView illustrations

Test both a command you expect to work and one you expect to fail. The two results tell you more than a successful click through the form.

Scroll to Command Preview. Set Preview room to room_01, leave carried items blank, enter study clock, then click Parse without running. This inspects the draft. The game’s actions do not run in this form.

12 The simulated room supplies the objects you can name. The command field is separate from the rule’s Pattern field.

Source table from Check what the rule really matched, page 9
CommandLook for in the result
study clockstatus = resolved, rule = study_object, and captures → target → id = clock.
study clock upstairsstatus = rejected. The extra word is outside this rule. Read “I could not match that whole command.”

The report may mention the two keys under aliasConflicts even when you ask about the clock. That list describes the room’s vocabulary. status, rule, and captures describe this particular command.

Choose Apply Parser Settings, then Save Project. Choose Test Scene, click the command field and submit study clock. This time the object’s Look action runs. Here is the response from the rule built on page 8.

13 Left, the draft matched study_object. Right, submitting the same words in the game ran the clock’s Look interaction.

Page 9 of 19Permalink
Go to page