Java tutorial
/* * Main.java * * Copyright (C) 2010 Leo Osvald <leo.osvald@gmail.com> * * This file is part of SPoCC. * * SPoCC 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. * * SPoCC 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 SPoCC. If not, see <http://www.gnu.org/licenses/>. */ package hr.fer.spocc; import java.lang.reflect.InvocationTargetException; import org.apache.commons.lang.reflect.MethodUtils; /** * Mjesto od kuda se pokrece program - SPOCC kompajler. * * @author Leo Osvald * */ public class Main { public static void main(String[] args) throws NoSuchMethodException, IllegalAccessException, InvocationTargetException, ClassNotFoundException { if (args.length < 1) args = new String[1]; args[0] = "src/test/resources/minusLang-01.source"; MethodUtils.invokeExactStaticMethod(Class.forName("hr.fer.spocc.lexer._GeneratedMain"), "main", new Object[] { args }); } }