Morpho-lang / morpho

The Morpho language 🦋. Morpho is a small embeddable language for scientific computing applications.
MIT License
33 stars 11 forks source link

Empty string interpolation #240

Closed softmattertheory closed 10 months ago

softmattertheory commented 1 year ago

Describe the bug An empty string interpolation raises an error

To Reproduce Steps to reproduce the behavior:

print "${}"

raises: Error 'IntrpIncmp' [line 1 char 11] : Incomplete string after interpolation.

Expected behavior Should parse correctly and print an empty string (or whatever is after the interpolation).

Additional context Tested in 0.5.7

softmattertheory commented 10 months ago

This bug has been fixed in morpho 6 by https://github.com/Morpho-lang/morpho-libmorpho/pull/17