aboutsummaryrefslogtreecommitdiffstats
path: root/csc/match-test.csc
AgeCommit message (Collapse)AuthorFilesLines
2022-07-26Fix a potential R7RS issue.Rose Hogenson1-87/+89
I was using the load procedure to load a program, but by a strict reading of R7RS, load can only handle expressions and definitions, not imports. So instead I'm defining each test as a library, and using the environment procedure to load them at runtime.
2022-07-24Improve the match syntax for constants.Rose Hogenson1-21/+21
I guess you can pattern match using quote as a literal. That's pretty cool.
2022-07-22Fix a bug in matching record types.Rose Hogenson1-0/+8
Running the record matcher has a side-effect (raising *no-match*), so we call it ahead of time to ensure a consistent order of evaluation.
2022-07-12Remove redundant parentheses in the match macro.Rose Hogenson1-4/+4
I'm marginally reducing verbosity with this change, without sacrificing readability.
2022-06-29Add pattern matching for record types.Rose Hogenson1-0/+16
I like scheme because it's possible to add any convenient language feature I can think of.
2022-01-11Move scheme compiler into a separate directory.Rose Hogenson1-0/+87