flatironinstitute / stan-playground

Run Stan models in the browser
Apache License 2.0
36 stars 1 forks source link

Encapsulate string/error-parsing logic from StanFileEditor.tsx #105

Closed jsoules closed 4 months ago

jsoules commented 5 months ago

A lot of the logic for parsing error messages from stanc is currently located in the editor front-end component. I believe it would be more robust to put it in a separate file or closer to the stanc interface.

WardBrian commented 5 months ago

I can tackle this. It should be pretty easy for me to write some tests that generate some of the odder types of locations that can occur in a Stan program.