Bite-Programming-Language icon indicating copy to clipboard operation
Bite-Programming-Language copied to clipboard

The result of a Bite program should be a value

Open vorov2 opened this issue 3 years ago • 1 comments

..at least in interactive mode. I would also suggest to allow user to omit ; for the last statement (if next token is EOF).

For example, this is how C# interactive works (; in C# is also mandatory):

> 2+2
4

Bite:

> 2+2
Error occured while parsing statement.
Error Count: 1
missing ';' at '<EOF>'

> 2+2; <-- no output
> System.PrintLine(2 + 2); <--finally output

vorov2 avatar Apr 17 '22 19:04 vorov2

I will consider this.

Maximilian-Winter avatar Apr 17 '22 20:04 Maximilian-Winter