sys-bio / AntimonyEditor

Antimony Web Editor: A Web Editor for the Antimony Modeling Language
https://sys-bio.github.io/AntimonyEditor/
MIT License
0 stars 1 forks source link

Error checking and displaying errors #3

Open evaxliu opened 1 year ago

evaxliu commented 1 year ago

We have the errors and error positions retrieved from parsing the model. Next, we will display the errors through a red squiggly and also include hover information.

evaxliu commented 11 months ago

Managed to obtain errors from the parser and display. See below: image

Now working on making the error's hover position more accurate and disabling regular hover for the positions with errors.

evaxliu commented 11 months ago

Considering approaching error checking similar to vscode-antimony. We have grammar checks but not semantic ones. We can create an analysis.py type file in typescript which reads through the parse tree again and creates any error hovers based off of the rules defined in a types.py file which we should also create in typescript for this project.

evaxliu commented 11 months ago

https://tellurium.readthedocs.io/en/latest/antimony.html Documentation of rules for antimony langauge

evaxliu commented 11 months ago

https://github.com/sys-bio/antimony/blob/develop/src/antimony.ypp

Edih112 commented 10 months ago

https://github.com/sys-bio/antimony/blob/develop/src/enums.h https://github.com/sys-bio/antimony/blob/develop/src/variable.cpp#L743

Working on carrying over all of the defined types in enums.h into the symbol tables.