Package avrora.util

Examples of avrora.util.SectionFile


        Status.begin("Parsing "+fname);
        try {
            Architecture a = parser.Architecture();
            Status.success();

            SectionFile sf = createSectionFile("interpreter", "INTERPRETER GENERATOR", INTERPRETER);
            if (sf != null) {
                // generate vanilla interpreter
                new InterpreterGenerator(a, np(sf)).generate();
                sf.close();
                Status.success();
            }

            sf = createSectionFile("Instr.* inner classes", "INSTR GENERATOR", CLASSES);
            if ( sf != null) {
                // generate instruction classes
                new ClassGenerator(a, np(sf)).generate();
                sf.close();
                Status.success();
            }

            sf = createSectionFile("codemap", "CODEBUILDER GENERATOR", CODEMAP);
            if (sf != null) {
                // generate instruction classes
                new CodemapGenerator(a, np(sf)).generate();
                sf.close();
                Status.success();
            }

            sf = createSectionFile("disassembler", "DISASSEM GENERATOR", DISASSEM);
            if (sf != null) {
                // generate the disassembler
                new DisassemblerGenerator(a, np(sf)).generate();
                sf.close();
                Status.success();
            }

            String distest = DISTEST.get();
            if ( !"".equals(distest) ) {
View Full Code Here


    private SectionFile createSectionFile(String gen, String sect, Option.Str opt) throws IOException {
        String s = opt.get();
        if ( !"".equals(s) ) {
            Status.begin("Generating "+gen+" to " + s);
            return new SectionFile(s, sect);
        } else
            return null;
    }
View Full Code Here

TOP

Related Classes of avrora.util.SectionFile

Copyright © 2018 www.massapicom. 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.