Skip to content
Snippets Groups Projects
Select Git revision
  • ac5cebd608d94d45c4aeb6b3a03e4a131860c781
  • master default
  • multipleinheritance
3 results

DumpClasses.java

Blame
  • user avatar
    Anders Nilsson authored
    Added Licensing information to source files (GPL v3).
    c4cde341
    History
    DumpClasses.java 1.09 KiB
    // package programs;
    
    /* 
     * Copyright (C) 2006,2010  Anders Nilsson <anders.nilsson@control.lth.se>
     *
     * This file is part of OntologyCompiler.
     *
     * OntologyCompiler is free software: you can redistribute it and/or modify
     * it under the terms of the GNU General Public License as published by
     * the Free Software Foundation, either version 3 of the License, or
     * (at your option) any later version.
    
     * OntologyCompiler is distributed in the hope that it will be useful,
     * but WITHOUT ANY WARRANTY; without even the implied warranty of
     * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
     * GNU General Public License for more details.
     
     * You should have received a copy of the GNU General Public License
     * along with OntologyCompiler.  If not, see <http://www.gnu.org/licenses/>.
     */
    
    import AST.Start;
    
    public class DumpClasses extends Parser {
    	public static void main(String args[]) {
    		Start ast = parse(args[0]);
    
    		// Dump the AST
    // 		ast.dumpTree("  ", System.out);
    
    		// Should be generated to a file when sufficiently
    		// implemented. AndersN 060210
    		ast.dumpClasses(System.out);
    	}
    }