diff options
-rw-r--r-- | LuaSL/src/LuaSL_parser.c | 22 |
1 files changed, 0 insertions, 22 deletions
diff --git a/LuaSL/src/LuaSL_parser.c b/LuaSL/src/LuaSL_parser.c deleted file mode 100644 index 35cb782..0000000 --- a/LuaSL/src/LuaSL_parser.c +++ /dev/null | |||
@@ -1,22 +0,0 @@ | |||
1 | #include "LuaSL_LSL_tree.h" | ||
2 | #include <stdio.h> | ||
3 | |||
4 | |||
5 | int main(void) | ||
6 | { | ||
7 | const char test[] = " 4 + 2*10 + 3*( 5 + 1 )"; | ||
8 | LSL_Expression *exp; | ||
9 | |||
10 | if ((exp = newTree(test))) | ||
11 | { | ||
12 | int result = evaluateExpression(exp, 0); | ||
13 | |||
14 | printf("Result of '%s' is %d\n", test, result); | ||
15 | outputExpression(exp); | ||
16 | printf("\n"); | ||
17 | burnLSLExpression(exp); | ||
18 | } | ||
19 | |||
20 | return 0; | ||
21 | } | ||
22 | |||