private Result pLiteral$1(final int yyStart) throws IOException {
Result yyResult;
int yyBase;
int yyOption1;
String yyOpValue1;
Node yyValue;
ParseError yyError = ParseError.DUMMY;
// Alternative 1.
yyResult = pSKIP(yyStart);
yyError = yyResult.select(yyError);
if (yyResult.hasValue()) {
final int yyChoice1 = yyResult.index;
// Nested alternative 1.
yyOption1 = yyChoice1;
yyOpValue1 = null;
yyBase = yyOption1;
yyResult = pop(yyBase);
if (yyResult.hasValue("-")) {
String v$el$1 = "-";
yyOption1 = yyResult.index;
yyOpValue1 = v$el$1;
} else {
yyError = yyError.select("'-' expected", yyBase);
}
{ // Start scope for v$g$1.
String v$g$1 = yyOpValue1;
final int yyChoice2 = yyOption1;
// Nested alternative 1.
yyResult = pFloatingPointLiteral(yyChoice2);
yyError = yyResult.select(yyError);
if (yyResult.hasValue()) {
Node v$g$2 = yyResult.semanticValue();
yyValue = GNode.create("Literal", v$g$1, v$g$2);
yyValue.setLocation(location(yyStart));
return yyResult.createValue(yyValue, yyError);
}
// Nested alternative 2.
yyResult = pIntegerLiteral(yyChoice2);
yyError = yyResult.select(yyError);
if (yyResult.hasValue()) {
Node v$g$3 = yyResult.semanticValue();
yyValue = GNode.create("Literal", v$g$1, v$g$3);
yyValue.setLocation(location(yyStart));
return yyResult.createValue(yyValue, yyError);
}
} // End scope for v$g$1.
// Nested alternative 2.
yyResult = pBooleanLiteral(yyChoice1);
yyError = yyResult.select(yyError);
if (yyResult.hasValue()) {
Node v$g$4 = yyResult.semanticValue();
yyValue = GNode.create("Literal", v$g$4);
yyValue.setLocation(location(yyStart));
return yyResult.createValue(yyValue, yyError);
}
// Nested alternative 3.
yyResult = pNullLiteral(yyChoice1);
yyError = yyResult.select(yyError);
if (yyResult.hasValue()) {
Node v$g$5 = yyResult.semanticValue();
yyValue = GNode.create("Literal", v$g$5);
yyValue.setLocation(location(yyStart));
return yyResult.createValue(yyValue, yyError);
}
// Nested alternative 4.
yyResult = pCharacterLiteral(yyChoice1);
yyError = yyResult.select(yyError);
if (yyResult.hasValue()) {
Node v$g$6 = yyResult.semanticValue();
yyValue = GNode.create("Literal", v$g$6);
yyValue.setLocation(location(yyStart));
return yyResult.createValue(yyValue, yyError);
}
// Nested alternative 5.
yyResult = pStringLiteral(yyChoice1);
yyError = yyResult.select(yyError);
if (yyResult.hasValue()) {
Node v$g$7 = yyResult.semanticValue();
yyValue = GNode.create("Literal", v$g$7);
yyValue.setLocation(location(yyStart));
return yyResult.createValue(yyValue, yyError);
}
// Nested alternative 6.
yyResult = pSymbolLiteral(yyChoice1);
yyError = yyResult.select(yyError);
if (yyResult.hasValue()) {
Node v$g$8 = yyResult.semanticValue();
yyValue = GNode.create("Literal", v$g$8);
yyValue.setLocation(location(yyStart));
return yyResult.createValue(yyValue, yyError);