infix-sweet reader for Dr  Racket
9.3

infix-sweet reader for DrRacket🔗ℹ

curly infix, neoteric and sweet expressions reader for DrRacket

Install as a package.

Use:

#lang reader infix-sweet

or:

 #reader infix-sweet package: infix-sweet
This reader package provides the reader/parser of SRFI 110 for DrRacket: the curly infix expressions of SRFI 105, and the neoteric and sweet expressions of SRFI 110.

Designed to be used with Scheme+:

This package provides the Scheme+ language definitions.

SRFI 110 is compatible with SRFI 105: a program written with the curly infix expressions of SRFI 105, the infix between curly brackets { } and the usual parenthesis of Scheme, is read the same way (inside the parenthesis the indentation does not matter):

#lang reader infix-sweet
(module example racket
  (require Scheme+)
  (define (f x) {3 * x ² + 2 * x + 1})
  (display (f 2)) (newline))

displays 17. The same program written with the sweet expressions of SRFI 110, where the indentation gives the parenthesis and f(2) is (f 2):

#lang reader infix-sweet
module example racket
  require Scheme+
  define f(x) {3 * x ² + 2 * x + 1}
  display f(2)
  newline()

This is simply an alias of SRFI-110 for Racket: https://pkgs.racket-lang.org/package/SRFI-110-for-Racket