コード例 #1
0
        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);
            }
        }
コード例 #2
0
 public override void EnterFifthProgram(FifthProgram ctx)
 => Gather(ctx);
コード例 #3
0
 public override void EnterFifthProgram(FifthProgram ctx)
 {
     Assembly.Program = ctx;
 }
コード例 #4
0
 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")));
 }