Re: [racket] Changing at-expressions to other-glyph-expressions

2013-04-20 Thread Matthew Butterick
Terrific, thanks for the bug fix. This is just what I was hoping for. Works perfectly. > > The `scribble/reader' library provides `make-at-reader', which lets you > pick the escape character. You can use that with `#reader', which lets > you pick a reader. > > Unfortunately, there's a bug that

Re: [racket] Changing at-expressions to other-glyph-expressions

2013-04-19 Thread Eli Barzilay
20 minutes ago, Matthew Flatt wrote: > At Fri, 19 Apr 2013 16:42:40 -0700, Matthew Butterick wrote: > > Thanks. Yes, I did see that in the docs. The problem with this technique is > > that once I wrap the input text in @list| (or @list|^, or ... etc.) to get > > the benefit of @-escaping, then I lo

Re: [racket] Changing at-expressions to other-glyph-expressions

2013-04-19 Thread Matthew Flatt
At Fri, 19 Apr 2013 16:42:40 -0700, Matthew Butterick wrote: > Thanks. Yes, I did see that in the docs. The problem with this technique is > that once I wrap the input text in @list| (or @list|^, or ... etc.) to get > the benefit of @-escaping, then I lose the ability to do defines within the > bod

Re: [racket] Changing at-expressions to other-glyph-expressions

2013-04-19 Thread Danny Yoo
> "But you can move the defines outside the @list| form, as seen in > https://gist.github.com/dyoo/5423623."; True, but in that case, I can no > longer programmatically parse my source files, since they may have defines > within them. (This is, as I understand it, the major benefit of using > scrib

Re: [racket] Changing at-expressions to other-glyph-expressions

2013-04-19 Thread Matthew Butterick
Thanks. Yes, I did see that in the docs. The problem with this technique is that once I wrap the input text in @list| (or @list|^, or ... etc.) to get the benefit of @-escaping, then I lose the ability to do defines within the body of that text. (Throws error "define not allowed in expression conte

Re: [racket] Changing at-expressions to other-glyph-expressions

2013-04-19 Thread Danny Yoo
Slightly larger example: https://gist.github.com/dyoo/5423623 Hope this helps! Racket Users list: http://lists.racket-lang.org/users

Re: [racket] Changing at-expressions to other-glyph-expressions

2013-04-19 Thread Danny Yoo
Can you use the escaping syntax that Scribble provides? Here's an example: #lang scribble/base @list|{ this is an example with @ signs in it. I can still use @ by using it like this: |@tt{Hello world}, right?}| It'