🎯 Mermaid ANTLR Parser Test Page

🔧 Parser Information

Environment Variable: Loading...

Expected: USE_ANTLR_PARSER=true

Status: Checking...

Test 1: Basic Flowchart

Simple flowchart to test basic ANTLR parser functionality:

flowchart TD
  A[Start] --> B[End]
    

Test 4: Complex Shapes with Text

Testing various node shapes with complex text content:

flowchart LR
  A(Round Node) --> B{Diamond}
  B --> C([Stadium])
  C --> D[[Subroutine]]
  D --> E[(Database)]
  E --> F((Circle))
  F --> G[/Parallelogram/]
  G --> H[\Trapezoid\]
  H --> I[Mixed Text with / slash]
  I --> J[\Mixed Text with \ backslash\]
    

Test 5: Classes and Styles

Testing class and style processing:

        flowchart TD
          A[Node A] --> B[Node B]
          B --> C[Node C]

          classDef redClass fill:#ff9999,stroke:#333,stroke-width:2px
          classDef blueClass fill:#9999ff,stroke:#333,stroke-width:2px

          class A redClass
          class B,C blueClass
      

Test 6: Subgraphs

Testing subgraph processing:

        flowchart TD
          subgraph Main["Main Process"]
            A[Start] --> B[Process]
          end

          subgraph Sub["Sub Process"]
            C[Sub Start] --> D[Sub End]
          end

          B --> C
          D --> E[Final End]