8.16.0.4
4 Rhombus Expressions in Racket
(require rhombus/parse) | package: rhombus-lib |
Rhombus shrubbery forms can be written in S-expressions using the encoding described in Parsed Representation. The rhombus-expression and rhombus-top forms treat an encoding as a Rhombus expression or a module-level Rhombus sequence, respectively.
The forms use Rhombus bindings that are required into the enclosing context. Binding does not matter for structural tokens like group or op, but they matter for S-expression identifiers that represent shrubbery identifiers and operations.
syntax
(rhombus-expression shrubbery)
Parses shrubbery as a Rhombus expression for a Racket
expression context. The shrubbery form should represent a
group, meaning that it should be a list-shaped S-expression that starts
with the identifier group.
syntax
(rhombus-top shrubbery)
Parses shrubbery as a Rhombus module-body sequence for a
Racket module context. The shrubbery form should be a
list-shaped S-expression that starts with the identifier multi.