/[svn]/linuxsampler/trunk/src/network/lscp.y
ViewVC logotype

Diff of /linuxsampler/trunk/src/network/lscp.y

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1348 by iliev, Thu Sep 13 21:46:25 2007 UTC revision 1349 by persson, Sat Sep 15 11:05:38 2007 UTC
# Line 534  boolean               :  number  { $$ = Line 534  boolean               :  number  { $$ =
534                        |  string  { $$ = -1; }                        |  string  { $$ = -1; }
535                        ;                        ;
536    
537  dotnum                :      digits '.' digits  { $$ = atof(String($1 + "." + $3).c_str());                         }  dotnum                :      digits '.' digits  { std::stringstream ss($1 + "." + $3); ss.imbue(std::locale::classic()); ss >> $$; }
538                        |  '+' digits '.' digits  { String s = "+"; s += $2; s += "."; s += $4; $$ = atof(s.c_str()); }                        |  '+' digits '.' digits  { std::stringstream ss($2 + "." + $4); ss.imbue(std::locale::classic()); ss >> $$; }
539                        |  '-' digits '.' digits  { $$ = atof(String("-" + $2 + "." + $4).c_str());                   }                        |  '-' digits '.' digits  { std::stringstream ss("-" + $2 + "." + $4); ss.imbue(std::locale::classic()); ss >> $$; }
540                        ;                        ;
541    
542    

Legend:
Removed from v.1348  
changed lines
  Added in v.1349

  ViewVC Help
Powered by ViewVC