diff --git a/src/Lexer.fu b/src/Lexer.fu index 929e499..493bfb1 100644 --- a/src/Lexer.fu +++ b/src/Lexer.fu @@ -55,10 +55,12 @@ class Lexer { // try end token and skip current char case ' ': case '\t': case '\n': case '\r': TryEndToken(); + tokBegin++; break; // move next case '0': case '1': case '2': case '3': case '4': case '5': case '6': case '7': case '8': case '9': + case '.': break; // set type from Numeric to Literal default: diff --git a/src/MainClass.fu b/src/MainClass.fu index a145af1..0cfb8f0 100644 --- a/src/MainClass.fu +++ b/src/MainClass.fu @@ -7,7 +7,7 @@ public static class MainClass { #endif string() joined = ""; foreach(string arg in args){ - joined += arg; + joined += arg + " "; } double rezult = Calculator.Calculate(joined); Console.WriteLine(rezult);