Skip to content

The result of a Bite program should be a value #46

@vorov2

Description

@vorov2

..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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions