Package

Source Code of TestDrive

import generator.CodeGenerator;
import analyzer.LexiconAnalyzer;
import analyzer.SyntacticAnalyzer;
import analyzer.SyntaxTree;
import generator.symbol.TableBuilder;

public class TestDrive {

  public static void main( String args[] ){
   
    LexiconAnalyzer lexicon = new LexiconAnalyzer( "codigo.tny" );
    SyntacticAnalyzer syntactic = new SyntacticAnalyzer( lexicon.analyze() );
    SyntaxTree tree = syntactic.analyze();
    TableBuilder builder = new TableBuilder( tree );
    CodeGenerator generator = new CodeGenerator( tree, builder.build() );
   
    generator.generate( "codigo.tm" );
  }
}
TOP

Related Classes of TestDrive

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.