Package org.openquark.cal.internal.runtime.lecc

Examples of org.openquark.cal.internal.runtime.lecc.RTValue$InternalException


   * f
   * This method implements the function logic of the CAL function Cal.Utilities.DirectedGraph.$lambda$stronglyConnectedComponentsInternal$1
   */
  public final RTValue f(final RTResultFunction $rootNode, final RTExecutionContext $ec) throws CALExecutorException {
    // Arguments
    RTValue num = $rootNode.getArgValue();
    RTValue newVisited = $rootNode.prevArg().getArgValue();

    // Release the fields in the root node to open them to garbage collection
    $rootNode.clearMembers();
    return
      f2S(
View Full Code Here


   * f
   * This method implements the function logic of the CAL function Cal.Core.Prelude.appendList
   */
  public final RTValue f(final RTResultFunction $rootNode, final RTExecutionContext $ec) throws CALExecutorException {
    // Arguments
    RTValue list2 = $rootNode.getArgValue();
    RTValue list1 = $rootNode.prevArg().getArgValue();

    // Release the fields in the root node to open them to garbage collection
    $rootNode.clearMembers();
    return
      f2S(
        RTValue.lastRef(list1.evaluate($ec), list1 = null),
        RTValue.lastRef(list2, list2 = null),
        $ec);
  }
View Full Code Here

      }

      case 1: {
        // Cal.Core.Prelude.Cons
        // Decompose data type to access members.
        RTValue list1Head = $case1.get_head();
        RTValue list1Tail = $case1.get_tail();

        return
          new TYPE_List.CAL_Cons(
            list1Head,
            new RTFullApp.General._2._L(
View Full Code Here

   * f
   * This method implements the function logic of the CAL function Cal.Utilities.DirectedGraph.$lambda$foldReachableInDepthFirstSearchOrder$2
   */
  public final RTValue f(final RTResultFunction $rootNode, final RTExecutionContext $ec) throws CALExecutorException {
    // Arguments
    RTValue vertexNum = $rootNode.getArgValue();
    RTValue $currentRootNode;
    RTValue accum = ($currentRootNode = $rootNode.prevArg()).getArgValue();
    RTValue graph =
      ($currentRootNode = $currentRootNode.prevArg()).getArgValue();
    RTValue finishVertexFn = $currentRootNode.prevArg().getArgValue();

    // Release the fields in the root node to open them to garbage collection
    $rootNode.clearMembers();
    return
      f4S(
View Full Code Here

   * f
   * This method implements the function logic of the CAL function Cal.Utilities.DirectedGraph.groupByFirst
   */
  public final RTValue f(final RTResultFunction $rootNode, final RTExecutionContext $ec) throws CALExecutorException {
    // Arguments
    RTValue tuples = $rootNode.getArgValue();
    RTValue $currentRootNode;
    RTValue $dictvarCal_Core_Prelude_Ord_27 =
      ($currentRootNode = $rootNode.prevArg()).getArgValue();
    RTValue $dictvarCal_Core_Prelude_Ord_26 =
      $currentRootNode.prevArg().getArgValue();

    // Release the fields in the root node to open them to garbage collection
    $rootNode.clearMembers();
    return
View Full Code Here

      _value = member0;
    }

    public final RTValue f(final RTResultFunction $rootNode, final RTExecutionContext $ec) throws CALExecutorException {
      // Arguments
      final RTValue $arg0 = $rootNode.getArgValue();

      return new CAL_Just($arg0);
    }
View Full Code Here

    public static final CAL_Just make() {
      return CAL_Just.$instance;
    }

    public final RTValue get_value() {
      RTValue _value$;

      if (((java.lang.Object)
        (_value$ = _value))
         instanceof RTResultFunction) {
        return _value = _value$.getValue();
      }
      return _value$;
    }
View Full Code Here

   * f
   * This method implements the function logic of the CAL function Cal.Utilities.DirectedGraph.$lambda$reverse$2
   */
  public final RTValue f(final RTResultFunction $rootNode, final RTExecutionContext $ec) throws CALExecutorException {
    // Arguments
    RTValue accum = $rootNode.getArgValue();
    RTValue $currentRootNode;
    RTValue neighbourSet =
      ($currentRootNode = $rootNode.prevArg()).getArgValue();
    RTValue startVertex = $currentRootNode.prevArg().getArgValue();

    // Release the fields in the root node to open them to garbage collection
    $rootNode.clearMembers();
    return
      f3S(
View Full Code Here

   * f
   * This method implements the function logic of the CAL function Cal.Core.Prelude.upFromInt
   */
  public final RTValue f(final RTResultFunction $rootNode, final RTExecutionContext $ec) throws CALExecutorException {
    // Arguments
    RTValue start$L = $rootNode.getArgValue();

    // Release the fields in the root node to open them to garbage collection
    $rootNode.clearMembers();
    return f1S(start$L.evaluate($ec).getOrdinalValue(), $ec);
  }
View Full Code Here

   * f
   * This method implements the function logic of the CAL function Cal.Core.Prelude.if
   */
  public final RTValue f(final RTResultFunction $rootNode, final RTExecutionContext $ec) throws CALExecutorException {
    // Arguments
    RTValue $else = $rootNode.getArgValue();
    RTValue $currentRootNode;
    RTValue $then = ($currentRootNode = $rootNode.prevArg()).getArgValue();
    RTValue $cond$L = $currentRootNode.prevArg().getArgValue();

    // Release the fields in the root node to open them to garbage collection
    $rootNode.clearMembers();
    return
      f3S(
        $cond$L.evaluate($ec).getBooleanValue(),
        RTValue.lastRef($then, $then = null),
        RTValue.lastRef($else, $else = null),
        $ec);
  }
View Full Code Here

TOP

Related Classes of org.openquark.cal.internal.runtime.lecc.RTValue$InternalException

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.