Previous: lang yy, Up: Lexing and Parsing


41.6 Miscellaneous debugging facilities

This module provides debugging facilities used by the other lang-related debug modules. See lang lr0, See lang lr1.

— Scheme Procedure: pp-lexer-spec spec

Pretty-print the lexer-spec spec.

— Scheme Procedure: pp-grammar spec

Pretty-print the grammar spec.

— Scheme Procedure: nick obj

Return the nickname of obj if available. If obj is #f or the empty list (), return obj. Otherwise, return the memory address of obj as a hex string.

— Scheme Procedure: nick! obj nick

Set the nickname for obj to nick. Return obj.