diff options
| author | Rose Hogenson <rosehogenson@posteo.net> | 2024-05-30 20:00:08 -0700 |
|---|---|---|
| committer | Rose Hogenson <rosehogenson@posteo.net> | 2024-05-30 21:09:54 -0700 |
| commit | 5e88902a161674605c6835c7be96d412d82e7dd4 (patch) | |
| tree | b14073a4270e0051dfa6dcfb0e3d4112ef5cb452 /src/main.rs | |
| parent | Write tests for eval. (diff) | |
| download | qc-5e88902a161674605c6835c7be96d412d82e7dd4.tar.zst | |
Write tests for parser.
Diffstat (limited to 'src/main.rs')
| -rw-r--r-- | src/main.rs | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/main.rs b/src/main.rs index 8976e17..9af3e48 100644 --- a/src/main.rs +++ b/src/main.rs @@ -1,4 +1,5 @@ mod eval; +mod expr; mod lexer; mod parser; @@ -39,7 +40,7 @@ fn main() -> ExitCode { window.destroy(); } if let Some(n) = parser::parse(&input.text()) { - output.set_text(&format!("{n}")); + output.set_text(&format!("{}", n.eval())); } }), ); |
