1 |
/* |
2 |
* Copyright (c) 2014-2019 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 |
|
18 |
#if AC_APPLE_UNIVERSAL_BUILD |
19 |
# include "parser.tab.h" |
20 |
#else |
21 |
# include "parser.h" |
22 |
#endif |
23 |
|
24 |
#include "../common/global_private.h" |
25 |
|
26 |
struct _YYSTYPE { |
27 |
union { |
28 |
LinuxSampler::vmint iValue; |
29 |
char* sValue; |
30 |
}; |
31 |
LinuxSampler::EventHandlersRef nEventHandlers; |
32 |
LinuxSampler::EventHandlerRef nEventHandler; |
33 |
LinuxSampler::StatementsRef nStatements; |
34 |
LinuxSampler::StatementRef nStatement; |
35 |
LinuxSampler::FunctionCallRef nFunctionCall; |
36 |
LinuxSampler::ArgsRef nArgs; |
37 |
LinuxSampler::ExpressionRef nExpression; |
38 |
LinuxSampler::CaseBranch nCaseBranch; |
39 |
LinuxSampler::CaseBranches nCaseBranches; |
40 |
}; |
41 |
#define YYSTYPE _YYSTYPE |
42 |
#define yystype YYSTYPE ///< For backward compatibility. |
43 |
#ifndef YYSTYPE_IS_DECLARED |
44 |
# define YYSTYPE_IS_DECLARED ///< We tell the lexer / parser that we use our own data structure as defined above. |
45 |
#endif |
46 |
|
47 |
#endif // LS_INSTRSCRIPTSPARSER_SHARED_H |