aya-lang/aya

Nested string parser error

Opened this issue · 0 comments

Originally found by @BlazingTwist

aya> "$(\"\")":P
input<\">
source<"\>
Exception in thread "main" java.lang.AssertionError
        at aya.parser.ParserString.<init>(ParserString.java:23)
        at aya.parser.tokens.StringToken.getInstruction(StringToken.java:38)
        at aya.parser.Parser.generate(Parser.java:712)
        at aya.parser.Parser.compileIS(Parser.java:785)
        at aya.parser.tokens.StringToken.parseInterpolateStr(StringToken.java:127)
        at aya.parser.tokens.StringToken.getInstruction(StringToken.java:35)
        at aya.parser.Parser.generate(Parser.java:712)
        at aya.parser.Parser.compileIS(Parser.java:785)
        at aya.parser.Parser.compileIS(Parser.java:781)
        at aya.parser.Parser.compile(Parser.java:759)
        at aya.InteractiveAya.processInput(InteractiveAya.java:115)
        at aya.InteractiveAya.loop(InteractiveAya.java:227)
        at ui.AyaIDE.main(AyaIDE.java:377)