accept pub enum, and enums used as types

Implement pub support for enums, and also anonymous enums declared
in-place.

Also give the cdr of a `pub' form the form's own location, so a
error about what follows `pub' can say where it was written
This commit is contained in:
2026-09-16 01:16:52 +03:00
parent d0d0ea8e84
commit 847bb14340
7 changed files with 60 additions and 11 deletions

View File

@@ -14,7 +14,7 @@
SEXC ?= ../../sexc
EXPECTED = hello, world\nhello, sex\n2 greetings\ntext times
EXPECTED = hello, world\nhello, sex\n2 greetings\ntext times \nmood 1
check:
@$(SEXC) greet.sex -c -o greet.o