Robert Bieber | 0769fc5 | 2010-05-25 22:24:08 +0000 | [diff] [blame^] | 1 | namespace wps |
| 2 | { |
| 3 | extern "C" |
| 4 | { |
| 5 | #include "skin_parser.h" |
| 6 | #include "skin_debug.h" |
| 7 | } |
| 8 | } |
| 9 | |
| 10 | #include <cstdlib> |
| 11 | #include <cstdio> |
| 12 | |
| 13 | #include <QtGui/QApplication> |
| 14 | #include <QFileSystemModel> |
| 15 | #include <QTreeView> |
| 16 | |
| 17 | int main(int argc, char* argv[]) |
| 18 | { |
| 19 | |
| 20 | char* doc = "%Vd(U)\n\n%?bl(test,3,5,2,1)<param2|param3>"; |
| 21 | |
| 22 | struct wps::skin_element* test = wps::skin_parse(doc); |
| 23 | |
| 24 | wps::skin_debug_tree(test); |
| 25 | |
| 26 | wps::skin_free_tree(test); |
| 27 | |
| 28 | |
| 29 | return 0; |
| 30 | } |
| 31 | |