diff options
Diffstat (limited to 'src')
| -rw-r--r-- | src/main.rs | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/main.rs b/src/main.rs index 5546094..85c7435 100644 --- a/src/main.rs +++ b/src/main.rs @@ -85,6 +85,9 @@ fn main() -> Result<(), String> { if s.starts_with("#exit") { return Ok(()); } else if s.starts_with("#symbols") { + if symbol_table.is_empty() { + println!("[repl] symbol table is empty"); + } for (symbol, expr) in &symbol_table { println!("{}:\n{}\n", symbol, *expr); } |
