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
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
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.
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
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
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
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
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])
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
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
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
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
12 matches
Mail list logo