PaddiM8 / kalker

Scientific calculator with math syntax that supports user-defined variables and functions, complex numbers, and estimation of derivatives and integrals
https://kalker.xyz
MIT License
1.59k stars 70 forks source link

Typing a word, followed by a space crashes the program #16

Closed ewpratten closed 3 years ago

ewpratten commented 3 years ago

How to reproduce:

1) Open kalk 2) Type test (notice the trailing space) 3) Press enter

The error:

thread 'main' panicked at 'called `Option::unwrap()` on a `None` value', kalk/src/lexer.rs:80:18
note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace
[1]    18396 abort (core dumped)  ./kalk_cli

Version: 0.1.10

PaddiM8 commented 3 years ago

Oh yeah, I'm getting this too apparently. Should be fixed now, thanks a lot!