Exemple #1
0
 public void Compile(FileStream input, BytecodeStream output)
 {
     Scanner scanner = new Scanner(input);
     ProgramNodeBuilder builder = new ProgramNodeBuilder();
     new Parser().Parse(scanner, builder);
     RISCCodeGenerator generator = new RISCCodeGenerator(output);
     builder.GetRootNode().Traverse(generator);
 }
Exemple #2
0
 public virtual void Parse(Scanner scanner, ProgramNodeBuilder nodeBuilder)
 {
 }