# Stuck on interpreter, stage 11, expecting exit 65?

**URL:** <https://forum.codecrafters.io/t/stuck-on-interpreter-stage-11-expecting-exit-65/1071>\
**Category:** Challenges\
**Tags:** challenge:interpreter\
**Created:** [July 16, 2024, 3:17pm UTC](https://forum.codecrafters.io/t/stuck-on-interpreter-stage-11-expecting-exit-65/1071 "2024-07-16T15:17:25Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![BaxSTAR17](https://yyz1.discourse-cdn.com/flex003/user_avatar/forum.codecrafters.io/baxstar17/32/988_2.png) [@BaxSTAR17](https://forum.codecrafters.io/u/BaxSTAR17)\
**Post date:** [July 16, 2024, 3:17pm UTC](https://forum.codecrafters.io/t/stuck-on-interpreter-stage-11-expecting-exit-65/1071/1 "2024-07-16T15:17:25Z")

</div>

![image](https://canada1.discourse-cdn.com/flex003/uploads/codecrafters/original/1X/246d14d59f58a0fc940b60014e895a19379deb4c.png)  
on the fourth test for the string literals challenge of building your own interpreter, it tells me that its expecting an exit status of 65 even though it clearly doesn’t have an error (an unterminated string nor an unexpected character). If there was, it wouldve told me that it expected an error message instead, not an exit code.

---

<div class="post-metadata">

**Author:** ![kizzandev](https://yyz1.discourse-cdn.com/flex003/user_avatar/forum.codecrafters.io/kizzandev/32/1090_2.png) [@kizzandev](https://forum.codecrafters.io/u/kizzandev)\
**Post date:** [July 27, 2024, 6:01am UTC](https://forum.codecrafters.io/t/stuck-on-interpreter-stage-11-expecting-exit-65/1071/2 "2024-07-27T06:01:37Z")

</div>

Hello!

I believe is the ‘&’ (AMP) that is supposed to give the error here.  
The reason being that in a later stage they give us the ‘and’ keyword.

I hope that helps!

---

<div class="post-metadata">

**Author:** ![rohitpaulk](https://yyz1.discourse-cdn.com/flex003/user_avatar/forum.codecrafters.io/rohitpaulk/32/6_2.png) [@rohitpaulk](https://forum.codecrafters.io/u/rohitpaulk)\
**Post date:** [July 29, 2024, 6:24pm UTC](https://forum.codecrafters.io/t/stuck-on-interpreter-stage-11-expecting-exit-65/1071/3 "2024-07-29T18:24:51Z")

</div>

@kizzandev is right, the reason the tester is expecting an error there is that & isn’t a valid token in lox. However, this test seems wrong to me - for the fourth test in strings, we intended to test a success case that combines string with other tokens.

We must’ve added `&&` assuming that it was a valid token at the time. Will fix!

---

<div class="post-metadata">

**Author:** ![rohitpaulk](https://yyz1.discourse-cdn.com/flex003/user_avatar/forum.codecrafters.io/rohitpaulk/32/6_2.png) [@rohitpaulk](https://forum.codecrafters.io/u/rohitpaulk)\
**Post date:** [July 29, 2024, 6:33pm UTC](https://forum.codecrafters.io/t/stuck-on-interpreter-stage-11-expecting-exit-65/1071/4 "2024-07-29T18:33:58Z")

</div>

Fixed here: [Update strings test by rohitpaulk · Pull Request #24 · codecrafters-io/interpreter-tester · GitHub](https://github.com/codecrafters-io/interpreter-tester/pull/24), should be live shortly!

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex003/uploads/codecrafters/original/3X/7/0/700657133935c15703e22c7c8870394f6e6dc27d.svg) [@system](https://forum.codecrafters.io/u/system)\
**Post date:** [August 3, 2024, 6:34pm UTC](https://forum.codecrafters.io/t/stuck-on-interpreter-stage-11-expecting-exit-65/1071/5 "2024-08-03T18:34:30Z")

</div>

This topic was automatically closed 5 days after the last reply. New replies are no longer allowed.
