diff options
author | David Walter Seikel | 2012-01-06 17:01:22 +1000 |
---|---|---|
committer | David Walter Seikel | 2012-01-06 17:01:22 +1000 |
commit | 2a09380ae3bf4c31e85ebb5832f30846201cc3b0 (patch) | |
tree | ad0d487184a5c694572b7fe1aa71dcf8bd3e0122 /LuaSL | |
parent | Even more debugging stuff, and make it selectable if the parser uses #defines... (diff) | |
download | SledjHamr-2a09380ae3bf4c31e85ebb5832f30846201cc3b0.zip SledjHamr-2a09380ae3bf4c31e85ebb5832f30846201cc3b0.tar.gz SledjHamr-2a09380ae3bf4c31e85ebb5832f30846201cc3b0.tar.bz2 SledjHamr-2a09380ae3bf4c31e85ebb5832f30846201cc3b0.tar.xz |
Folded this code into the rest of the C file, but forgot to remove the file.
Diffstat (limited to '')
-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 | |||