Package xtc.parser

Examples of xtc.parser.SemanticValue


    // Alternative 2.

    yyValue = Pair.empty();

    return new SemanticValue(yyValue, yyStart, yyError);
  }
View Full Code Here


              Pair<Node> v$g$3 = yyRepValue1.reverse();

              yyValue = GNode.create("SimpleSingletonType", v$g$1, v$g$2, v$g$3);
              yyValue.setLocation(location(yyStart));

              return new SemanticValue(yyValue, yyRepetition1, yyError);
            } // End scope for v$g$3.
          } // End scope for v$g$2.
        } else {
          yyError = yyError.select("'type' expected", yyBase);
        }
      } else {
        yyError = yyError.select("'.' expected", yyBase);
      }
    }

    // Alternative 2.

    yyResult = pStableId(yyStart);
    yyError  = yyResult.select(yyError);
    if (yyResult.hasValue()) {
      Node v$g$4 = yyResult.semanticValue();

      yyOption1  = yyResult.index;
      yyOpValue1 = null;

      yyResult = pTypeArgs(yyOption1);
      yyError  = yyResult.select(yyError, yyOption1);
      if (yyResult.hasValue()) {
        Node v$el$3 = yyResult.semanticValue();

        yyOption1  = yyResult.index;
        yyOpValue1 = v$el$3;
      }
      { // Start scope for v$g$5.
        Node v$g$5 = yyOpValue1;

        yyRepetition1 = yyOption1;
        yyRepValue1   = Pair.empty();
        while (true) {

          yyBase   = yyRepetition1;
          yyResult = pkey(yyBase);
          if (yyResult.hasValue("#")) {

            yyResult = pId(yyResult.index);
            yyError  = yyResult.select(yyError, yyRepetition1);
            if (yyResult.hasValue()) {
              Node v$el$4 = yyResult.semanticValue();

              yyRepetition1 = yyResult.index;
              yyRepValue1   = new Pair<Node>(v$el$4, yyRepValue1);
              continue;
            }
          } else {
            yyError = yyError.select("'#' expected", yyBase);
          }
          break;
        }
        { // Start scope for v$g$6.
          Pair<Node> v$g$6 = yyRepValue1.reverse();

          yyValue = GNode.create("SimpleIdType", v$g$4, v$g$5, v$g$6);
          yyValue.setLocation(location(yyStart));

          return new SemanticValue(yyValue, yyRepetition1, yyError);
        } // End scope for v$g$6.
      } // End scope for v$g$5.
    }

    // Alternative 3.

    yyResult = psep(yyStart);
    if (yyResult.hasValue("(")) {

      yyResult = pTypes(yyResult.index);
      yyError  = yyResult.select(yyError);
      if (yyResult.hasValue()) {
        Node v$g$7 = yyResult.semanticValue();

        yyOption1  = yyResult.index;

        yyBase   = yyOption1;
        yyResult = psep(yyBase);
        if (yyResult.hasValue(",")) {

          yyOption1  = yyResult.index;
        } else {
          yyError = yyError.select("',' expected", yyBase);
        }

        yyBase   = yyOption1;
        yyResult = psep(yyBase);
        if (yyResult.hasValue(")")) {

          yyOption1  = yyResult.index;
          yyOpValue1 = null;

          yyResult = pTypeArgs(yyOption1);
          yyError  = yyResult.select(yyError, yyOption1);
          if (yyResult.hasValue()) {
            Node v$el$5 = yyResult.semanticValue();

            yyOption1  = yyResult.index;
            yyOpValue1 = v$el$5;
          }
          { // Start scope for v$g$8.
            Node v$g$8 = yyOpValue1;

            yyRepetition1 = yyOption1;
            yyRepValue1   = Pair.empty();
            while (true) {

              yyBase   = yyRepetition1;
              yyResult = pkey(yyBase);
              if (yyResult.hasValue("#")) {

                yyResult = pId(yyResult.index);
                yyError  = yyResult.select(yyError, yyRepetition1);
                if (yyResult.hasValue()) {
                  Node v$el$6 = yyResult.semanticValue();

                  yyRepetition1 = yyResult.index;
                  yyRepValue1   = new Pair<Node>(v$el$6, yyRepValue1);
                  continue;
                }
              } else {
                yyError = yyError.select("'#' expected", yyBase);
              }
              break;
            }
            { // Start scope for v$g$9.
              Pair<Node> v$g$9 = yyRepValue1.reverse();

              yyValue = GNode.create("SimpleTupleType", v$g$7, v$g$8, v$g$9);
              yyValue.setLocation(location(yyStart));

              return new SemanticValue(yyValue, yyRepetition1, yyError);
            } // End scope for v$g$9.
          } // End scope for v$g$8.
        } else {
          yyError = yyError.select("')' expected", yyBase);
        }
View Full Code Here

        Pair<Node> v$g$2 = yyRepValue1.reverse();

        yyValue = GNode.create("Types", v$g$1, v$g$2);
        yyValue.setLocation(location(yyStart));

        return new SemanticValue(yyValue, yyRepetition1, yyError);
      } // End scope for v$g$2.
    }

    // Done.
    return yyError;
View Full Code Here

          Pair<Node> v$g$3 = yyRepValue1.reverse();

          yyValue = GNode.create("Ascription", v$g$2, v$g$3);
          yyValue.setLocation(location(yyStart));

          return new SemanticValue(yyValue, yyRepetition1, yyError);
        } // End scope for v$g$3.
      }

      // Nested alternative 3.
View Full Code Here

                      Node v$g$3 = yyOpValue1;

                      yyValue = GNode.create("IfExpr", v$g$1, v$g$2, v$g$3);
                      yyValue.setLocation(location(yyStart));

                      return new SemanticValue(yyValue, yyOption1, yyError);
                    } // End scope for v$g$3.
                  }
                }
              } else {
                yyError = yyError.select("')' expected", yyBase);
              }
            }
          }
        }
      } else {
        yyError = yyError.select("'(' expected", yyBase);
      }
    }

    // Alternative 2.

    yyResult = pkey(yyStart);
    if (yyResult.hasValue("while")) {

      yyBase   = yyResult.index;
      yyResult = psep(yyBase);
      if (yyResult.hasValue("(")) {

        yyResult = pENTER_NL_DISABLE(yyResult.index);
        yyError  = yyResult.select(yyError);
        if (yyResult.hasValue()) {

          yyResult = pExpr(yyResult.index);
          yyError  = yyResult.select(yyError);
          if (yyResult.hasValue()) {
            Node v$g$4 = yyResult.semanticValue();

            yyResult = pEXIT_NL_DISABLE(yyResult.index);
            yyError  = yyResult.select(yyError);
            if (yyResult.hasValue()) {

              yyBase   = yyResult.index;
              yyResult = psep(yyBase);
              if (yyResult.hasValue(")")) {

                yyResult = p$$Shared2(yyResult.index);
                yyError  = yyResult.select(yyError);
                if (yyResult.hasValue()) {

                  yyResult = pExpr(yyResult.index);
                  yyError  = yyResult.select(yyError);
                  if (yyResult.hasValue()) {
                    Node v$g$5 = yyResult.semanticValue();

                    yyValue = GNode.create("WhileExpr", v$g$4, v$g$5);
                    yyValue.setLocation(location(yyStart));

                    return yyResult.createValue(yyValue, yyError);
                  }
                }
              } else {
                yyError = yyError.select("')' expected", yyBase);
              }
            }
          }
        }
      } else {
        yyError = yyError.select("'(' expected", yyBase);
      }
    }

    // Alternative 3.

    yyResult = pkey(yyStart);
    if (yyResult.hasValue("try")) {

      yyBase   = yyResult.index;
      yyResult = psep(yyBase);
      if (yyResult.hasValue("{")) {

        yyResult = pBlock(yyResult.index);
        yyError  = yyResult.select(yyError);
        if (yyResult.hasValue()) {
          Node v$g$6 = yyResult.semanticValue();

          yyBase   = yyResult.index;
          yyResult = psep(yyBase);
          if (yyResult.hasValue("}")) {

            yyOption1  = yyResult.index;
            yyOpValue1 = null;

            yyBase   = yyOption1;
            yyResult = pkey(yyBase);
            if (yyResult.hasValue("catch")) {

              yyBase   = yyResult.index;
              yyResult = psep(yyBase);
              if (yyResult.hasValue("{")) {

                yyResult = pCaseClauses(yyResult.index);
                yyError  = yyResult.select(yyError, yyOption1);
                if (yyResult.hasValue()) {
                  Node v$el$2 = yyResult.semanticValue();

                  yyBase   = yyResult.index;
                  yyResult = psep(yyBase);
                  if (yyResult.hasValue("}")) {

                    yyOption1  = yyResult.index;
                    yyOpValue1 = v$el$2;
                  } else {
                    yyError = yyError.select("'}' expected", yyBase);
                  }
                }
              } else {
                yyError = yyError.select("'{' expected", yyBase);
              }
            } else {
              yyError = yyError.select("'catch' expected", yyBase);
            }
            { // Start scope for v$g$7.
              Node v$g$7 = yyOpValue1;

              yyOpValue1 = null;

              yyBase   = yyOption1;
              yyResult = pkey(yyBase);
              if (yyResult.hasValue("finally")) {

                yyResult = pExpr(yyResult.index);
                yyError  = yyResult.select(yyError, yyOption1);
                if (yyResult.hasValue()) {
                  Node v$el$3 = yyResult.semanticValue();

                  yyOption1  = yyResult.index;
                  yyOpValue1 = v$el$3;
                }
              } else {
                yyError = yyError.select("'finally' expected", yyBase);
              }
              { // Start scope for v$g$8.
                Node v$g$8 = yyOpValue1;

                yyValue = GNode.create("TryExpr", v$g$6, v$g$7, v$g$8);
                yyValue.setLocation(location(yyStart));

                return new SemanticValue(yyValue, yyOption1, yyError);
              } // End scope for v$g$8.
            } // End scope for v$g$7.
          } else {
            yyError = yyError.select("'}' expected", yyBase);
          }
        }
      } else {
        yyError = yyError.select("'{' expected", yyBase);
      }
    }

    // Alternative 4.

    yyResult = pkey(yyStart);
    if (yyResult.hasValue("do")) {

      yyResult = pExpr(yyResult.index);
      yyError  = yyResult.select(yyError);
      if (yyResult.hasValue()) {
        Node v$g$9 = yyResult.semanticValue();

        yyOption1  = yyResult.index;

        yyResult = pSEMI(yyOption1);
        yyError  = yyResult.select(yyError, yyOption1);
        if (yyResult.hasValue()) {

          yyOption1  = yyResult.index;
        }

        yyBase   = yyOption1;
        yyResult = pkey(yyBase);
        if (yyResult.hasValue("while")) {

          yyBase   = yyResult.index;
          yyResult = psep(yyBase);
          if (yyResult.hasValue("(")) {

            yyResult = pENTER_NL_DISABLE(yyResult.index);
            yyError  = yyResult.select(yyError);
            if (yyResult.hasValue()) {

              yyResult = pExpr(yyResult.index);
              yyError  = yyResult.select(yyError);
              if (yyResult.hasValue()) {
                Node v$g$10 = yyResult.semanticValue();

                yyResult = pEXIT_NL_DISABLE(yyResult.index);
                yyError  = yyResult.select(yyError);
                if (yyResult.hasValue()) {

                  yyBase   = yyResult.index;
                  yyResult = psep(yyBase);
                  if (yyResult.hasValue(")")) {

                    yyValue = GNode.create("DoExpr", v$g$9, v$g$10);
                    yyValue.setLocation(location(yyStart));

                    return yyResult.createValue(yyValue, yyError);
                  } else {
                    yyError = yyError.select("')' expected", yyBase);
                  }
                }
              }
            }
          } else {
            yyError = yyError.select("'(' expected", yyBase);
          }
        } else {
          yyError = yyError.select("'while' expected", yyBase);
        }
      }
    }

    // Alternative 5.

    yyResult = pkey(yyStart);
    if (yyResult.hasValue("for")) {

      yyResult = pNotFunExpr$$Choice1(yyResult.index);
      yyError  = yyResult.select(yyError);
      if (yyResult.hasValue()) {
        Node v$g$11 = yyResult.semanticValue();

        yyResult = p$$Shared2(yyResult.index);
        yyError  = yyResult.select(yyError);
        if (yyResult.hasValue()) {

          yyOption1  = yyResult.index;

          yyBase   = yyOption1;
          yyResult = pkey(yyBase);
          if (yyResult.hasValue("yield")) {

            yyOption1  = yyResult.index;
          } else {
            yyError = yyError.select("'yield' expected", yyBase);
          }

          yyResult = pExpr(yyOption1);
          yyError  = yyResult.select(yyError);
          if (yyResult.hasValue()) {
            Node v$g$12 = yyResult.semanticValue();

            yyValue = GNode.create("ForExpr", v$g$11, v$g$12);
            yyValue.setLocation(location(yyStart));

            return yyResult.createValue(yyValue, yyError);
          }
        }
      }
    }

    // Alternative 6.

    yyResult = pkey(yyStart);
    if (yyResult.hasValue("throw")) {

      yyResult = pExpr(yyResult.index);
      yyError  = yyResult.select(yyError);
      if (yyResult.hasValue()) {
        Node v$g$13 = yyResult.semanticValue();

        yyValue = GNode.create("ThrowExpr", v$g$13);
        yyValue.setLocation(location(yyStart));

        return yyResult.createValue(yyValue, yyError);
      }
    }

    // Alternative 7.

    yyResult = pkey(yyStart);
    if (yyResult.hasValue("return")) {

      yyOption1  = yyResult.index;
      yyOpValue1 = null;

      yyResult = pExpr(yyOption1);
      yyError  = yyResult.select(yyError, yyOption1);
      if (yyResult.hasValue()) {
        Node v$el$6 = yyResult.semanticValue();

        yyOption1  = yyResult.index;
        yyOpValue1 = v$el$6;
      }
      { // Start scope for v$g$14.
        Node v$g$14 = yyOpValue1;

        yyValue = GNode.create("ReturnExpr", v$g$14);
        yyValue.setLocation(location(yyStart));

        return new SemanticValue(yyValue, yyOption1, yyError);
      } // End scope for v$g$14.
    }

    // Alternative 8.

    yyResult = pSimpleExpr(yyStart);
    yyError  = yyResult.select(yyError);
    if (yyResult.hasValue()) {
      Node v$g$15 = yyResult.semanticValue();

      yyBase   = yyResult.index;
      yyResult = pkey(yyBase);
      if (yyResult.hasValue("=")) {

        yyResult = pExpr(yyResult.index);
        yyError  = yyResult.select(yyError);
        if (yyResult.hasValue()) {
          Node v$g$16 = yyResult.semanticValue();

          yyValue = GNode.create("AssignmentExpr", v$g$15, v$g$16);
          yyValue.setLocation(location(yyStart));

          return yyResult.createValue(yyValue, yyError);
        }
      } else {
        yyError = yyError.select("'=' expected", yyBase);
      }
    }

    // Alternative 9.

    yyResult = pPostfixExpr(yyStart);
    yyError  = yyResult.select(yyError);
    if (yyResult.hasValue()) {
      Node v$g$17 = yyResult.semanticValue();

      final int yyChoice1 = yyResult.index;

      // Nested alternative 1.

      yyResult = pAscription(yyChoice1);
      yyError  = yyResult.select(yyError);
      if (yyResult.hasValue()) {
        Node v$g$18 = yyResult.semanticValue();

        yyValue = GNode.create("AscriptionExpr", v$g$17, v$g$18);
        yyValue.setLocation(location(yyStart));

        return yyResult.createValue(yyValue, yyError);
      }

      // Nested alternative 2.

      yyBase   = yyChoice1;
      yyResult = pkey(yyBase);
      if (yyResult.hasValue("match")) {

        yyBase   = yyResult.index;
        yyResult = psep(yyBase);
        if (yyResult.hasValue("{")) {

          yyResult = pCaseClauses(yyResult.index);
          yyError  = yyResult.select(yyError);
          if (yyResult.hasValue()) {
            Node v$g$19 = yyResult.semanticValue();

            yyBase   = yyResult.index;
            yyResult = psep(yyBase);
            if (yyResult.hasValue("}")) {

              yyValue = GNode.create("MatchExpr", v$g$17, v$g$19);
              yyValue.setLocation(location(yyStart));

              return yyResult.createValue(yyValue, yyError);
            } else {
              yyError = yyError.select("'}' expected", yyBase);
            }
          }
        } else {
          yyError = yyError.select("'{' expected", yyBase);
        }
      } else {
        yyError = yyError.select("'match' expected", yyBase);
      }

      // Nested alternative 3.

      yyValue = GNode.create("NotFunExpr", v$g$17);
      yyValue.setLocation(location(yyStart));

      return new SemanticValue(yyValue, yyChoice1, yyError);
    }

    // Done.
    yyError = yyError.select("not fun expr expected", yyStart);
    return yyError;
View Full Code Here

    // Alternative 2.

    yyValue = null;

    return new SemanticValue(yyValue, yyStart, yyError);
  }
View Full Code Here

        Node v$g$2 = yyOpValue1;

        yyValue = GNode.create("PostfixExpr", v$g$1, v$g$2);
        yyValue.setLocation(location(yyStart));

        return new SemanticValue(yyValue, yyOption1, yyError);
      } // End scope for v$g$2.
    }

    // Done.
    return yyError;
View Full Code Here

        Pair<Node> v$g$2 = yyRepValue1.reverse();

        yyValue = GNode.create("InfixExpr", v$g$1, v$g$2);
        yyValue.setLocation(location(yyStart));

        return new SemanticValue(yyValue, yyRepetition1, yyError);
      } // End scope for v$g$2.
    }

    // Done.
    return yyError;
View Full Code Here

            Node v$g$4 = yyOpValue1;

            yyValue = GNode.create("SimpleExpr", v$g$1, v$g$2, v$g$3, v$g$4);
            yyValue.setLocation(location(yyStart));

            return new SemanticValue(yyValue, yyOption1, yyError);
          } // End scope for v$g$4.
        }
      } // End scope for v$g$2.
    }

    // Alternative 2.

    yyResult = pLiteral(yyStart);
    yyError  = yyResult.select(yyError);
    if (yyResult.hasValue()) {
      Node v$g$5 = yyResult.semanticValue();

      yyOption1  = yyResult.index;
      yyOpValue1 = null;

      yyResult = pTypeArgs(yyOption1);
      yyError  = yyResult.select(yyError, yyOption1);
      if (yyResult.hasValue()) {
        Node v$el$5 = yyResult.semanticValue();

        yyOption1  = yyResult.index;
        yyOpValue1 = v$el$5;
      }
      { // Start scope for v$g$6.
        Node v$g$6 = yyOpValue1;

        yyResult = pSimpleExpr$$Star2(yyOption1);
        yyError  = yyResult.select(yyError);
        if (yyResult.hasValue()) {
          Pair<Node> v$g$7 = yyResult.semanticValue();

          yyOption1  = yyResult.index;
          yyOpValue1 = null;

          yyBase = yyOption1;
          yyC    = character(yyBase);
          if ('.' == yyC) {
            yyIndex = yyOption1 + 1;

            yyResult = pSKIP(yyIndex);
            yyError  = yyResult.select(yyError, yyOption1);
            if (yyResult.hasValue()) {

              yyResult = pErrorIdExpected(yyResult.index);
              yyError  = yyResult.select(yyError, yyOption1);
              if (yyResult.hasValue()) {
                Node v$el$8 = yyResult.semanticValue();

                yyOption1  = yyResult.index;
                yyOpValue1 = v$el$8;
              }
            }
          } else {
            yyError = yyError.select("'.' expected", yyBase);
          }
          { // Start scope for v$g$8.
            Node v$g$8 = yyOpValue1;

            yyValue = GNode.create("SimpleExpr", v$g$5, v$g$6, v$g$7, v$g$8);
            yyValue.setLocation(location(yyStart));

            return new SemanticValue(yyValue, yyOption1, yyError);
          } // End scope for v$g$8.
        }
      } // End scope for v$g$6.
    }

    // Alternative 3.

    yyResult = pPath(yyStart);
    yyError  = yyResult.select(yyError);
    if (yyResult.hasValue()) {
      Node v$g$9 = yyResult.semanticValue();

      yyOption1  = yyResult.index;
      yyOpValue1 = null;

      yyResult = pTypeArgs(yyOption1);
      yyError  = yyResult.select(yyError, yyOption1);
      if (yyResult.hasValue()) {
        Node v$el$9 = yyResult.semanticValue();

        yyOption1  = yyResult.index;
        yyOpValue1 = v$el$9;
      }
      { // Start scope for v$g$10.
        Node v$g$10 = yyOpValue1;

        yyOpValue1 = null;

        yyResult = pArgumentExprs(yyOption1);
        yyError  = yyResult.select(yyError, yyOption1);
        if (yyResult.hasValue()) {
          Node v$el$10 = yyResult.semanticValue();

          yyOption1  = yyResult.index;
          yyOpValue1 = v$el$10;
        }
        { // Start scope for v$g$11.
          Node v$g$11 = yyOpValue1;

          yyResult = pSimpleExpr$$Star3(yyOption1);
          yyError  = yyResult.select(yyError);
          if (yyResult.hasValue()) {
            Pair<Node> v$g$12 = yyResult.semanticValue();

            yyOption1  = yyResult.index;
            yyOpValue1 = null;

            yyBase = yyOption1;
            yyC    = character(yyBase);
            if ('.' == yyC) {
              yyIndex = yyOption1 + 1;

              yyResult = pSKIP(yyIndex);
              yyError  = yyResult.select(yyError, yyOption1);
              if (yyResult.hasValue()) {

                yyResult = pErrorIdExpected(yyResult.index);
                yyError  = yyResult.select(yyError, yyOption1);
                if (yyResult.hasValue()) {
                  Node v$el$13 = yyResult.semanticValue();

                  yyOption1  = yyResult.index;
                  yyOpValue1 = v$el$13;
                }
              }
            } else {
              yyError = yyError.select("'.' expected", yyBase);
            }
            { // Start scope for v$g$13.
              Node v$g$13 = yyOpValue1;

              yyOpValue1 = null;

              yyBase   = yyOption1;
              yyResult = pkey(yyBase);
              if (yyResult.hasValue(":")) {

                yyResult = pType(yyResult.index);
                yyError  = yyResult.select(yyError, yyOption1);
                if (yyResult.hasValue()) {
                  Node v$el$14 = yyResult.semanticValue();

                  yyOption1  = yyResult.index;
                  yyOpValue1 = v$el$14;
                }
              } else {
                yyError = yyError.select("':' expected", yyBase);
              }
              { // Start scope for v$g$14.
                Node v$g$14 = yyOpValue1;

                yyValue = GNode.create("SimpleExpr", v$g$9, v$g$10, v$g$11, v$g$12, v$g$13, v$g$14);
                yyValue.setLocation(location(yyStart));

                return new SemanticValue(yyValue, yyOption1, yyError);
              } // End scope for v$g$14.
            } // End scope for v$g$13.
          }
        } // End scope for v$g$11.
      } // End scope for v$g$10.
    }

    // Alternative 4.

    yyResult = pWildKey(yyStart);
    yyError  = yyResult.select(yyError);
    if (yyResult.hasValue()) {
      Node v$g$15 = yyResult.semanticValue();

      yyOption1  = yyResult.index;
      yyOpValue1 = null;

      yyResult = pTypeArgs(yyOption1);
      yyError  = yyResult.select(yyError, yyOption1);
      if (yyResult.hasValue()) {
        Node v$el$15 = yyResult.semanticValue();

        yyOption1  = yyResult.index;
        yyOpValue1 = v$el$15;
      }
      { // Start scope for v$g$16.
        Node v$g$16 = yyOpValue1;

        yyResult = pSimpleExpr$$Star4(yyOption1);
        yyError  = yyResult.select(yyError);
        if (yyResult.hasValue()) {
          Pair<Node> v$g$17 = yyResult.semanticValue();

          yyOption1  = yyResult.index;
          yyOpValue1 = null;

          yyBase = yyOption1;
          yyC    = character(yyBase);
          if ('.' == yyC) {
            yyIndex = yyOption1 + 1;

            yyResult = pSKIP(yyIndex);
            yyError  = yyResult.select(yyError, yyOption1);
            if (yyResult.hasValue()) {

              yyResult = pErrorIdExpected(yyResult.index);
              yyError  = yyResult.select(yyError, yyOption1);
              if (yyResult.hasValue()) {
                Node v$el$18 = yyResult.semanticValue();

                yyOption1  = yyResult.index;
                yyOpValue1 = v$el$18;
              }
            }
          } else {
            yyError = yyError.select("'.' expected", yyBase);
          }
          { // Start scope for v$g$18.
            Node v$g$18 = yyOpValue1;

            yyValue = GNode.create("SimpleExpr", v$g$15, v$g$16, v$g$17, v$g$18);
            yyValue.setLocation(location(yyStart));

            return new SemanticValue(yyValue, yyOption1, yyError);
          } // End scope for v$g$18.
        }
      } // End scope for v$g$16.
    }

    // Alternative 5.

    yyResult = pParenExpr(yyStart);
    yyError  = yyResult.select(yyError);
    if (yyResult.hasValue()) {
      Node v$g$19 = yyResult.semanticValue();

      yyOption1  = yyResult.index;
      yyOpValue1 = null;

      yyResult = pTypeArgs(yyOption1);
      yyError  = yyResult.select(yyError, yyOption1);
      if (yyResult.hasValue()) {
        Node v$el$19 = yyResult.semanticValue();

        yyOption1  = yyResult.index;
        yyOpValue1 = v$el$19;
      }
      { // Start scope for v$g$20.
        Node v$g$20 = yyOpValue1;

        yyResult = pSimpleExpr$$Star5(yyOption1);
        yyError  = yyResult.select(yyError);
        if (yyResult.hasValue()) {
          Pair<Node> v$g$21 = yyResult.semanticValue();

          yyOption1  = yyResult.index;
          yyOpValue1 = null;

          yyBase = yyOption1;
          yyC    = character(yyBase);
          if ('.' == yyC) {
            yyIndex = yyOption1 + 1;

            yyResult = pSKIP(yyIndex);
            yyError  = yyResult.select(yyError, yyOption1);
            if (yyResult.hasValue()) {

              yyResult = pErrorIdExpected(yyResult.index);
              yyError  = yyResult.select(yyError, yyOption1);
              if (yyResult.hasValue()) {
                Node v$el$22 = yyResult.semanticValue();

                yyOption1  = yyResult.index;
                yyOpValue1 = v$el$22;
              }
            }
          } else {
            yyError = yyError.select("'.' expected", yyBase);
          }
          { // Start scope for v$g$22.
            Node v$g$22 = yyOpValue1;

            yyOpValue1 = null;

            yyBase   = yyOption1;
            yyResult = pkey(yyBase);
            if (yyResult.hasValue(":")) {

              yyResult = pType(yyResult.index);
              yyError  = yyResult.select(yyError, yyOption1);
              if (yyResult.hasValue()) {
                Node v$el$23 = yyResult.semanticValue();

                yyOption1  = yyResult.index;
                yyOpValue1 = v$el$23;
              }
            } else {
              yyError = yyError.select("':' expected", yyBase);
            }
            { // Start scope for v$g$23.
              Node v$g$23 = yyOpValue1;

              yyValue = GNode.create("SimpleExpr", v$g$19, v$g$20, v$g$21, v$g$22, v$g$23);
              yyValue.setLocation(location(yyStart));

              return new SemanticValue(yyValue, yyOption1, yyError);
            } // End scope for v$g$23.
          } // End scope for v$g$22.
        }
      } // End scope for v$g$20.
    }

    // Alternative 6.

    yyResult = pBlockExpr(yyStart);
    yyError  = yyResult.select(yyError);
    if (yyResult.hasValue()) {
      Node v$g$24 = yyResult.semanticValue();

      yyOption1  = yyResult.index;
      yyOpValue1 = null;

      yyResult = pTypeArgs(yyOption1);
      yyError  = yyResult.select(yyError, yyOption1);
      if (yyResult.hasValue()) {
        Node v$el$24 = yyResult.semanticValue();

        yyOption1  = yyResult.index;
        yyOpValue1 = v$el$24;
      }
      { // Start scope for v$g$25.
        Node v$g$25 = yyOpValue1;

        yyResult = pSimpleExpr$$Star6(yyOption1);
        yyError  = yyResult.select(yyError);
        if (yyResult.hasValue()) {
          Pair<Node> v$g$26 = yyResult.semanticValue();

          yyOption1  = yyResult.index;
          yyOpValue1 = null;

          yyBase = yyOption1;
          yyC    = character(yyBase);
          if ('.' == yyC) {
            yyIndex = yyOption1 + 1;

            yyResult = pSKIP(yyIndex);
            yyError  = yyResult.select(yyError, yyOption1);
            if (yyResult.hasValue()) {

              yyResult = pErrorIdExpected(yyResult.index);
              yyError  = yyResult.select(yyError, yyOption1);
              if (yyResult.hasValue()) {
                Node v$el$27 = yyResult.semanticValue();

                yyOption1  = yyResult.index;
                yyOpValue1 = v$el$27;
              }
            }
          } else {
            yyError = yyError.select("'.' expected", yyBase);
          }
          { // Start scope for v$g$27.
            Node v$g$27 = yyOpValue1;

            yyValue = GNode.create("SimpleExpr", v$g$24, v$g$25, v$g$26, v$g$27);
            yyValue.setLocation(location(yyStart));

            return new SemanticValue(yyValue, yyOption1, yyError);
          } // End scope for v$g$27.
        }
      } // End scope for v$g$25.
    }

    // Alternative 7.

    yyResult = pNewExpr(yyStart);
    yyError  = yyResult.select(yyError);
    if (yyResult.hasValue()) {
      Node v$g$28 = yyResult.semanticValue();

      yyOption1  = yyResult.index;
      yyOpValue1 = null;

      yyResult = pTypeArgs(yyOption1);
      yyError  = yyResult.select(yyError, yyOption1);
      if (yyResult.hasValue()) {
        Node v$el$28 = yyResult.semanticValue();

        yyOption1  = yyResult.index;
        yyOpValue1 = v$el$28;
      }
      { // Start scope for v$g$29.
        Node v$g$29 = yyOpValue1;

        yyResult = pSimpleExpr$$Star7(yyOption1);
        yyError  = yyResult.select(yyError);
        if (yyResult.hasValue()) {
          Pair<Node> v$g$30 = yyResult.semanticValue();

          yyOption1  = yyResult.index;
          yyOpValue1 = null;

          yyBase = yyOption1;
          yyC    = character(yyBase);
          if ('.' == yyC) {
            yyIndex = yyOption1 + 1;

            yyResult = pSKIP(yyIndex);
            yyError  = yyResult.select(yyError, yyOption1);
            if (yyResult.hasValue()) {

              yyResult = pErrorIdExpected(yyResult.index);
              yyError  = yyResult.select(yyError, yyOption1);
              if (yyResult.hasValue()) {
                Node v$el$31 = yyResult.semanticValue();

                yyOption1  = yyResult.index;
                yyOpValue1 = v$el$31;
              }
            }
          } else {
            yyError = yyError.select("'.' expected", yyBase);
          }
          { // Start scope for v$g$31.
            Node v$g$31 = yyOpValue1;

            yyValue = GNode.create("SimpleExpr", v$g$28, v$g$29, v$g$30, v$g$31);
            yyValue.setLocation(location(yyStart));

            return new SemanticValue(yyValue, yyOption1, yyError);
          } // End scope for v$g$31.
        }
      } // End scope for v$g$29.
    }
View Full Code Here

    // Alternative 2.

    yyValue = Pair.empty();

    return new SemanticValue(yyValue, yyStart, yyError);
  }
View Full Code Here

TOP

Related Classes of xtc.parser.SemanticValue

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.