(index ("begin-syntax" 0))
(def (sig (syntax "(begin-syntax EXPR ...)" (id begin-syntax))) (p "Evaluates its body and immediately inserts the final result into the program, as though by macro expansion.") (p "If the result is a macro transformer, then this is immediately invoked with no arguments and the result is inserted into the program. " (b "Note that in this case the final expression of the " (tt "begin-syntax") " body will be evaluated twice") ".") (p "This form can be thought of as a macro definition followed by its immediate expansion, for example:") (highlight scheme "(begin-syntax '(+ 1 2))\n\n; => (let-syntax ((a (er-macro-transformer\n;                     (lambda (_ _ _) '(+ 1 2)))))\n;      (a))"))
