17.3 Defining new #lang Languages (original) (raw)
17.3 Defining new #lang Languages🔗ℹ
When loading a module as a source program that starts
#lang language
the language determines the way that the rest of the module is parsed at the reader level. The reader-level parse must produce a module form as a syntax object. As always, the second sub-form after module specifies themodule language that controls the meaning of the module’s body forms. Thus, a language specified after #langcontrols both the reader-level and expander-level parsing of a module.