From mboxrd@z Thu Jan 1 00:00:00 1970 Authentication-Results: mail-a.sr.ht; dkim=pass header.d=johnnyrichard.com header.i=@johnnyrichard.com Received: from out-170.mta0.migadu.com (out-170.mta0.migadu.com [91.218.175.170]) by mail-a.sr.ht (Postfix) with ESMTPS id 9D6A220056 for <~johnnyrichard/olang-devel@lists.sr.ht>; Mon, 19 Feb 2024 20:13:54 +0000 (UTC) X-Report-Abuse: Please report any abuse attempt to abuse@migadu.com and include these headers. DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=johnnyrichard.com; s=key1; t=1708373634; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version: content-transfer-encoding:content-transfer-encoding; bh=1w62NihH182Rb3mIOx8WRcwczicP+qpsxxZ+olQJc20=; b=NXGGEDexDUojjox2taoVm00rXsJhgZgr2cqa1bn/pMynEPKAwJZdzSTanWg1ZRa9oYQbw/ pIDto+tQA5AUg2w+dsyq9aOLlDFqRQMJv4Ey1VriXCvN2pUaMxtE/xCV+EOvnapJO5kavR SQaI2HYP2JXwcV50KApUzXVePG2MhrIzuaOe2DxFBeS3liaPTWeVnUrbGZ5JP69RzIuYhB aLVaxvLOkkaUly0F9gp41+7lX83I1FC4mjMxfCCyaobpPWTgSWL9cdtlZ266Scm9n4z2av DaXbZk1p3uCEAilDR/nsRqYFd/D/C1xr8L4IkVBB36Q9vtlF1CwHcFcPSPlAUg== From: Johnny Richard To: ~johnnyrichard/olang-devel@lists.sr.ht Cc: Johnny Richard Subject: [PATCH olang v5 0/4] Create --dump-tokens on compiler cli Date: Mon, 19 Feb 2024 22:12:14 +0100 Message-ID: <20240219211240.25871-1-johnny@johnnyrichard.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Migadu-Flow: FLOW_OUT X-TUID: l5A+/G3iGUwY This patchset creates the lexer and a --dump-tokens functionality for the compiler 0c. Carlos Maniero (1): lexer: test: add integration tests for --dump-tokens Johnny Richard (3): utils: create string_view data structure lexer: create --dump-tokens cli command docs: create man page for 0c compiler .gitignore | 1 + docs/Makefile | 21 ++- docs/manpages/0c.md | 21 +++ examples/main_exit.0 | 3 + src/0c.c | 129 +++++++++++++++++- src/lexer.c | 235 +++++++++++++++++++++++++++++++++ src/lexer.h | 74 +++++++++++ src/string_view.c | 35 +++++ src/string_view.h | 34 +++++ tests/integration/cli_runner.c | 47 ++++++- tests/integration/cli_runner.h | 3 +- tests/integration/cli_test.c | 17 ++- 12 files changed, 605 insertions(+), 15 deletions(-) create mode 100644 docs/manpages/0c.md create mode 100644 examples/main_exit.0 create mode 100644 src/lexer.c create mode 100644 src/lexer.h create mode 100644 src/string_view.c create mode 100644 src/string_view.h -- 2.43.2