Package xtc.parser

Examples of xtc.parser.SemanticValue


    // Alternative 2.

    yyValue = Pair.empty();

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


    // Alternative 2.

    yyValue = Pair.empty();

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

    // Alternative 2.

    yyValue = Pair.empty();

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

    if (! yyPredMatched) {

      yyValue = GNode.create("Error", "Id expected");

      setLocation(yyValue, yyStart);
      return new SemanticValue(yyValue, yyStart, yyError);
    } else {
      yyError = yyError.select("error id expected expected", yyStart);
    }

    // Done.
View Full Code Here

      case '_':
      case '{':
        {
          yyValue = null;

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

      default:
        /* No match. */
      }
View Full Code Here

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

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

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

    // Alternative 2.

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

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

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

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

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

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

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

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

        Node v$g$2 = yyOpValue1;

        yyValue = GNode.create("NotFunType", 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

    // Alternative 2.

    yyValue = Pair.empty();

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

          Node v$g$3 = yyOpValue1;

          yyValue = GNode.create("CompoundType", 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.
      }
    }

    // Alternative 2.
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.