1 |
/* |
/* |
2 |
* Copyright (c) 2015-2016 Christian Schoenebeck |
* Copyright (c) 2015-2017 Christian Schoenebeck |
3 |
* |
* |
4 |
* http://www.linuxsampler.org |
* http://www.linuxsampler.org |
5 |
* |
* |
42 |
return n; |
return n; |
43 |
} |
} |
44 |
|
|
45 |
|
// shut up warning that 'register' keyword is deprecated as of C++11 |
46 |
|
#if defined(__cplusplus) && __cplusplus >= 201103L |
47 |
|
# define register |
48 |
|
#endif |
49 |
|
|
50 |
%} |
%} |
51 |
|
|
52 |
/* generate a reentrant safe scanner */ |
/* generate a reentrant safe scanner */ |
230 |
return yyextra->token.baseType; |
return yyextra->token.baseType; |
231 |
} |
} |
232 |
|
|
233 |
declare|while|if|or|and|not|else|case|select|to|mod|const|polyphonic|function|call { |
declare|while|if|or|and|not|else|case|select|to|mod|const|polyphonic|function|call|synchronized { |
234 |
yyextra->token = KeywordToken(yytext); |
yyextra->token = KeywordToken(yytext); |
235 |
return yyextra->token.baseType; |
return yyextra->token.baseType; |
236 |
} |
} |