/[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 224 by schoenebeck, Fri Aug 20 17:25:19 2004 UTC revision 225 by schoenebeck, Sun Aug 22 14:46:47 2004 UTC
# Line 255  string                :  char          { Line 255  string                :  char          {
255                        |  string char   { $$ = $1 + $2;                  }                        |  string char   { $$ = $1 + $2;                  }
256                        ;                        ;
257    
258  dotnum                :      digits '.' digits  { $$ = atoi(String($1 + "." + $3).c_str());                         }  dotnum                :      digits '.' digits  { $$ = atof(String($1 + "." + $3).c_str());                         }
259                        |  '+' digits '.' digits  { String s = "+"; s += $2; s += "."; s += $4; $$ = atof(s.c_str()); }                        |  '+' digits '.' digits  { String s = "+"; s += $2; s += "."; s += $4; $$ = atof(s.c_str()); }
260                        |  '-' digits '.' digits  { $$ = atof(String("-" + $2 + "." + $4).c_str());                   }                        |  '-' digits '.' digits  { $$ = atof(String("-" + $2 + "." + $4).c_str());                   }
261                        ;                        ;
# Line 346  text                  :  SP           { Line 346  text                  :  SP           {
346                        |  text string  { $$ = $1 + $2;  }                        |  text string  { $$ = $1 + $2;  }
347                        ;                        ;
348    
349  stringval             :  '\'' text '\''  { $$ = '\'' + $2 + '\''; }  stringval             :  '\'' text '\''  { $$ = $2; }
350                        |  '\"' text '\"'  { $$ = '\"' + $2 + '\"'; }                        |  '\"' text '\"'  { $$ = $2; }
351                        ;                        ;
352    
353    

Legend:
Removed from v.224  
changed lines
  Added in v.225

  ViewVC Help
Powered by ViewVC