Update of /cvsroot/plib/plib/examples/src/psl/data
In directory usw-pr-cvs1:/tmp/cvs-serv2453/plib/examples/src/psl/data
Modified Files:
test.psl
Log Message:
Fixed bug with backslashes in string constants.
Added 'switch' and 'for' statements.
Improved error recovery.
Index: test.psl
===================================================================
RCS file: /cvsroot/plib/plib/examples/src/psl/data/test.psl,v
retrieving revision 1.10
retrieving revision 1.11
diff -u -d -r1.10 -r1.11
--- test.psl 8 Sep 2002 04:51:38 -0000 1.10
+++ test.psl 8 Sep 2002 18:56:29 -0000 1.11
@@ -5,7 +5,21 @@
for ( i = 0 ; i < 20 ; i = i + 1 - 3 + 3 )
{
- printf ( "I=", i ) ;
+ switch ( i )
+ {
+ case 0 :
+ case 1 :
+ case 2 :
+ printf ( "Small! " ) ;
+ case 3 :
+ case 4 :
+ case 5 :
+ printf ( "Medium! " ) ;
+ default:
+ printf ( "Huge! ", i ) ;
+ }
+
+ printf ( "\n" ) ;
}
}
|