blob: 3f7379e0dd3489225f66925f8d05562d01d399bb [file] [log] [blame]
Robert Biebera089fcc2010-05-25 22:39:07 +00001/***************************************************************************
2 * __________ __ ___.
3 * Open \______ \ ____ ____ | | _\_ |__ _______ ___
4 * Source | _// _ \_/ ___\| |/ /| __ \ / _ \ \/ /
5 * Jukebox | | ( <_> ) \___| < | \_\ ( <_> > < <
6 * Firmware |____|_ /\____/ \___ >__|_ \|___ /\____/__/\_ \
7 * \/ \/ \/ \/ \/
8 * $Id$
9 *
10 * Copyright (C) 2010 Robert Bieber
11 *
12 * This program is free software; you can redistribute it and/or
13 * modify it under the terms of the GNU General Public License
14 * as published by the Free Software Foundation; either version 2
15 * of the License, or (at your option) any later version.
16 *
17 * This software is distributed on an "AS IS" basis, WITHOUT WARRANTY OF ANY
18 * KIND, either express or implied.
19 *
20 ****************************************************************************/
21
Robert Bieber0769fc52010-05-25 22:24:08 +000022#include "skin_parser.h"
23#include "skin_debug.h"
Robert Biebera9848ce2010-06-01 21:25:02 +000024#include "editorwindow.h"
Robert Bieber0769fc52010-05-25 22:24:08 +000025
26#include <cstdlib>
27#include <cstdio>
Robert Bieber6980c1e2010-05-29 00:04:04 +000028#include <iostream>
Robert Bieber0769fc52010-05-25 22:24:08 +000029
30#include <QtGui/QApplication>
Robert Bieber0769fc52010-05-25 22:24:08 +000031#include <QTreeView>
32
Robert Bieber565cd002010-05-26 21:13:14 +000033#include "parsetreemodel.h"
34
Robert Bieber0769fc52010-05-25 22:24:08 +000035int main(int argc, char* argv[])
36{
Robert Bieber9f2e1b12010-05-30 01:47:35 +000037 QApplication app(argc, argv);
Robert Bieber0769fc52010-05-25 22:24:08 +000038
Robert Biebera9848ce2010-06-01 21:25:02 +000039 EditorWindow mainWindow;
40 mainWindow.show();
Robert Bieber9f2e1b12010-05-30 01:47:35 +000041
42 return app.exec();
43
44 /*
Robert Bieber8ea056d2010-05-27 19:57:15 +000045 struct skin_element* test = skin_parse(doc);
Robert Bieber0769fc52010-05-25 22:24:08 +000046
Robert Bieber9f2e1b12010-05-30 01:47:35 +000047 ParseTreeModel tree(doc);
Robert Bieber6980c1e2010-05-29 00:04:04 +000048 std::cout << "----" << std::endl;
49 if(std::string(doc) == tree.genCode().toStdString())
50 std::cout << "Code in/out matches" << std::endl;
51 else
52 std::cout << "Match error" << std::endl;
53
Robert Bieber0769fc52010-05-25 22:24:08 +000054
Robert Bieber8ea056d2010-05-27 19:57:15 +000055 skin_free_tree(test);
Robert Bieber9f2e1b12010-05-30 01:47:35 +000056 */
Robert Bieber8ea056d2010-05-27 19:57:15 +000057
Robert Bieber0769fc52010-05-25 22:24:08 +000058}
59