43 |
#include "lscpevent.h" |
#include "lscpevent.h" |
44 |
#include "../Sampler.h" |
#include "../Sampler.h" |
45 |
#include "../drivers/midi/MidiInstrumentMapper.h" |
#include "../drivers/midi/MidiInstrumentMapper.h" |
46 |
|
#include "lscp_shell_reference.h" |
47 |
|
|
48 |
namespace LinuxSampler { |
namespace LinuxSampler { |
49 |
|
|
100 |
bool bVerbose; ///< if true then all commands will immediately sent back (echo) |
bool bVerbose; ///< if true then all commands will immediately sent back (echo) |
101 |
bool bShellInteract; ///< if true: then client is the LSCP shell |
bool bShellInteract; ///< if true: then client is the LSCP shell |
102 |
bool bShellAutoCorrect; ///< if true: try to automatically correct obvious syntax mistakes |
bool bShellAutoCorrect; ///< if true: try to automatically correct obvious syntax mistakes |
103 |
|
bool bShellSendLSCPDoc; ///< if true: send the relevant LSCP documentation reference section for the current command. |
104 |
int iLine; ///< Current line (just for verbosity / messages) |
int iLine; ///< Current line (just for verbosity / messages) |
105 |
int iColumn; ///< End of current line (just for verbosity / messages) |
int iColumn; ///< End of current line (just for verbosity / messages) |
106 |
int iCursorOffset; ///< Column of cursor position in current line (reflected as offset to iColumn, range -n .. 0) |
int iCursorOffset; ///< Column of cursor position in current line (reflected as offset to iColumn, range -n .. 0) |
107 |
YYTYPE_INT16** ppStackBottom; ///< Bottom end of the Bison parser's state stack. |
YYTYPE_INT16** ppStackBottom; ///< Bottom end of the Bison parser's state stack. |
108 |
YYTYPE_INT16** ppStackTop; ///< Current position (heap) of the Bison parser's state stack. |
YYTYPE_INT16** ppStackTop; ///< Current position (heap) of the Bison parser's state stack. |
109 |
|
lscp_ref_entry_t* pLSCPDocRef; ///< only if bShellSendLSCPDoc=true: points to the current LSCP doc reference, for being able to detect if another LSCP doc page has to be sent to the LSCP shell (client). |
110 |
|
|
111 |
yyparse_param_t() { |
yyparse_param_t() { |
112 |
pServer = NULL; |
pServer = NULL; |
113 |
hSession = -1; |
hSession = -1; |
114 |
bVerbose = false; |
bVerbose = false; |
115 |
bShellInteract = bShellAutoCorrect = false; |
bShellInteract = bShellAutoCorrect = bShellSendLSCPDoc = false; |
116 |
iCursorOffset = iLine = iColumn = 0; |
iCursorOffset = iLine = iColumn = 0; |
117 |
ppStackBottom = ppStackTop = NULL; |
ppStackBottom = ppStackTop = NULL; |
118 |
|
pLSCPDocRef = NULL; |
119 |
} |
} |
120 |
|
|
121 |
void onNextLine() { |
void onNextLine() { |