// 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(); }
public abstract string GenerateCodeForGlobalsDefinitions(AbstractTranslator translator, IList <Pastel.Nodes.VariableDeclaration> globals);
public abstract string GenerateCodeForFunction(AbstractTranslator translator, Pastel.Nodes.FunctionDefinition funcDef);