Exemplo n.º 1
0
 private static float[] parseFloatArray(Systems.Parser p)
 {
     List<float> array = new List<float>();
     bool done = false;
     do
     {
         string s = p.getNextToken();
         if (s.StartsWith("["))
             s = s.Substring(1);
         if (s.EndsWith("]"))
         {
             s = s.Substring(0, s.Length - 1);
             done = true;
         }
         array.Add(float.Parse(s));
     } while (!done);
     return array.ToArray();
 }