Skip to content
Snippets Groups Projects
Select Git revision
  • e5d36a8cabe3917c05e8d65a12f521a9a93b258e
  • master default
  • anders.blomdell
  • typeref
  • pragma
  • compiler-refactoring
  • labcomm2013
  • v2014.1
  • v2014.0
  • v2013.0
10 results

README

Blame
  • Forked from Anders Blomdell / LabComm
    Source project has a limited visibility.
    Dumper.java 974 B
    /* 
     * 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 Dumper extends Parser {
    	public static void main(String args[]) {
    		Start ast = parse(args[0]);
    
    		// Dump the AST
    		ast.dumpTree("  ", System.out);
    	}
    }