🎯 Mermaid Sequence ANTLR Parser Test Page

🔧 Parser Information

Environment Variable: Loading...

Expected: USE_ANTLR_PARSER=true

Status: Checking...

Test 1: Basic Sequence Diagram

Simple sequence diagram to test basic ANTLR parser functionality:

sequenceDiagram
  Alice->>Bob: Hello Bob, how are you?
  Bob-->>Alice: Great!
    

Test 2: Participants and Actors

Testing participant and actor declarations:

sequenceDiagram
  participant A as Alice
  participant B as Bob
  actor C as Charlie
  
  A->>B: Hello Bob
  B->>C: Hi Charlie
  C-->>A: Hello Alice
    

Test 3: Different Arrow Types

Testing various arrow types and message formats:

sequenceDiagram
  Alice->>Bob: Solid arrow
  Bob-->>Alice: Dotted arrow
  Alice-xBob: Cross ending
  Bob--xAlice: Dotted cross
  Alice-)Bob: Open arrow
  Bob--)Alice: Dotted open
    

Test 4: Activation Boxes

Testing activation boxes and lifelines:

sequenceDiagram
  Alice->>+John: Hello John, how are you?
  Alice->>+John: John, can you hear me?
  John-->>-Alice: Hi Alice, I can hear you!
  John-->>-Alice: I feel great!
    

Test 5: Notes and Comments

Testing notes over participants:

sequenceDiagram
  participant Alice
  participant Bob
  
  Alice->>Bob: Hello Bob
  Note over Alice,Bob: This is a note over both
  Note right of Bob: This note is on right of Bob
  Note left of Alice: This note is on left of Alice
  Bob-->>Alice: Hi Alice
    

Test 6: Loops and Alt

Testing control flow structures:

sequenceDiagram
  Alice->>Bob: Hello Bob
  
  loop Every minute
    Bob-->>Alice: Great!
  end
  
  alt is sick
    Bob->>Alice: Not so good :(
  else is well
    Bob->>Alice: Feeling fresh like a daisy
  end