🐐 Small fixes

This commit is contained in:
Nikolaj
2026-04-13 11:07:29 +02:00
parent 633a8dedc8
commit ffc60f8a06
2 changed files with 59 additions and 56 deletions

3
.gitignore vendored
View File

@@ -2,5 +2,8 @@
__pycache__/
.pytest_cache/
examples/*
!examples/*.cent
.claude/
CLAUDE.md

6
cent
View File

@@ -1,15 +1,15 @@
#! /home/nikolaj/.pyenv/shims/python
#! /usr/bin/env python
"""
Usage:
cent (-h|--help)
cent -i FILE
cent -c [--keep-c] FILE
cent -c [-k|--keep-c] FILE
Options:
-h --help Print this help screen
-i Run the interpreter
-c Run the compiler
--keep-c Keep the generated C file alongside the binary
-k --keep-c Keep the generated C file alongside the binary
FILE The file to compile/interpret
"""
import os