You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The parser module provides backend parsing capabilities for different diagram input formats (UML/SYSML). It extracts information from diagram sources and creates a relational database with relevant tags for downstream tool implementations.
4
+
5
+
## Supported Formats
6
+
7
+
### PlantUML (.puml, .plantuml, .pu)
8
+
- Class diagrams with attributes and methods
9
+
- Interface definitions
10
+
- Actors and components
11
+
- Inheritance, composition, aggregation, association, and dependency relationships
12
+
- Comments and metadata extraction
13
+
14
+
### Mermaid (.mmd, .mermaid)
15
+
- Class diagrams
16
+
- Flowcharts and graphs
17
+
- Sequence diagrams
18
+
- Entity-relationship diagrams
19
+
- Various node shapes and connection types
20
+
21
+
### DrawIO (.drawio, .xml)
22
+
- XML-based diagram formats
23
+
- Shape and connector extraction
24
+
- Style property parsing
25
+
- Position and geometry information
26
+
27
+
## Architecture
28
+
29
+
### Base Classes
30
+
-`BaseParser`: Abstract base class defining the parser interface
31
+
-`ParsedDiagram`: Container for parsed diagram data
32
+
-`DiagramElement`: Represents individual diagram elements
33
+
-`DiagramRelationship`: Represents relationships between elements
34
+
35
+
### Database Layer
36
+
-`DiagramDatabase`: SQLite-based storage for parsed diagrams
37
+
- Database models for diagrams, elements, and relationships
38
+
- Search and query capabilities
39
+
- Export functionality (JSON, CSV)
40
+
41
+
## Usage Example
42
+
43
+
```python
44
+
from parsers import PlantUMLParser, MermaidParser, DrawIOParser
0 commit comments