/[svn]/linuxsampler/trunk/src/scriptvm/parser_shared.h
ViewVC logotype

Annotation of /linuxsampler/trunk/src/scriptvm/parser_shared.h

Parent Directory Parent Directory | Revision Log Revision Log


Revision 3054 - (hide annotations) (download) (as text)
Thu Dec 15 12:47:45 2016 UTC (7 years, 4 months ago) by schoenebeck
File MIME type: text/x-c++hdr
File size: 1270 byte(s)
* Fixed numerous compiler warnings.
* Bumped version (2.0.0.svn32).

1 schoenebeck 2581 /*
2 schoenebeck 3054 * Copyright (c) 2014-2016 Christian Schoenebeck
3 schoenebeck 2581 *
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 schoenebeck 3052
18     #if AC_APPLE_UNIVERSAL_BUILD
19     # include "parser.tab.h"
20     #else
21     # include "parser.h"
22     #endif
23    
24 schoenebeck 2581 #include "../common/global_private.h"
25    
26     struct _YYSTYPE {
27     union {
28     int 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 schoenebeck 3054 #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 schoenebeck 2581
47     #endif // LS_INSTRSCRIPTSPARSER_SHARED_H

  ViewVC Help
Powered by ViewVC