Re: [racket] How to to make a program that will take a simple racket file, parse it with the reader in a way that I can expand it?

2013-06-14 Thread Carl Eastlund
There are a lot of details to get right in processing a module. To really get them all right, use get-module-code from syntax/modcode. Here's an example that produces expanded syntax rather than a compiled bytecode expression, if that's what you want: #lang racket (require racket/runtime-path sy

Re: [racket] inherit, inherit/super, and inherit/inner in class syntax

2013-06-14 Thread Christopher
Dr./Mr./Ms. Takikawa, thank you for advancing my understanding. I would still like to understand what inherit/inner is and how it works. Can anyone else fill me in on this point? --Christopher On Jun 14, 2013, at 4:13 PM, Asumu Takikawa wrote: > On 2013-06-14 14:39:57 -0600, Christopher wro

Re: [racket] inherit, inherit/super, and inherit/inner in class syntax

2013-06-14 Thread Asumu Takikawa
On 2013-06-14 14:39:57 -0600, Christopher wrote: > So I have been trying to learn the ins and outs of Racket's class > system. I've a little puzzled when it comes to the "inherit"-forms. > I've poured over the Racket Reference and fiddled with some > experimental classes, but I'm still not clear.

[racket] inherit, inherit/super, and inherit/inner in class syntax

2013-06-14 Thread Christopher
So I have been trying to learn the ins and outs of Racket's class system. I've a little puzzled when it comes to the "inherit"-forms. I've poured over the Racket Reference and fiddled with some experimental classes, but I'm still not clear. My questions specifically are, What is the differenc

Re: [racket] How to to make a program that will take a simple racket file, parse it with the reader in a way that I can expand it?

2013-06-14 Thread Vincent St-Amour
Ah, right, sorry about that. My previous example works at the REPL, but not in a module. This should work in both cases: (parameterize ([read-accept-reader #t] [current-namespace (make-base-namespace)]) (expand (read-syntax fichier-programme in))) Vincent At Fri, 1

Re: [racket] How to to make a program that will take a simple racket file, parse it with the reader in a way that I can expand it?

2013-06-14 Thread Andre Mayers
Thank you for your answer, it works partially. The read-syntax returns '(module fichier-programme racket (#%module-begin (define aa 7) (let ((bb 3)) (+ aa bb but expand cannot expand it. The error message is ::1: module: unbound identifie

Re: [racket] How to to make a program that will take a simple racket file, parse it with the reader in a way that I can expand it?

2013-06-14 Thread Vincent St-Amour
The following should work: (parameterize ([read-accept-reader #t]) (expand (read-syntax fichier-programme in))) If you don't need to manipulate the expansion programmatically, you can use DrRacket's Macro Stepper instead. Vincent At Fri, 14 Jun 2013 15:48:40 -0400, Andre Mayers wrot

[racket] How to to make a program that will take a simple racket file, parse it with the reader in a way that I can expand it?

2013-06-14 Thread Andre Mayers
I want to make a little program that will take a simple racket file, parse it with the reader in a way that I can expand it. For example, I have the file programme.rkt that have the following line : #lang racket (define aa 7) (let ( [bb 3])

Re: [racket] Racket Blogging - How To??

2013-06-14 Thread Matt Jadud
I had no idea! I take it this is my Jekyll replacement? Thank you! Cheers, Matt On Fri, Jun 14, 2013 at 11:31 AM, Sam Tobin-Hochstadt wrote: > On Fri, Jun 14, 2013 at 11:24 AM, Ray Racine wrote: > > So I'm thinking about blogging about some aspect (positive) of Racket > coding > > this weeke

Re: [racket] Racket Blogging - How To??

2013-06-14 Thread Ray Racine
Damn, that is impressive stuff Greg and Frog team et al. On Fri, Jun 14, 2013 at 11:31 AM, Sam Tobin-Hochstadt wrote: > On Fri, Jun 14, 2013 at 11:24 AM, Ray Racine wrote: > > So I'm thinking about blogging about some aspect (positive) of Racket > coding > > this weekend. Not sure what the opt

Re: [racket] Racket Blogging - How To??

2013-06-14 Thread Sam Tobin-Hochstadt
On Fri, Jun 14, 2013 at 11:24 AM, Ray Racine wrote: > So I'm thinking about blogging about some aspect (positive) of Racket coding > this weekend. Not sure what the options are these days. > > A) Use a blogging site of choice + cut/paste into some online code > formatter, enscriptem etc.. > B) Us

[racket] Racket Blogging - How To??

2013-06-14 Thread Ray Racine
So I'm thinking about blogging about some aspect (positive) of Racket coding this weekend. Not sure what the options are these days. A) Use a blogging site of choice + cut/paste into some online code formatter, enscriptem etc.. B) Use Scribble to generate html -> host generated html on gitpages o