From f9a0c7e9687bc3e113f4c8f44861533c9ca48b3a Mon Sep 17 00:00:00 2001 From: _ov4 Date: Tue, 13 Oct 2026 03:23:52 +0000 Subject: feat: compile source files with configurable IR output Co-Authored-By: Claude Fable 5.1 --- README.md | 13 +++++++++++++ 1 file changed, 13 insertions(+) (limited to 'README.md') diff --git a/README.md b/README.md index dd08059..b251eba 100644 --- a/README.md +++ b/README.md @@ -83,6 +83,19 @@ mingw32-make ``` +## Usage + +```bash +cpsc test.cps # save test.ir beside the source file +cpsc test.cps -o result.ir # save IR to the specified path +lli result.ir # run the generated IR +``` + +Only one source file is supported. Options may appear before or after it. +With no arguments, `cpsc` exits silently with status 0; help text is planned. +Diagnostics go to stderr. Failed compilation does not write IR; successful +compilation overwrites an existing output file, but cannot overwrite the source. + # Note DO NOT OPEN ANY ISSUES IF YOU COMPILE WITH VISUAL STUDIO OR ANYTHING EXCEPT MINGW-W64 (EVEN WITH MINGW-W64, WINDOWS IS LIKELY TO BE A PROBLEM MAKER) -- cgit v1.3.1-4-g156e