From c8425a6db94098c56035b126c3b7b347eef924bc Mon Sep 17 00:00:00 2001 From: Xircon Date: Sun, 2 Aug 2026 03:53:55 -0400 Subject: [PATCH] bocc comments --- examples/compact/exitall.x | 16 ++++++++++++++-- src/tokenization.hxx | 15 +++++++++++++++ 2 files changed, 29 insertions(+), 2 deletions(-) diff --git a/examples/compact/exitall.x b/examples/compact/exitall.x index d352e84..67505b0 100644 --- a/examples/compact/exitall.x +++ b/examples/compact/exitall.x @@ -3,9 +3,21 @@ var x = 1 + 2 * 3; var z = 2; var y = 2; } +/* +var sex = 7863587; +exit(sex); +// PLEASE I BEG YOU +*/ var y = x - 3; -var z = (3 * 5) / 3; +var z = (3 * 5) / 3; +/* +HOLY +FUCK +LOIS +IM +CUMMING +*/ if (x ) { - exit(y + z); + exit(y + z); // He he he HAW } exit (1); \ No newline at end of file diff --git a/src/tokenization.hxx b/src/tokenization.hxx index e9362b3..e26656b 100644 --- a/src/tokenization.hxx +++ b/src/tokenization.hxx @@ -89,6 +89,21 @@ public: while (peek().has_value() && peek().value() != '\n') { consume(); } + } else if (peek().value() == '/' && peek(1).has_value() && peek(1).value() == '*') { + consume(); + consume(); + while (peek().has_value()) { + if (peek().value() == '*' && peek(1).has_value() && peek(1).value() == '/') { + break; + } + consume(); + } + if (peek().has_value()) { + consume(); + } + if (peek().has_value()) { + consume(); + } } else if (std::isspace(peek().value())) { consume(); } else {