stan-dev / stanc3

The Stan transpiler (from Stan to C++ and beyond).
BSD 3-Clause "New" or "Revised" License
140 stars 44 forks source link

Clean up MIR pretty printing code #1180

Closed WardBrian closed 2 years ago

WardBrian commented 2 years ago

The MIR pretty printing had a few oddities in it. It used quoted strings {| ... |} instead of normal string literals " ... " without needing to, and it would associate a color/style with keywords. We don't (and can't) really print things out in color, so that doesn't need to happen.

Submission Checklist

Release notes

Cleaned up code for pretty printing the Middle Intermediate Representation (MIR)

Copyright and Licensing

By submitting this pull request, the copyright holder is agreeing to license the submitted work under the BSD 3-clause license (https://opensource.org/licenses/BSD-3-Clause)