How bsuir-ai-labs/set-calculator works
Set Operations Calculator is a Streamlit app for defining sets, composing set expressions, and viewing results as LaTeX. The principal workflow runs from the user-facing interface through input validation and expression evaluation to set operations, then displays the computed set. The parser delegates operations to the calculation manager, which uses the configured universal set. The README documents the supported operations and UI flow; the graph focuses on runtime components rather than deployment tooling.
Main entry points: main.py Streamlit app · consts.py Set constants · validator_manager.py Input validation · operations_parser.py Expression parser
Components 6
User interface
- Streamlit app
main.py
Expression handling
- Input validation
core/validator_manager.py - Expression parser
core/operations_parser.py
Set calculation
- Set operations
core/set_calculation_manager.py - Set constants
consts.py
Other components
- User
Connections 7
- User → Streamlit app: uses
README.md - Streamlit app → Input validation: validates input
main.py - Streamlit app → Expression parser: evaluates expression
main.py - Expression parser → Set operations: delegates operations
core/operations_parser.py - Set operations → Set constants: reads default set
core/set_calculation_manager.py - Input validation → Set constants: checks allowed values
core/validator_manager.py - Streamlit app → Set constants: initializes universal set
main.py