Module Frontend.Canonicalize

Re-write ASTs to remove deprecated features and clean up extra parenthesis, etc

type canonicalizer_settings = {
  1. deprecations : bool;
  2. parentheses : bool;
  3. braces : bool;
  4. inline_includes : bool;
  5. strip_comments : bool;
}

Flags to enable or disable certain kinds of canonicalization. NB: inline_includes is controlled by the --canonicalize argument to stanc, but it consumed by the pretty-printer, not this module.

Equivalent to what --print-canonical did before these settings were available

"Canonicalize" the program by removing deprecations, adding or removing parenthesis and braces, etc.