
Weekly Report - April 29, 2024
1. Fixed parsing issues with the grammar compiler for certain syntax structures.
The compiler had flawed error handling logic when parsing certain special syntax structures. The error handling logic of the compiler was improved, syntax error messages were added, and the fault tolerance of syntax checking was enhanced.
2. Fixed issues with missing branch node information and parsing branch exceptions in the abstract syntax tree.
During the generation of the syntax tree, some branch node information was lost or there were defects in the parsing logic. The syntax tree generation algorithm was fixed to complete the branch node information and optimize the logic for parsing branches.
3. Fixed the usage of ellipses in the grammar rules.
The current usage of ellipses deviated from the semantic specification. The rules for using ellipses were restructured to conform to the semantic standards, improving the readability of the grammar rules.
4. Fixed the Antlr4 grammar for the contract language.
There were conflicts and ambiguities in some of the grammar rules defined in the Antlr4 grammar. The Antlr4 grammar rules were reviewed and corrected to eliminate rule conflicts and improve the accuracy of grammar parsing.