1348 |
|
|
1349 |
#else // Bison 2.x or older ... |
#else // Bison 2.x or older ... |
1350 |
|
|
1351 |
|
//TODO: The Bison 2.x code below can probably soon just be deleted. Most Bisonx 2.x versions should be able to compile successfully with the Bison 3.x code above as well (just requires the existence of table yystos[] in the auto generated lscpparser.cpp). |
1352 |
|
|
1353 |
/** |
/** |
1354 |
* Returns true if the given grammar @a rule is a terminal symbol (in *our* |
* Returns true if the given grammar @a rule is a terminal symbol (in *our* |
1355 |
* terms). |
* terms). |
1514 |
for (int i = 0; i < depth; ++i) printf("\t"); |
for (int i = 0; i < depth; ++i) printf("\t"); |
1515 |
printf("(default reduction)\n"); |
printf("(default reduction)\n"); |
1516 |
#endif |
#endif |
1517 |
|
#if HAVE_BISON_MAJ >= 3 |
1518 |
if (!nextExpectedChars.empty() || !_isRuleTerminalSymbol(n, stack)) { |
if (!nextExpectedChars.empty() || !_isRuleTerminalSymbol(n, stack)) { |
1519 |
|
#else |
1520 |
|
if (!nextExpectedChars.empty() || !_isRuleTerminalSymbol(n)) { |
1521 |
|
#endif |
1522 |
// Return the new resolved expected symbol (left-hand symbol of grammar |
// Return the new resolved expected symbol (left-hand symbol of grammar |
1523 |
// rule), then we're done in this state. (If the same symbol can be |
// rule), then we're done in this state. (If the same symbol can be |
1524 |
// matched on different ways, then it is non-terminal symbol.) |
// matched on different ways, then it is non-terminal symbol.) |
1975 |
#define DEBUG_SHELL_INTERACTION 0 |
#define DEBUG_SHELL_INTERACTION 0 |
1976 |
|
|
1977 |
/** |
/** |
1978 |
* If LSP shell mode is enabled for the respective LSCP client connection, then |
* If LSCP shell mode is enabled for the respective LSCP client connection, then |
1979 |
* this function is called on every new byte received from that client. It will |
* this function is called on every new byte received from that client. It will |
1980 |
* check the current total input line and reply to the LSCP shell for providing |
* check the current total input line and reply to the LSCP shell for providing |
1981 |
* colored syntax highlighting and potential auto completion in the shell. |
* colored syntax highlighting and potential auto completion in the shell. |