A language and REPL for SRFI 105 "curly infix"

51 views
Skip to first unread message

damien...@gmail.com

unread,
Dec 31, 2021, 5:42:36 AM12/31/21
to Racket Users

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

kalime...@gmail.com

unread,
Feb 12, 2022, 2:44:36 PM2/12/22
to Racket Users
https://pkgs.racket-lang.org/package/sweet-exp
It implements curly infix along with other syntax enhancements.

Your example works with it (#lang sweet-exp racket) as is.

пятница, 31 декабря 2021 г. в 15:42:36 UTC+5, damien...@gmail.com:
Reply all
Reply to author
Forward
0 new messages