public override void EnterFifthProgram(FifthProgram ctx) { var overloads = ctx.Functions.Where(f => f is OverloadedFunctionDefinition).ToArray(); for (int i = 0; i < overloads.Length; i++) { ProcessOverloadedFunctionDefinition(overloads[i] as OverloadedFunctionDefinition); } }
public override void EnterFifthProgram(FifthProgram ctx) => Gather(ctx);
public override void EnterFifthProgram(FifthProgram ctx) { Assembly.Program = ctx; }
public override void EnterFifthProgram(FifthProgram ctx) { ctx.Functions.Add(new BuiltinFunctionDefinition("print", "void", ("format", "string"), ("value", "string"))); ctx.Functions.Add(new BuiltinFunctionDefinition("print", "void", ("value", "string"))); ctx.Functions.Add(new BuiltinFunctionDefinition("write", "void", ("value", "string"))); }