/[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 3052 - (hide annotations) (download) (as text)
Wed Dec 14 17:34:54 2016 UTC (7 years, 4 months ago) by schoenebeck
File MIME type: text/x-c++hdr
File size: 1229 byte(s)
- Preparations for Xcode project update.

1 schoenebeck 2581 /*
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 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     #define YYSTYPE_IS_DECLARED ///< We tell the lexer / parser that we use our own data structure as defined above.
44    
45     #endif // LS_INSTRSCRIPTSPARSER_SHARED_H

  ViewVC Help
Powered by ViewVC