Package xtc.parser

Examples of xtc.parser.ParseError


  private Result pPostfixExpr$1(final int yyStart) throws IOException {
    Result     yyResult;
    int        yyOption1;
    Node       yyOpValue1;
    Node       yyValue;
    ParseError yyError = ParseError.DUMMY;

    // Alternative 1.

    yyResult = pInfixExpr(yyStart);
    yyError  = yyResult.select(yyError);
View Full Code Here


  private Result pInfixExpr(final int yyStart) throws IOException {
    Result     yyResult;
    int        yyRepetition1;
    Pair<Node> yyRepValue1;
    Node       yyValue;
    ParseError yyError = ParseError.DUMMY;

    // Alternative 1.

    yyResult = pPrefixExpr(yyStart);
    yyError  = yyResult.select(yyError);
View Full Code Here

   */
  private Result pInfixExprRest(final int yyStart) throws IOException {
    Result     yyResult;
    int        yyOption1;
    Node       yyValue;
    ParseError yyError = ParseError.DUMMY;

    // Alternative 1.

    yyResult = pId(yyStart);
    yyError  = yyResult.select(yyError);
View Full Code Here

  private Result pPrefixExpr$1(final int yyStart) throws IOException {
    Result     yyResult;
    int        yyOption1;
    String     yyOpValue1;
    Node       yyValue;
    ParseError yyError = ParseError.DUMMY;

    // Alternative 1.

    yyOption1  = yyStart;
    yyOpValue1 = null;
View Full Code Here

   * @throws IOException Signals an I/O error.
   */
  private Result pPrefixExpr$$Choice1(final int yyStart) throws IOException {
    Result     yyResult;
    String     yyValue;
    ParseError yyError = ParseError.DUMMY;

    // Alternative 1.

    yyResult = pop(yyStart);
    if (yyResult.hasValue("-")) {
      yyValue = "-";

      return yyResult.createValue(yyValue, yyError);
    }

    // Alternative 2.

    yyResult = pop(yyStart);
    if (yyResult.hasValue("+")) {
      yyValue = "+";

      return yyResult.createValue(yyValue, yyError);
    }

    // Alternative 3.

    yyResult = pop(yyStart);
    if (yyResult.hasValue("~")) {
      yyValue = "~";

      return yyResult.createValue(yyValue, yyError);
    }

    // Alternative 4.

    yyResult = pop(yyStart);
    if (yyResult.hasValue("!")) {
      yyValue = "!";

      return yyResult.createValue(yyValue, yyError);
    }

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

    Result     yyResult;
    int        yyBase;
    int        yyOption1;
    Node       yyOpValue1;
    Node       yyValue;
    ParseError yyError = ParseError.DUMMY;

    // Alternative 1.

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

      yyOption1  = yyResult.index;
      yyOpValue1 = null;

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

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

        yyResult = pSimpleExpr$$Star1(yyOption1);
        yyError  = yyResult.select(yyError);
        if (yyResult.hasValue()) {
          Pair<Node> v$g$3 = 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$4 = yyResult.semanticValue();

                yyOption1  = yyResult.index;
                yyOpValue1 = v$el$4;
              }
            }
          } else {
            yyError = yyError.select("'.' expected", yyBase);
          }
          { // Start scope for v$g$4.
            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);
View Full Code Here

  /** Actually parse org.netbeans.modules.scala.core.rats.ParserScala.SimpleExpr$$Star1. */
  private Result pSimpleExpr$$Star1$1(final int yyStart) throws IOException {
    Result     yyResult;
    Pair<Node> yyValue;
    ParseError yyError = ParseError.DUMMY;

    // Alternative 1.

    yyResult = pMember(yyStart);
    yyError  = yyResult.select(yyError);
View Full Code Here

  /** Actually parse org.netbeans.modules.scala.core.rats.ParserScala.SimpleExpr$$Star2. */
  private Result pSimpleExpr$$Star2$1(final int yyStart) throws IOException {
    Result     yyResult;
    Pair<Node> yyValue;
    ParseError yyError = ParseError.DUMMY;

    // Alternative 1.

    yyResult = pMember(yyStart);
    yyError  = yyResult.select(yyError);
View Full Code Here

  /** Actually parse org.netbeans.modules.scala.core.rats.ParserScala.SimpleExpr$$Star3. */
  private Result pSimpleExpr$$Star3$1(final int yyStart) throws IOException {
    Result     yyResult;
    Pair<Node> yyValue;
    ParseError yyError = ParseError.DUMMY;

    // Alternative 1.

    yyResult = pMember(yyStart);
    yyError  = yyResult.select(yyError);
View Full Code Here

  /** Actually parse org.netbeans.modules.scala.core.rats.ParserScala.SimpleExpr$$Star4. */
  private Result pSimpleExpr$$Star4$1(final int yyStart) throws IOException {
    Result     yyResult;
    Pair<Node> yyValue;
    ParseError yyError = ParseError.DUMMY;

    // Alternative 1.

    yyResult = pMember(yyStart);
    yyError  = yyResult.select(yyError);
View Full Code Here

TOP

Related Classes of xtc.parser.ParseError

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.