/[svn]/linuxsampler/trunk/src/scriptvm/scanner.l
ViewVC logotype

Diff of /linuxsampler/trunk/src/scriptvm/scanner.l

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

revision 3054 by schoenebeck, Thu Dec 15 12:47:45 2016 UTC revision 3285 by schoenebeck, Thu Jun 22 10:45:38 2017 UTC
# Line 1  Line 1 
1  /*  /*
2   * Copyright (c) 2014-2016 Christian Schoenebeck and Andreas Persson   * Copyright (c) 2014-2017 Christian Schoenebeck and Andreas Persson
3   *   *
4   * http://www.linuxsampler.org   * http://www.linuxsampler.org
5   *   *
# Line 216  ID       [a-zA-Z0-9_]+ Line 216  ID       [a-zA-Z0-9_]+
216      processLocation();      processLocation();
217  }  }
218  <PREPROC_BODY_EAT>.* { /* eat up code block filtered out by preprocessor */  <PREPROC_BODY_EAT>.* { /* eat up code block filtered out by preprocessor */
219      processLocation();      yyextra->addPreprocessorComment(yylloc->first_line, yylloc->last_line,
220                                        yylloc->first_column+1, yylloc->last_column+1);
221  }  }
222    
223    
# Line 248  ID       [a-zA-Z0-9_]+ Line 249  ID       [a-zA-Z0-9_]+
249  "mod" return MOD;  "mod" return MOD;
250  "function" return FUNCTION;  "function" return FUNCTION;
251  "call" return CALL;  "call" return CALL;
252    "synchronized" return SYNCHRONIZED;
253    
254  [&,()[\]<>=*+#/-] {  [&,()[\]<>=*+#/-] {
255      return *yytext;      return *yytext;
# Line 278  ID       [a-zA-Z0-9_]+ Line 280  ID       [a-zA-Z0-9_]+
280    
281  [ \t\r]+ /* eat up whitespace */  [ \t\r]+ /* eat up whitespace */
282    
283  . printf( "Unrecognized character: '%s' (line %d, column %d)\n", yytext, yylineno, yycolumn);  . {
284        printf( "Unrecognized character: '%s' (line %d, column %d)\n", yytext, yylineno, yycolumn);
285        return UNKNOWN_CHAR;
286    }
287    
288  %%  %%
289    

Legend:
Removed from v.3054  
changed lines
  Added in v.3285

  ViewVC Help
Powered by ViewVC