see evcase
On Mar 12, 2012, at 4:45 PM, Rüdiger Asche wrote:
> Hi there,
>
> why is the Zero alias replaced correctly in every form in the expression
> except the case branch where it is inserted as a literal?
>
> -
On 3/12/12 4:45 PM, Rüdiger Asche wrote:
Hi there,
why is the Zero alias replaced correctly in every form in the expression
except the case branch where it is inserted as a literal?
The c in (case c ...) is in an implicitly quoted position (it's data,
not program) and therefore is not subject
Hi there,
why is the Zero alias replaced correctly in every form in the expression
except the case branch where it is inserted as a literal?
(require macro-debugger/stepper-text)
(expand/step-text
#'(
On 03/12/2012 10:57 AM, John Clements wrote:
Matt Might claims that derivative-based parsing is super-awesome, and he
provides a racket implementation:
http://matt.might.net/articles/parsing-with-derivatives/
… and here's a pointer to the code:
http://matt.might.net/articles/parsing-with-deri
That's very cool, Danny!
(BTW, what was that other language you did-- brain something? It was
excellent. ;)
Robby
On Mon, Mar 12, 2012 at 2:58 PM, Danny Yoo wrote:
>> Incidentally, I'm not sure of the performance implications, but I like the
>> idea of having the parser for a programming langua
> Incidentally, I'm not sure of the performance implications, but I like the
> idea of having the parser for a programming language translate the syntax
> objects to sexp-like syntax objects promptly, and then "syntax-parse" the
> heck out of that newly sexp-encoded language to turn it into Racket
Seems in the last 6-8 weeks or so Syntax has reignited the cold-war and is
re-arming. Just started seeing this today after a fresh build off of the
Racket git main branch. Haven't enough info yet to open a bug report but
thought I'd toss it out in case it jogs someones memory of a recent commit.
(modulo (+ position speed-for-one-step) WIDTH)
evaluates to (+ position speed-for-one-step) if it is less than WIDTH
and (- (+ position speed-for-one-step) WIDTH) if it is larger [roughly,
but definitely in your case]
Does this help?
On Mar 12, 2012, at 2:25 PM, ROELOF WOBBEN wrote:
>
Sorry, But I don't understand what the modulo and my solution work together.RoelofOn 12/03/12, Matthias Felleisen wrote:#lang racket(require 2htdp/image 2htdp/universe); main : CarState -> CarState; launch the program from some initial state(define (main r) (big-bang 0 (on-tick tock r) (to-draw
On Mar 10, 2012, at 12:06 PM, Danny Yoo wrote:
> Hi everyone,
>
> I'm doing a little vanity project that requires a nice, robust parser.
> I don't know which parser I should be using, though. Here's what
> I've found:
>
>
>* There's the standard parser-tools library.
>
> http://docs
See, great fun indeed. :)
Em 16/02/2012 18:49, "Eli Barzilay" escreveu:
> A few minutes ago, namekuseijin wrote:
> > certainly useless, but much fun. ;)
>
> Not even that.
>
> --
> ((lambda (x) (x x)) (lambda (x) (x x))) Eli Barzilay:
>http://barzilay.org/
If you're interested in the compilation that happens after macro
expansion, including constant-propagation and inlining, then try `raco
make' and `raco decompile'.
For example, if "alias.rkt" has
(module alias racket
(provide plusone)
(define ONE 1)
(define (plusone x) (+ x ONE))
(pl
More generally, if you're looking at the reference documentation for an
identifier, you can hover the mouse over the name, and then a tool-tip
will tell you the library (or sometimes libraries) that exports the
identifier.
One of the documentation's enclosing sections also says which library
the s
#lang racket
(require 2htdp/image 2htdp/universe)
; main : CarState -> CarState
; launch the program from some initial state
(define (main r)
(big-bang 0 (on-tick tock r) (to-draw render)))
(define wheel-radius 5)
(define cab
(beside (rectangle (* 6 wheel-radius)(* 4 wheel-radius) "solid"
Hello, I have tried to make a function which display a car running on a empty-screen.When the car is at the end. The car has to begin at the beginning.I have made this : (define wheel-radius 5)(define cab (beside (rectangle (* 6 wheel-radius)(* 4 wheel-radius) "solid" "red")(right-triangle (* 2 wh
At line 2609 of "src/racket/src/jitcommon.c",
jit_movi_p(JIT_V1, scheme_on_demand_jit_code);
should be
(void)jit_patchable_movi_p(JIT_V1, scheme_on_demand_jit_code);
In other words, the comment on the original line above is wrong, and
jit_patchable_movi_p() needs to be used instead of jit_m
Unless otherwise noted, they are built into the racket language.
Start with #lang racket, and you get what you want.
On Mar 11, 2012, at 3:45 PM, lothar atheling wrote:
> hello,
>
> where do i find the required lib when using a form, such as (struct
> ...)?
>
> neither the guide, under
>
>
Now tht's really nice! Thanks for sharing.
Nik
Am Sonntag, 11. März 2012 schrieb Jens Axel Søgaard:
> Hi All,
>
> The Maxima in Racket experiment now has a working REPL.
> I have attached a screenshot.
>
> The Maxima command tex(expr) will convert an expression into TeX.
> Jays slideshow-latex pa
Hello,
I have made a bug report, but in case it is not a bug I also want to ask
here for help. Developers and users have sometimes different way to look
at the problem. The link to the bug report can be found down in the
confirmation mail I got.
Shortly, my problem is that I am not able to c
hello,
where do i find the required lib when using a form, such as (struct
...)?
neither the guide, under
5 Programmer-Defined Datatypes
http://download.racket-lang.org/docs/5.2/html/guide/define-struct.html
nor the manual, under
4 Structures
http://download.racket-lang.org/docs/5.2/html/refer
20 matches
Mail list logo