add floating point number support

This commit is contained in:
krolxon 2024-02-18 19:57:59 +05:30
parent 7f3597e705
commit 71eeb0f51a
1 changed files with 1 additions and 0 deletions

View File

@ -18,6 +18,7 @@ public class Parser {
private boolean isOperand(char c) { private boolean isOperand(char c) {
switch (c) { switch (c) {
case '.':
case '0': case '0':
case '1': case '1':
case '2': case '2':