PtcRunner.Lisp.Formatter (PtcRunner v0.9.0)

Copy Markdown View Source

Serialize PTC-Lisp AST to source code string.

Used for:

  • Property-based testing (roundtrip: AST -> source -> parse -> AST)
  • Debugging (pretty-print generated ASTs)

Summary

Functions

Format an AST node as PTC-Lisp source code

Functions

format(n)

@spec format(term()) :: String.t()

Format an AST node as PTC-Lisp source code