system/src/sc/lang/AbstractInterpreter.java
public void includeSuper() {
      if (inputRelName != null) {
         Layer curLayer = includeLayer == null ? system.buildLayer : includeLayer;
         if (curLayer == null)
            throw new IllegalArgumentException("*** No current layer for includeSuper()");
         // Using the layer position for the runtime view - TODO: should this use byPosition = false?
         SrcEntry srcEnt = curLayer.getBaseLayerFileFromRelName(inputRelName, true);
         if (srcEnt != null) {
            // Setting the currentLayer here because the includedScript has to expect the context of the layer in which it's defined, since it can be used from multiple places.
            // The normal include always picks a file that's defined in the context of the buildLayer.
            pushCurrentInput(true);
            try {
               this.inputFileName = srcEnt.absFileName;
               this.inputRelName = srcEnt.relFileName;
               includeLayer = srcEnt.layer;
               updateCurrentLayer(srcEnt.layer);
               resetInput();
               this.returnOnInputChange = true;
               if (!readParseLoop())
                  pendingInput = new StringBuilder();
            }
            finally {
               popCurrentInput();
            }
         }
         else
            throw new IllegalArgumentException("includeSuper - no super script for: " + inputFileName + " relative name: " + inputRelName + " from layer: " + curLayer);
      }
   }
// for the test scripts, if we are running as script "testScript.scr" - let's find the previous testScript.scr and include it as above
for the test scripts, if we are running as script "testScript.scr" - let's find the previous testScript.scr and include it as above
for the test scripts if we are running as script " testScript . scr " - let ' s find the previous testScript . scr and include it as above
public void includeSuper() {
      if (inputRelName != null) {
         Layer curLayer = includeLayer == null ? system.buildLayer : includeLayer;
         if (curLayer == null)
            throw new IllegalArgumentException("*** No current layer for includeSuper()");
         SrcEntry srcEnt = curLayer.getBaseLayerFileFromRelName(inputRelName, true);
         if (srcEnt != null) {
            pushCurrentInput(true);
            try {
               this.inputFileName = srcEnt.absFileName;
               this.inputRelName = srcEnt.relFileName;
               includeLayer = srcEnt.layer;
               updateCurrentLayer(srcEnt.layer);
               resetInput();
               this.returnOnInputChange = true;
               if (!readParseLoop())
                  pendingInput = new StringBuilder();
            }
            finally {
               popCurrentInput();
            }
         }
         else
            throw new IllegalArgumentException("includeSuper - no super script for: " + inputFileName + " relative name: " + inputRelName + " from layer: " + curLayer);
      }
   }
public void includeSuper ( ) { if ( inputRelName != null ) { Layer curLayer = includeLayer == null ? system . buildLayer : includeLayer ; if ( curLayer == null ) throw new IllegalArgumentException ( "*** No current layer for includeSuper()" ) ; SrcEntry srcEnt = curLayer . getBaseLayerFileFromRelName ( inputRelName , true ) ; if ( srcEnt != null ) { pushCurrentInput ( true ) ; try { this . inputFileName = srcEnt . absFileName ; this . inputRelName = srcEnt . relFileName ; includeLayer = srcEnt . layer ; updateCurrentLayer ( srcEnt . layer ) ; resetInput ( ) ; this . returnOnInputChange = true ; if ( ! readParseLoop ( ) ) pendingInput = new StringBuilder ( ) ; } finally { popCurrentInput ( ) ; } } else throw new IllegalArgumentException ( "includeSuper - no super script for: " + inputFileName + " relative name: " + inputRelName + " from layer: " + curLayer ) ; } }
for the test scripts, if we are running as script "testScript.scr" - let's find the previous testScript.scr and include it as above
for the test scripts if we are running as script " testScript . scr " - let ' s find the previous testScript . scr and include it as above
// Using the layer position for the runtime view - TODO: should this use byPosition = false? // Setting the currentLayer here because the includedScript has to expect the context of the layer in which it's defined, since it can be used from multiple places. // The normal include always picks a file that's defined in the context of the buildLayer.