How adrian-adrienne/cmsc-124-ps1-starter works
This repository is a C17 case-file interpreter and runtime for ten data types. A user supplies a case file; the program validates and executes its commands, then prints results and checks reference ownership. The graph separates the front end, scalar and aggregate runtime types, and output/ownership behavior. The README documents the driver-to-type interface; sampled driver code directly shows map operations and printing. Other per-type dispatch details are not fully excerpted, so those links rely on the README rather than claims of additional source inspection.
Main entry points: driver.c Scan, parse, execute · print.c Value printer · dt_ref.c Owned references · main.c Program entry
Components 15
Interpreter front end
- Program entry
src/main.c - Scan, parse, execute
src/driver.c
Scalar runtime types
- Tagged values
src/dt_value.c - Checked integers
src/dt_int.c - Length-carrying strings
src/dt_str.c - Enumerations
src/dt_enum.c
Aggregate runtime types
Output and ownership
- Owned references
src/dt_ref.c - Value printer
src/print.c
Other components
- Case-file user
- Case file
Connections 20
- Case-file user → Case file: provides
README.md - Case file → Program entry: supplies path
src/main.c - Program entry → Scan, parse, execute: runs
src/main.c - Scan, parse, execute → Value printer: prints results
src/driver.c - Scan, parse, execute → Maps: operates on
src/driver.c - Scan, parse, execute → Tagged values: uses runtime types
README.md - Scan, parse, execute → Checked integers: dispatches type operations
README.md - Scan, parse, execute → Length-carrying strings: dispatches type operations
README.md - Scan, parse, execute → Enumerations: dispatches type operations
README.md - Scan, parse, execute → Arrays: dispatches type operations
README.md - Scan, parse, execute → Records: dispatches type operations
README.md - Scan, parse, execute → Tuples: dispatches type operations
README.md - Scan, parse, execute → Lists: dispatches type operations
README.md - Scan, parse, execute → Owned references: checks ownership
README.md - Value printer → Arrays: reads elements
src/print.c - Value printer → Maps: reads entries
src/print.c - Value printer → Records: reads fields
src/print.c - Value printer → Owned references: borrows value
src/print.c - Value printer → Length-carrying strings: reads bytes
src/print.c - Scan, parse, execute → Owned references: reports unreleased cells
src/driver.c