Skip to content

Comment on Racket v7.5

Comments

Question : is racket still useful if you plan on building a DSL not based on lisp syntax ?

Yes. Some examples:

With the default installation of Racket you get an implementation of Algol 60 https://docs.racket-lang.org/algol60/

You can download and install form the package repository the language Honu, that is a Java-like language https://docs.racket-lang.org/honu/index.html

With the default installation of Racket you get Scribble, that is the language that is used to write the docs. (It's the same spirit of LaTeX where everything is a string unless you use a magical character, but the magical character and the details are very different.) https://docs.racket-lang.org/scribble/

Yes. There are general parser libraries available you can use to parse what-ever you like.

Use the `parser` library if you want a yacc/bison style parser.

Use `parsack` if you like parser combinators.

Use `ragg` or `bragg` if you like an "automatic parser from grammar".

I'm currently creating a SQL dialect with Racket. It's great!

Here's an example of building a BASIC interpreter in Racket: https://beautifulracket.com/basic/intro.html

AboutSource Built by g1lg1l

Hackerly is an independent reader for Hacker News, built on the public HN API. Not affiliated with Y Combinator.