How arcg-prog/olc2_fortranpeg_g13 works
Main Components Identification
a) Frontend Layer:
• HTML interface (index.html)
• Frontend logic (index.js)
• Peggy-generated parser (grammar.js)
b) Backend Layer:
• TypeScript-based server (index.ts)
• Grammar definitions (grammar.pegjs, inicio.peggy)
• Test inputs (pruebas directory)
[Web Interface]
• ↓
[Frontend Logic]
• ↓
[Parser Component]
• ↓
[Backend Server]
• ↓
[Grammar Processor]
Specific Elements
a) User Interface Layer:
• JavaScript controller components
• Connection to the parser component
b) Parser Layer:
• Peggy parser generation flow
• How grammar files (.pegjs, .peggy) are compiled into the parser
• Relationship between frontend and backend parser components
c) Backend Processing:
• TypeScript server component
• Grammar processing pipeline
• Test input processing flow
Component Relationships
Use the following connection types:
Detailed Component Breakdown
Frontend Section:
[index.html] → [index.js] → [grammar.js]
Backend Section:
[grammar.pegjs/inicio.peggy] → [TypeScript Server] → [Processed Output]
Implementation Notes
• The separation between frontend and backend
• The parser generation process
• How grammar files are processed
• Test input handling
• Deployment workflow