[SR-Dev] script parsing: string switch support

Juha Heinanen jh at tutpro.com
Fri Feb 20 20:39:17 CET 2009


Andrei Pelinescu-Onciul writes:

 > There are the following restriction:
 > 
 > - case labels must be static (no vars allowed)
 > - in the same switch you can have only one type of case labels: strings
 >   or integers (1)
 > - the first case label sets the required type for all the others
 >  (so if your first case label is a string => all the other must be
 >  strings, if it's an integer all the other must be integers).

andrei,

thanks for the above implementation.  the restrictions are fine with me,

-- juha



More information about the sr-dev mailing list