A language and REPL for SRFI 105 "curly infix"

Hi,

i adapted a #lang and REPL for SRFI 105:
https://github.com/damien-mattei/library-FunctProg/blob/master/racket/SRFI-105.rkt
a simple example can be found here:
https://github.com/damien-mattei/library-FunctProg/blob/master/racket/examples-curly-infix.rkt
The two files must be in the same directory.
any files using curly infix notation must begin with:
#lang reader "SRFI-105.rkt"

example at REPL:

Welcome to DrRacket, version 8.2 [cs].
Language: reader "SRFI-105.rkt", with debugging; memory limit: 128 MB.
> (define a 2)
> (define b -3)
> (define c 5)
> {{b expt 2} - {4 * a * c}}
-31

Any advice about other enhancements or other way to implement a REPL or language for SRFI 105 "curly infix" with Racket are welcome.

Regards,

Damien

2 Likes