Example #1
0
 //------------------------------------------------------------------------------------------------------------
 public Compiler(int max = 100)
 {
     _symbolTable       = SymbolTable.Make();
     _programCode       = EPB.Make();
     _compiledCode      = EPML.Make().FillTo(max);
     _flags             = Flags.Make();
     _workingLineNumber = 0;
     resetForLoopVariables();
 }
Example #2
0
 //------------------------------------------------------------------------------------------------------------
 public Compiler LoadProgram(EPB program)
 {
     _programCode = program;
     return(this);
 }
Example #3
0
 public Compiler LoadProgram(string[] lines)
 {
     return(LoadProgram(EPB.Make(lines)));
 }