From 61f138b20a2a26a08155f414049acc0bb348ed31 Mon Sep 17 00:00:00 2001 From: Syndamia Date: Sat, 1 Nov 2025 17:19:28 +0200 Subject: feat(main): Try to consume the entire input --- src/main.cl | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) (limited to 'src/main.cl') 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; }}; }; -- cgit v1.3.1-26-gb76a