1 |
/* |
2 |
* Copyright (c) 2014 Christian Schoenebeck |
3 |
* |
4 |
* http://www.linuxsampler.org |
5 |
* |
6 |
* This file is part of LinuxSampler and released under the same terms. |
7 |
* See README file for details. |
8 |
*/ |
9 |
|
10 |
// types shared between auto generated lexer and parser ... |
11 |
|
12 |
#ifndef LS_INSTRSCRIPTSPARSER_SHARED_H |
13 |
#define LS_INSTRSCRIPTSPARSER_SHARED_H |
14 |
|
15 |
#include <stdio.h> |
16 |
#include "tree.h" |
17 |
#include "parser.h" |
18 |
#include "../common/global_private.h" |
19 |
|
20 |
struct _YYSTYPE { |
21 |
union { |
22 |
int iValue; |
23 |
char* sValue; |
24 |
}; |
25 |
LinuxSampler::EventHandlersRef nEventHandlers; |
26 |
LinuxSampler::EventHandlerRef nEventHandler; |
27 |
LinuxSampler::StatementsRef nStatements; |
28 |
LinuxSampler::StatementRef nStatement; |
29 |
LinuxSampler::FunctionCallRef nFunctionCall; |
30 |
LinuxSampler::ArgsRef nArgs; |
31 |
LinuxSampler::ExpressionRef nExpression; |
32 |
LinuxSampler::CaseBranch nCaseBranch; |
33 |
LinuxSampler::CaseBranches nCaseBranches; |
34 |
}; |
35 |
#define YYSTYPE _YYSTYPE |
36 |
#define yystype YYSTYPE ///< For backward compatibility. |
37 |
#define YYSTYPE_IS_DECLARED ///< We tell the lexer / parser that we use our own data structure as defined above. |
38 |
|
39 |
#endif // LS_INSTRSCRIPTSPARSER_SHARED_H |