Re: [racket] Metaprogramming with scheme

2010-06-21 Thread Robby Findler
Actually it does but it is diasabled by default. But the point was that you would not do it that way but instead use the lang and macro system to implement your translation. Robby On Monday, June 21, 2010, Valeriya Pudova wrote: > On 21.06.2010 18:32, Robby Findler wrote: > > I haven't followed

Re: [racket] Metaprogramming with scheme

2010-06-21 Thread Valeriya Pudova
On 21.06.2010 18:25, Noel Welsh wrote: On Mon, Jun 21, 2010 at 2:41 PM, Valeriya Pudova wrote: There are two issues. First: what if the file foo.ss will have defined function foo. (define (foo a b) (+ a b))) (foo 1 2) It makes error: Got compile: unbound identifier (and no #%app syntax

Re: [racket] Metaprogramming with scheme

2010-06-21 Thread Valeriya Pudova
On 21.06.2010 18:32, Robby Findler wrote: I haven't followed this thread too closely but if you can tolerate your "a.ss" file having a "#lang" line at the top that may make your life overall much easier (the Racket tools all work better when you are explicit about the language you are programming

Re: [racket] Metaprogramming with scheme

2010-06-21 Thread Robby Findler
I haven't followed this thread too closely but if you can tolerate your "a.ss" file having a "#lang" line at the top that may make your life overall much easier (the Racket tools all work better when you are explicit about the language you are programming in). Robby ___

Re: [racket] Metaprogramming with scheme

2010-06-21 Thread Noel Welsh
On Mon, Jun 21, 2010 at 2:41 PM, Valeriya Pudova wrote: > There are two issues. > > First: > > what if the file foo.ss will have defined function foo. > > (define (foo a b) (+ a b))) > (foo 1 2) > > It makes error: > Got compile: unbound identifier (and no #%app syntax transformer is bound) > (#(s

Re: [racket] Metaprogramming with scheme

2010-06-21 Thread Valeriya Pudova
> > name space > > where are defined methods "define-fsm", "define-state", "on-event" and > "go" > > > > But this case each of those methods will not have the syntax object of > the > > evaluated expression. > > And in case if it will find and error it could not message about error's > > location.

Re: [racket] iPhone

2010-06-21 Thread Greg Hendershott
> To bring this more on topic, I think a good approach to all these issues from > a Racket perspective is to develop an HTML5 web-app framework that > intelligently adjusts content for the device making the request. This way > Racket apps could run across all platforms with a decent HTML5 browse

Re: [racket] Metaprogramming with scheme

2010-06-21 Thread Noel Welsh
Please reply to the list; you'll get more help that way. (Also, I'll ignore your emails if you don't.) On Mon, Jun 21, 2010 at 12:29 PM, Valeriya Pudova wrote: > The question is: when in the eval-synax process there will be called some > function how that function can to reffer to the current syn

Re: [racket] Metaprogramming with scheme

2010-06-21 Thread Noel Welsh
Please reply to the list; you'll get more help that way. On Mon, Jun 21, 2010 at 12:14 PM, Valeriya Pudova wrote: > (eval-syntax (file->syntax "a.ss")) Look up read-syntax. > lets imagine the function 'define-fsm' was called. And "some-condition?" > informs that there are syntax error in the so

Re: [racket] [BULK] Re: iPhone

2010-06-21 Thread Stephen Bloch
On Jun 18, 2010, at 2:17 PM, Paul Ojanen wrote: Remember, this isn't even a question of what you can run on your iPhone -- the (free!) iPhone developer kit lets you download software you compile yourself from your computer to the iPhone. Their SDK runs on MY computer? Well, yes -- if yo

Re: [racket] Metaprogramming with scheme

2010-06-21 Thread Noel Welsh
On Sat, Jun 19, 2010 at 10:00 AM, Valeriya Pudova wrote: > The easiest way to do this task can be: Just evaluate the file "a.ss" in the > name space > where are defined methods "define-fsm", "define-state", "on-event" and "go" > > But this case each of those methods will not have the syntax object