2 * (c) copyright 1987 by the Vrije Universiteit, Amsterdam, The Netherlands.
3 * See the copyright notice in the ACK home directory, in the file "Copyright".
5 * Author: Ceriel J.H. Jacobs
8 /* S T A T E M E N T S */
10 /* stripped down version from the one in the Modula-2 compiler */
12 /* $Id: statement.g,v 1.3 1997/02/21 17:22:42 ceriel Exp $ */
24 * This part is not in the reference grammar. The reference grammar
25 * states : assignment | ProcedureCall | ...
26 * but this gives LL(1) conflicts
34 '=' { error("':=' expected instead of '='");
70 { if (!loopcount) error("EXIT not in a LOOP"); }
88 THEN StatementSequence
91 THEN StatementSequence
94 ELSE StatementSequence
105 [ ELSE StatementSequence
117 FOR IDENT BECOMES expression TO expression
127 WITH designator DO StatementSequence