Bite-Programming-Language
Bite-Programming-Language copied to clipboard
The result of a Bite program should be a value
..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
I will consider this.