erg-lang / erg

A statically typed language compatible with Python
http://erg-lang.org
Apache License 2.0
2.69k stars 55 forks source link

Multiple declarations on a single line #281

Closed GreasySlug closed 1 year ago

GreasySlug commented 1 year ago

Describe the bug?

Normally, it should be separated by a semicolon, but it can be written on a single line with a blank space.

Reproducible code

a = 1 b = 2 c = 3
print! a, b, c

Expected result

Invalid Syntax

Actual result

1 2 3

Additional context

No response

Erg version

Erg 0.6.0-beta.1

Python version

python3.10.8

OS

Windows 10