From acd1c3c704dd9506053f28ab0dc4c8734d075a55 Mon Sep 17 00:00:00 2001 From: Chris Pressey Date: Sun, 6 Feb 2022 22:22:25 +0000 Subject: [PATCH] Improve some descriptions. --- README.md | 2 +- src/castile/main.py | 4 ++-- tests/Castile.md | 5 +++-- 3 files changed, 6 insertions(+), 5 deletions(-) diff --git a/README.md b/README.md index c5ce8cf..694a464 100644 --- a/README.md +++ b/README.md @@ -1,7 +1,7 @@ Castile ======= -Version 0.4 | _Entry_ [@ catseye.tc](https://catseye.tc/node/Castile) +Version 0.5 | _Entry_ [@ catseye.tc](https://catseye.tc/node/Castile) | _See also:_ [Eightebed](https://github.com/catseye/Eightebed#readme) ∘ [Dieter](https://github.com/catseye/Dieter#readme) diff --git a/src/castile/main.py b/src/castile/main.py index 7e2d5c3..3efd9cd 100644 --- a/src/castile/main.py +++ b/src/castile/main.py @@ -1,6 +1,6 @@ """castile {options} program-file.castile -Interpreter/compiler for Castile, an unremarkable programming language. +Interpreter/compiler for Castile, a programming language with union types. """ @@ -24,7 +24,7 @@ def main(argv): dest="compile_to", default=None, help="compile to given backend code instead " "of evaluating directly (available backends: " - "javascript, ruby, stackmac)") + "c, javascript, ruby, stackmac)") optparser.add_option("-p", "--parse-only", action="store_true", dest="parse_only", default=False, diff --git a/tests/Castile.md b/tests/Castile.md index 9067f26..373a1b0 100644 --- a/tests/Castile.md +++ b/tests/Castile.md @@ -362,7 +362,7 @@ Variables in upper scopes may be modified. ### Non-local Values ### -Literals may appear at the toplevel. Semicolons are optional at toplevel. +Literals may appear at the toplevel. Semicolons are optional at toplevel. | factor = 5; | fun main() { @@ -370,7 +370,8 @@ Literals may appear at the toplevel. Semicolons are optional at toplevel. | } = 30 -Toplevel literals may not be updated. (And thus +Toplevel literals may not be updated. Thus, the following looks like it +is defining a local with the same name as a toplevel, which is not permitted. | factor = 5 | fun main() {