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

Implemtent the multi-line string method #171

Closed GreasySlug closed 2 years ago

GreasySlug commented 2 years ago

Fixes #167.

Add method for multi-line strings and a file to test it.

A test for tokenizing multi-line strings will also be added.

Changes proposed in this PR:

@mtshiba

GreasySlug commented 2 years ago

I found a new bug in implementing this. Tokenized for quotes only, but trimmed after execution.

>>> a = """\"\"\""""

>>> print! a

None

It probably is a bug, since the tokenization test passed.

mtshiba commented 2 years ago

Thank you! We will deal with the bug in another issue.