Commit Graph

11 Commits

Author SHA1 Message Date
Aryadev Chavali
f8a834c0d2 Rewrote --> to take a placeholder symbol as first argument
Instead of exporting cantedraw.lib.macro._ and making anyone who wants
to use the --> macro _require_ importing that specific symbol, let's
just make it so the user has to supply a placeholder name before they
do anything.  This means each package provides its own placeholder
symbol which lowers coupling.
2025-02-14 16:34:15 +00:00
Aryadev Chavali
02ff1a3fb3 Prefix all packages with cantedraw
This is mostly a sanity check in-case anyone else decides to load this
system for use in their own package - don't want to conflict with
their names.
2025-02-14 16:11:54 +00:00
Aryadev Chavali
4c27e7d5c1 cantedraw.lisp -> main.lisp 2025-02-14 16:00:41 +00:00
Aryadev Chavali
52f7db44cf main -> odraw 2025-02-11 00:41:00 +00:00
Aryadev Chavali
0b66ce5dc1 Slightly clean up the example program in main 2025-02-11 00:40:19 +00:00
Aryadev Chavali
ef572b992b Introduce lib.functions which includes helper functions
Splitting macros and functions into different packages and source code
makes it easier to look at.   Functions currently implemented:
- range: like Python's range
- parse-integer*: parse-integer but junk-allowed is set to t.
2025-02-11 00:40:19 +00:00
Aryadev Chavali
5a48b66dd6 Extract parsing logic from read-integers into parse-integers 2025-02-11 00:40:19 +00:00
Aryadev Chavali
6b60c5065b Re-implement all functions in main via fn macro. 2025-02-11 00:40:19 +00:00
Aryadev Chavali
bd47029bd8 Implement a program that reads some integers then prints their sum
Allows junk, and doesn't crash horribly.
2025-02-11 00:40:19 +00:00
Aryadev Chavali
e5253472a0 Rewrite entrypoint to prompt for a name, then print it 2025-02-11 00:40:19 +00:00
Aryadev Chavali
19b68fa49c Initial commit.
Setup boilerplate for system/package management.  In particular, setup
an entry-point and Shinmera's "deploy" to build executables.

Also write some scripts to easily load or build the project without
Emacs - just `sbcl --load <x>.lisp`.
2025-02-11 00:40:19 +00:00