aboutsummaryrefslogtreecommitdiff
path: root/interpreter.c
diff options
context:
space:
mode:
authorPřemysl Janouch <p.janouch@gmail.com>2017-05-25 18:57:01 +0200
committerPřemysl Janouch <p.janouch@gmail.com>2017-05-25 18:57:01 +0200
commit5ae69c1cfcc05f3dce30a60fcfe38ce6de7a799d (patch)
tree8c363842c352acb5c606f3f1587cd9b0eebfe633 /interpreter.c
parent76df28e492de6b6b11e0777576834a2308fba6c3 (diff)
downloadell-5ae69c1cfcc05f3dce30a60fcfe38ce6de7a799d.tar.gz
ell-5ae69c1cfcc05f3dce30a60fcfe38ce6de7a799d.tar.xz
ell-5ae69c1cfcc05f3dce30a60fcfe38ce6de7a799d.zip
Finish implementation of printing
Now readds all syntax sugar and quotes strings properly. Removed automatic line breaking and indenting since it is complicated. Removed #ifndef since it stopped making any sense.
Diffstat (limited to 'interpreter.c')
-rw-r--r--interpreter.c5
1 files changed, 0 insertions, 5 deletions
diff --git a/interpreter.c b/interpreter.c
index 4159e08..3743c4a 100644
--- a/interpreter.c
+++ b/interpreter.c
@@ -38,11 +38,6 @@ main (int argc, char *argv[]) {
parser_init (&parser, buf.s, buf.len - 1);
const char *e = NULL;
struct item *program = parser_run (&parser, &e);
-#ifndef NDEBUG
- printf ("\x1b[1m%s\x1b[0m\n", buf.s);
- print_tree (program, 0);
- printf ("\n\n");
-#endif
free (buf.s);
if (e) {
printf ("%s: %s\n", "parse error", e);