Re: [racket-users] Custom reader that's a strict subset of racket

2017-06-29 Thread Sam Waxman
On Thursday, June 29, 2017 at 11:17:12 PM UTC-4, Philip McGrath wrote: > I think you might be able to leave the reader as-is and just re-define > #%datum to reject whatever kinds of literal data you don't want to allow. > > > > -Philip > > > > On Thu, Jun 29, 2017 at 9:44 PM, Sam Waxman wro

Re: [racket-users] Custom reader that's a strict subset of racket

2017-06-29 Thread Philip McGrath
I think you might be able to leave the reader as-is and just re-define #%datum to reject whatever kinds of literal data you don't want to allow. -Philip On Thu, Jun 29, 2017 at 9:44 PM, Sam Waxman wrote: > Hello, > > I'm building a #lang, and I don't want it to have a few things like > complex

[racket-users] Custom reader that's a strict subset of racket

2017-06-29 Thread Sam Waxman
Hello, I'm building a #lang, and I don't want it to have a few things like complex numbers, or vectors. Other than the things I don't want, the reader would be identical to racket's. Is there an easy way to "turn off" the things I don't want, so to speak, and take Racket's reader and delete the