ElementSymbol x = new ElementSymbol("x", false); //$NON-NLS-1$
Function f = new Function("+", new Expression[] { x, new Constant(new Integer(1)) }); //$NON-NLS-1$
Statement assignmentStmt = new AssignmentStatement(x, f);
Block block = new Block();
block.addStatement(assignmentStmt);
Criteria crit = new CompareCriteria(x, CompareCriteria.LT,
new Constant(new Integer(100)));
WhileStatement whileStmt = new WhileStatement(crit, block);
helpStmtTest("WHILE (x < 100) BEGIN x=x+1; END", //$NON-NLS-1$
"WHILE(x < 100)"+"\n"+ "BEGIN"+"\n"+"x = (x + 1);" //$NON-NLS-1$ //$NON-NLS-2$ //$NON-NLS-3$ //$NON-NLS-4$ //$NON-NLS-5$
+"\n"+"END", whileStmt); //$NON-NLS-1$ //$NON-NLS-2$