001 package toolbus.parsercup;
002
003 import java_cup.runtime.Symbol;
004 import toolbus.ToolBus;
005
006 public class TestParser {
007
008 /**
009 * @param args
010 */
011 public static void main(String[] args) {
012 try {
013 //String src = "/home/paulk/software/installed2/sdf-meta/share/sdf-meta/start-def-dump.tb";
014 //String src = "/home/paulk/.eclipse/toolbusNG/toolbus/test/Notes.tb";
015 String src = "/home/paulk/.eclipse/toolbusNG/toolbus/parsercup/tmp";
016
017 parser parser_obj = new parser(new ToolBus(new String[0]), src);
018
019 Symbol parse_tree = parser_obj.debug_parse();
020 System.err.println("parse tree is:\n" + parse_tree.value);
021 } catch (Exception e) {
022 // TODO Auto-generated catch block
023 e.printStackTrace();
024 }
025
026 }
027
028 }