diff options
1 files changed, 5 insertions, 4 deletions
| -rw-r--r-- | src/main.cl | 9 |
diff --git a/src/main.cl b/src/main.cl index 9ebb87b..4040444 100644 --- a/src/main.cl +++ b/src/main.cl @@ -2,9 +2,10 @@ class Main inherits System { sce: StringConsumerEngine <- new StringConsumerEngine; main() : Object {{ - sce.init(" abc"); - sce.try_consume(); - sce.try_consume(); - sce.out(); + sce.init(" "); + while not sce.empty() + loop + assert(sce.try_consume(), "main", "couldn't consume entire input!") + pool; }}; }; |
