[racket] Developing a Recursive Descent Parser in Racket

From: Joe Gibbs Politz (joe at cs.brown.edu)
Date: Thu Oct 24 22:04:51 EDT 2013

For an example of using ragg along with Racket's lexer tools, you can
look at Pyret:

Tokenize from an input port:

https://github.com/brownplt/pyret-lang/blob/master/src/lang/tokenizer.rkt

The ragg grammar for Pyret (which uses tokens defined in tokenizer.rkt):

https://github.com/brownplt/pyret-lang/blob/master/src/lang/tokenizer.rkt

The glue that produces a Racket syntax object by composing the above two:

https://github.com/brownplt/pyret-lang/blob/master/src/lang/get-syntax.rkt

We use "raco link" to a checkout of https://github.com/dyoo/ragg as
our set up.  Feel free to ping with any questions.

On Thu, Oct 24, 2013 at 9:20 AM, antoine <antoine.brand at sfr.fr> wrote:
> I have built a php parser with the racket yacc like tools and i am pretty happy with it.
> ____________________
>   Racket Users list:
>   http://lists.racket-lang.org/users

Posted on the users mailing list.