Join GitHub today
Feature/2280 track all line numbers #2357
modified Stan compiler so that line numbers of variable declarations are available for runtime error reporting.
On the parser side:
On the generator side:
adding compound declare/define statements to the language created many situations for runtime errors, e.g., assignment to a container where there is a size mismatch on one of the dimensions. this should make it easier to debug runtime errors.
How to Verify
added new directory
note: this should be automated. how?
generated c++ model code may have spurious
Bob Carpenter, Daniel Lee, Sean Talts
Copyright and Licensing
Please list the copyright holder for the work you are submitting (this will be you or your assignee, such as a university or company): Mitzi Morris
By submitting this pull request, the copyright holder is agreeing to license the submitted work under the following licenses:
Basically, this is OK as is. There are some cosmetic and code replication issues that'd be nice to iron out, but I'll just approve this now and leave it up to you whether or not the extra effort's worth it.
pull requests---it was way harder to review the new line number stuff in the context of all the indentation changing.