예제 #1
0
 // Overridden in languages that require a function to be declared separately in order for declaration order to not matter, such as C.
 public virtual string GenerateCodeForFunctionDeclaration(AbstractTranslator translator, Pastel.Nodes.FunctionDefinition funcDef)
 {
     if (this.ParentPlatform != null)
     {
         return(this.ParentPlatform.GenerateCodeForFunctionDeclaration(translator, funcDef));
     }
     throw new NotSupportedException();
 }
예제 #2
0
 public abstract string GenerateCodeForGlobalsDefinitions(AbstractTranslator translator, IList <Pastel.Nodes.VariableDeclaration> globals);
예제 #3
0
 public abstract string GenerateCodeForFunction(AbstractTranslator translator, Pastel.Nodes.FunctionDefinition funcDef);