3 ms·
Question : is racket still useful if you plan on building a DSL not based on lisp syntax ?
by bsaul 7y ago
Question : is racket still useful if you plan on building a DSL not based on lisp syntax ?
- soegaard 7y agoYes. 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".
- gus_massa 7y agoYes. Some examples: With the default installation of Racket you get an implementation of Algol 60 https://docs.racket-lang.org/algol60/ 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 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/ https://docs.racket-lang.org/scribble/
- catalogia 7y agoMy favorite example: https://docs.racket-lang.org/2d/index.html https://docs.racket-lang.org/2d/index.html
- velcrovan 7y agoHere's an example of building a BASIC interpreter in Racket: https://beautifulracket.com/basic/intro.html https://beautifulracket.com/basic/intro.html
- seisvelas 7y agoI'm currently creating a SQL dialect with Racket. It's great!