Skip to main content
julia's space

Train Control Table Syntax

This page is as per EGG 1648 - Control Tables Format and Syntax. My interpretation of the syntax without may be incorrect, but seems to work fine based on the examples they provide.

What follows are the inference rules for their Control Tables Syntax, which nominally is expressions of the form 31AT. [31BT. 31CT w 202N]. [31XT. 31YT w 202R]. I assume that we have a judgement specifying what constitutes an atom within the syntax, i.e., what constitutes a valid 31AT. Additionally, I arbitrarily use right-associativity, to remove ambiguity, although AND/OR are both left and right-associative, the associativity of WHEN is unknown.

*:・゚magic *:・゚x BAtomR1xBAtomx BNotR2x BNotx BAndR3x BAndx BWhenR4x BWhenx BOrR5x BOr(x) BAtomR6x BAtomnot x BNotR7x BNoty BAndx.y BAndR8x BAndy BWhenx w y BWhenR9x BWheny BOrx or y BOrR10

An example derivation is as follows:

31ATBAtom31BTBAtom31CT BAtom202N BAtom31CT w 202NBWith(by R9)31BT. 31CT w 202NBAnd(by R8)[31BT. 31CT w 202N]BAtom(by R6)31AT. [31BT. 31CT w 202N]BAnd(by R8)