This is the mail archive of the
kawa@sourceware.org
mailing list for the Kawa project.
How to customize the reader and printer in a language implementation
- From: mikel evins <mevins at me dot com>
- To: Kawa mailing list <kawa at sourceware dot org>
- Cc: mikel evins <mevins at me dot com>
- Date: Wed, 18 Feb 2015 21:51:24 -0600
- Subject: How to customize the reader and printer in a language implementation
- Authentication-results: sourceware.org; auth=none
Per,
What's the right way to arrange for Kawa to use an output format that's not in the formats array in Shell.java? I want to use my own printer with the Bard implementation.
While I'm asking, I may as well also ask about the right way to customize the reader to handle alternative syntax for certain value expressions. For example, I want to read expressions like "{...}" as finite maps, and "[...]" as persistent sequences. I'd also like to arrange for a different surface syntax for character objects.
Thanks,
--me