How elis3o2/dsl-prob works
Prob is a Haskell interpreter for a probability DSL. Its documented user workflow is to run a .prob script or use the REPL, then evaluate declarations and commands such as print, table, plot, probability queries, Markov-chain queries, and simulation. The graph preserves the corresponding language, distribution, Markov, and presentation components. No source excerpts were supplied, so internal call relationships are omitted; dashed edges with no evidence mark only broad, unverified runtime relationships. The README documents gnuplot and Graphviz as plotting dependencies.
Main entry points: Plot.hs Plotting · Main.hs Interpreter
Components 21
Interpreter entry
- Interpreter
app/Main.hs
Language processing
- Parser
src/Parse.hs - AST
src/AST.hs - Validation
src/Validator.hs - Type checker
src/TypeChecker.hs - Evaluation
src/Eval.hs - Runtime support
src/Monad.hs - Errors
src/Error.hs - Shared definitions
src/Common.hs - Global state
src/Global.hs
Probability domain
- Distributions
src/Distribution.hs - Binary operations
src/CBin.hs
Markov analysis
- Markov chains
src/Markov.hs - Matrix operations
src/Matrix.hs - Simulation
src/Simulation.hs
Results and presentation
- Probability tables
src/Table.hs - Plotting
src/Plot.hs - Pretty printing
src/PPrint.hs
Other components
- Script / REPL user
- gnuplot
- Graphviz
Connections 3
- Script / REPL user → Interpreter: runs scripts / REPL
README.md - Plotting → gnuplot: plots distributions
README.md - Plotting → Graphviz: plots chains
README.md