Re: [racket-users] Highlighting non-racket code in slideshow

2016-10-04 Thread C K Kashyap
; Alternatively, you can use my `java-lexer` package which, despite its > name, does a decent job with much more than just Java. I've used it to > get some ok highlighting for Haskell, for example. Turns out at the > lexer level, a lot of things kind of look the same. :) > > Vincen

[racket-users] Highlighting non-racket code in slideshow

2016-10-03 Thread C K Kashyap
Hi, What's a good way to syntax-highlight non-racket code within slideshow? I've been using pandoc so far which has support for multiple languages but I'd like to start using slideshow. Regards, Kashyap -- You received this message because you are subscribed to the Google Groups "Racket Users" g

Re: [racket-users] Good parser library in Racket

2016-10-01 Thread C K Kashyap
Thanks John and Jens! Regards, Kashyap On Sat, Oct 1, 2016 at 11:23 AM, Jens Axel Søgaard wrote: > Take a look at: > > http://planet.racket-lang.org/display.ss?package=java. > plt&owner=dherman > > 2016-10-01 20:00 GMT+02:00 C K Kashyap : > >> Hi Racket u

[racket-users] Good parser library in Racket

2016-10-01 Thread C K Kashyap
Hi Racket users, It appears that parser-tools/yacc is the parser tool that's bundled with racket by default. I'd like to parse java like language. I was wondering if there is already such an implementation that I could use or perhaps a reference implementation I could use. The example in the source

Re: [racket-users] Re: Help with macros

2016-09-22 Thread C K Kashyap
'arg-count (length '(arg ...)) > 'emitter (lambda (arg ...) body ...))) > (define-primitive-application-syntax (primitive-name arg ...)))])) > > (define-primitive (plus x y) (+ x y)) > plus-property-table >

Re: [racket-users] Re: Help with macros

2016-09-22 Thread C K Kashyap
gt; by syntax-case as a literal. > > The construct syntax-parse does not use a list of identifiers. It uses an > alternative > way of specifying literal identifiers. > > /Jens Axel > > > 2016-09-22 17:27 GMT+02:00 C K Kashyap : > >> Thanks Andrew ... I got past th

Re: [racket-users] Re: Help with macros

2016-09-22 Thread C K Kashyap
Thanks Andrew ... I got past that error. I now get an error below - " syntax-parse: expected clause in: ()" (define-syntax (define-primitive stx) (syntax-parse stx () ; ERROR [(_ (primitive-name:id arg:id ...) body ...+) #:with table-name (format-id #'primitive-name "~a-prop

Re: [racket-users] Re: Help with macros

2016-09-22 Thread C K Kashyap
Thank you so much Jack, This certainly helps! I was following the tutorial http://www.greghendershott.com/fear-of-macros/ - It turns out that it too recommends syntax-parse at the very end :) When I tried this, I got "syntax: no pattern variables before ellipsis in template in: ..." (require syn

[racket-users] Help with macros

2016-09-21 Thread C K Kashyap
Hi all, I am trying to follow the incremental approach to compiler construction at http://scheme2006.cs.uchicago.edu/11-ghuloum.pdf I am trying to define a macro that will do the following - (define-primitive (add a b) -> create a hashtable called add-property-table and put in information s

[racket-users] A template/example to use to build a workflow illustration/flowchart in slideshow

2016-01-13 Thread C K Kashyap
Dear group, I am trying to use racket for my presentation - essentially document the flow of code of a system I've been going through for a few days - I was wondering if there is a slideshow example that I could use to build on top of to illustrate a workflow. Regards, Kashyap -- You received t

Re: [racket] [ACM-BULLETIN] Today's Topic: ACM Names 2014 Distinguished Members

2014-12-04 Thread C K Kashyap
Congratulations Matthew! Regards, Kashyap On Fri, Dec 5, 2014 at 12:43 AM, Éric Tanter wrote: > Congratulations Matthew! Well-deserved! > > -- Éric > > > > On Dec 4, 2014, at 1:50 PM, Matthias Felleisen > wrote: > > > > > > Even the ACM considers our very own Matthew Flatt as a distinguished >

Re: [racket] Need some help with planet package

2014-11-17 Thread C K Kashyap
e instead, use > > raco pkg install midi-readwrite > > then add this require to your program > > (require midi-readwrite) > > > Vincent > > > > > At Sat, 15 Nov 2014 10:54:34 +0530, > C K Kashyap wrote: > > > > Hi, > > I am trying

Re: [racket] Is there an org-mode equivalent in DrRacket

2014-11-15 Thread C K Kashyap
ng-today) > (edit-task-100) // got 100 from the earlier command > (add-new-task) so on and so forth... Regards, Kashyap On Sat, Nov 15, 2014 at 5:00 PM, Konrad Hinsen wrote: > C K Kashyap writes: > > > I was wondering if there is an emacs org-mode equivalent in DrRacket? &g

[racket] Need some help with planet package

2014-11-14 Thread C K Kashyap
Hi, I am trying to use midi.rkt from http://planet.racket-lang.org/package-source/clements/midi.plt/1/0/midi-read.rkt. I did the following - 1. sudo raco planet url clements midi.plt 1 1 2. curl -O url (the url I got form the step 1) 3. I renamed the downloaded file to midi.plt 4. sudo raco plane

[racket] Is there an org-mode equivalent in DrRacket

2014-11-14 Thread C K Kashyap
Hi, I was wondering if there is an emacs org-mode equivalent in DrRacket? Regards, Kashyap Racket Users list: http://lists.racket-lang.org/users

Re: [racket] Programmatic drawing

2014-10-30 Thread C K Kashyap
rough q to r then > a line from r to s and finally > curves to t > > There is a ton of examples here: > > https://github.com/soegaard/metapict/blob/master/metapict/examples/metapost-examples.rkt > > /Jens Axel > > > > 2014-

[racket] Programmatic drawing

2014-10-30 Thread C K Kashyap
Dear Racket folks, I'd like to use Dr Racket to generate some drawings. I liked the way I can compose and create images using slideshow. I could not figure how I could draw arbitrary curves though? When I looked for it I found the racket/draw package. Can the racket/draw functions be used along w

Re: [racket] rsound docs

2014-09-30 Thread C K Kashyap
gt; > http://pkg-build.racket-lang.org/doc/rsound/index.html > > > At Mon, 29 Sep 2014 19:09:17 +0530, C K Kashyap wrote: > > Hi, > > > > I saw this nice racketcon video ( > > > https://www.youtube.com/watch?v=DkIVzHNjNEA&list=PLXr4KViVC0qI9t3lizitiFJ

[racket] rsound docs

2014-09-29 Thread C K Kashyap
Hi, I saw this nice racketcon video ( https://www.youtube.com/watch?v=DkIVzHNjNEA&list=PLXr4KViVC0qI9t3lizitiFJ1cFIeN2Gdh&index=9) on rsound. I've installed the rsound package and have been able to run the example from the video. Is there a place that has mode documentation/tutorial on rsound? R

Re: [racket] Switching from editor to repl

2014-09-25 Thread C K Kashyap
ce, once hides the > side and the second shows it and focuses it. > > On Thu, Sep 25, 2014 at 2:17 AM, C K Kashyap wrote: > > Hi, > > I am new to racket (but am really excited by the idea - everything is a > > program) - need a quick help with Dr Racket - > > > >

[racket] Switching from editor to repl

2014-09-24 Thread C K Kashyap
Hi, I am new to racket (but am really excited by the idea - everything is a program) - need a quick help with Dr Racket - What's the keyboard shortcut to switch between editor and repl? I got to know from a video on youtube that I could use C-e to toggle the repl visibility but not able to find o