WIP: ANTLR parser at 98.4% pass rate (932/947 tests)

- Both Listener and Visitor patterns achieve identical 98.4% pass rate
- 6 remaining failing tests to reach 99.7% target:
  1. Markdown formatting in subgraphs (1 test)
  2. Multi line strings YAML processing (2 tests)
  3. Node data YAML processing (2 tests) - @ syntax in ampersand chains
  4. Accessibility description parsing (1 test)
- Significant progress from previous baselines
- Ready to tackle remaining issues systematically
This commit is contained in:
Ashish Jain
2025-09-17 15:19:41 +02:00
parent 2ca7ccc88b
commit bea00ebbd5
12 changed files with 2335 additions and 2050 deletions

View File

@@ -86,6 +86,8 @@ export const getBuildConfig = (options: MermaidBuildOptions): BuildOptions => {
'import.meta.vitest': 'undefined',
// Replace process.env.USE_ANTLR_PARSER with actual value at build time
'process.env.USE_ANTLR_PARSER': `"${process.env.USE_ANTLR_PARSER || 'false'}"`,
// Replace process.env.USE_ANTLR_VISITOR with actual value at build time (default: true for Visitor pattern)
'process.env.USE_ANTLR_VISITOR': `"${process.env.USE_ANTLR_VISITOR || 'true'}"`,
},
});