summaryrefslogtreecommitdiff
path: root/utils/themeeditor/main.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'utils/themeeditor/main.cpp')
-rw-r--r--utils/themeeditor/main.cpp15
1 files changed, 11 insertions, 4 deletions
diff --git a/utils/themeeditor/main.cpp b/utils/themeeditor/main.cpp
index 49e870c369..27ce2da23f 100644
--- a/utils/themeeditor/main.cpp
+++ b/utils/themeeditor/main.cpp
@@ -27,6 +27,7 @@ extern "C"
27 27
28#include <cstdlib> 28#include <cstdlib>
29#include <cstdio> 29#include <cstdio>
30#include <iostream>
30 31
31#include <QtGui/QApplication> 32#include <QtGui/QApplication>
32#include <QTreeView> 33#include <QTreeView>
@@ -36,15 +37,21 @@ extern "C"
36int main(int argc, char* argv[]) 37int main(int argc, char* argv[])
37{ 38{
38 39
39 char doc[] = "%Vd(U);Hey\n%?bl(test,3,5,2,1)<param2|param3>"; 40 char doc[] = "#Comment\n%Vd(U);Hey\n%?bl(test,3,5,2,1)<param2|param3>";
40 41
41 struct skin_element* test = skin_parse(doc); 42 struct skin_element* test = skin_parse(doc);
42 43
43 skin_debug_tree(test); 44 ParseTreeNode tree(test);
45 std::cout << "----" << std::endl;
46 if(std::string(doc) == tree.genCode().toStdString())
47 std::cout << "Code in/out matches" << std::endl;
48 else
49 std::cout << "Match error" << std::endl;
44 50
45 skin_free_tree(test);
46 51
52 skin_free_tree(test);
47 53
54/*
48 QApplication app(argc, argv); 55 QApplication app(argc, argv);
49 56
50 QTreeView tree; 57 QTreeView tree;
@@ -53,7 +60,7 @@ int main(int argc, char* argv[])
53 tree.show(); 60 tree.show();
54 61
55 return app.exec(); 62 return app.exec();
56 63*/
57 return 0; 64 return 0;
58} 65}
59 66