/[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 3259 by schoenebeck, Wed May 31 14:41:04 2017 UTC revision 3260 by schoenebeck, Wed May 31 21:07:44 2017 UTC
# Line 52  Line 52 
52  %token CONST_ "keyword 'const'"  %token CONST_ "keyword 'const'"
53  %token POLYPHONIC "keyword 'polyphonic'"  %token POLYPHONIC "keyword 'polyphonic'"
54  %token WHILE "keyword 'while'"  %token WHILE "keyword 'while'"
55    %token SYNCHRONIZED "keyword 'synchronized'"
56  %token IF "keyword 'if'"  %token IF "keyword 'if'"
57  %token ELSE "keyword 'else'"  %token ELSE "keyword 'else'"
58  %token SELECT "keyword 'select'"  %token SELECT "keyword 'select'"
# Line 405  statement: Line 406  statement:
406              $$ = new While(new IntLiteral(0), $5);              $$ = new While(new IntLiteral(0), $5);
407          }          }
408      }      }
409        | SYNCHRONIZED opt_statements END SYNCHRONIZED  {
410            $$ = new SyncBlock($2);
411        }
412      | IF '(' expr ')' opt_statements ELSE opt_statements END IF  {      | IF '(' expr ')' opt_statements ELSE opt_statements END IF  {
413          $$ = new If($3, $5, $7);          $$ = new If($3, $5, $7);
414      }      }

Legend:
Removed from v.3259  
changed lines
  Added in v.3260

  ViewVC Help
Powered by ViewVC