view tests/agcl/parsifal/pex1.syn @ 2:4b08ee1ecb99

Adjust install notes to clarify that Wine applies only to the Windows build. (Thanks to Perry Metzger for test-driving.)
author David A. Holland
date Sun, 26 Apr 2009 17:58:26 -0400
parents 13d2b8934445
children
line wrap: on
line source

[
  case sensitive = off
  disregard white space
]

space = ' ' + '\t'

white space
 -> space
 -> comment

while head
 -> "!while"                =whileConditionPointer= PCB.pointer;

while terminator
 -> "!endw" | "!endwhile"

while body text
 -> [~eof - space, ~eof?...], while body terminator   =whileCompletePointer = PCB.pointer, PCB.pointer = whileConditionPointer;

true while condition, false while condition
 -> expression:x          ={
                             if (x) return;
                             CHANGE_REDUCTION(true_while_condition);
                             PCB.pointer = whileCompletePointer;
                           }

while loop $
 -> while head, while body text, while iteration?..., false while condition

while iteration
 -> true while condition, while body, while body terminator =PCB.pointer = whileConditionPointer;