chaos-lang / chaos

The Chaos Programming Language
https://chaos-lang.org
GNU General Public License v3.0
281 stars 17 forks source link

[Bug] String literals cannot have parenthesis in them #77

Closed tinywombat765 closed 3 years ago

tinywombat765 commented 3 years ago

Describe the bug String literals cannot have parenthesis in them.

To Reproduce Declare a string literal with parenthesis in it

koas> str test = "()"

  Syntax error:
    Module: /home/zethra/Projects/Personal/chaos-regex/__interactive__.kaos
    Line: 7
    Cause: "\n\n\nprint test\ntest = "

Expected behavior I get a string

Environment:

mertyildiran commented 3 years ago

@zethra the issue fixed with: