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

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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 2581 - (show annotations) (download) (as text)
Fri May 30 12:48:05 2014 UTC (5 years ago) by schoenebeck
File MIME type: text/x-c++hdr
File size: 1159 byte(s)
* (WIP) Implemented parser and VM for upcoming new real-time instrument
  script support. It needs yet to be integrated into the sampler's
  sampler engines. You can toy around for now with the command line tool
  "ls_instr_script" and i.e. examples showing the core language features
  under src/scriptvm/examples/.
* Bumped version (1.0.0.svn41).

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

  ViewVC Help
Powered by ViewVC