Open evaxliu opened 1 year ago
Managed to obtain errors from the parser and display. See below:
Now working on making the error's hover position more accurate and disabling regular hover for the positions with errors.
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.
https://tellurium.readthedocs.io/en/latest/antimony.html Documentation of rules for antimony langauge
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.
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.