/[svn]/linuxsampler/trunk/src/scriptvm/parser.y
ViewVC logotype

Diff of /linuxsampler/trunk/src/scriptvm/parser.y

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

revision 3008 by schoenebeck, Tue Oct 11 18:25:12 2016 UTC revision 3052 by schoenebeck, Wed Dec 14 17:34:54 2016 UTC
# Line 31  Line 31 
31  %parse-param { LinuxSampler::ParserContext* context }  %parse-param { LinuxSampler::ParserContext* context }
32  %lex-param { void* scanner }  %lex-param { void* scanner }
33  // avoid symbol collision with other (i.e. future) auto generated (f)lex scanners  // avoid symbol collision with other (i.e. future) auto generated (f)lex scanners
34  %name-prefix "InstrScript_"  // (NOTE: "=" is deprecated here with Bison 3.x, however removing it would cause an error with Bison 2.x)
35    %name-prefix="InstrScript_"
36  %locations  %locations
37  %defines  %defines
38  %error-verbose  %error-verbose
# Line 298  statement: Line 299  statement:
299                          break;                          break;
300                      }                      }
301                  }                  }
302                  if (argsOK)                  if (argsOK) {
303                      $$ = context->vartable[name] = new IntArrayVariable(context, size, args);                      context->vartable[name] = new IntArrayVariable(context, size, args);
304                  else                      $$ = new NoOperation;
305                    } else
306                      $$ = new FunctionCall("nothing", new Args, NULL); // whatever                      $$ = new FunctionCall("nothing", new Args, NULL); // whatever
307              }              }
308          }          }
# Line 830  int InstrScript_tnamerr(char* yyres, con Line 832  int InstrScript_tnamerr(char* yyres, con
832                yyres[yyn] = '\0';                yyres[yyn] = '\0';
833              return yyn;              return yyn;
834            }            }
835    /*
836      do_not_strip_quotes: ;      do_not_strip_quotes: ;
837    */
838      }      }
839    
840    if (! yyres)    if (! yyres)

Legend:
Removed from v.3008  
changed lines
  Added in v.3052

  ViewVC Help
Powered by ViewVC