We use cookies to ensure you have the best browsing experience on our website. Please read our cookie policy for more information about how we use cookies.
BrainF__k interpreter
BrainF__k interpreter
Sort by
recency
|
10 Discussions
|
Please Login in order to post a comment
My brain has been giving me problems for a while now. I was struggling with insomnia for a couple of months until my doctor advised me to start a therapy using Best CBD products. He recommended https://aifory.com/ and their CBD oil has been helping a lot with my sleeping problems. They are a certified company so you won't face any quality issues.
@drakemp I assume it's the only way to go -> To write the lexer, parser and evaluator. The grammar is easy though, therefore it's not that hard.
I also had the hard time with the operation count thingy. The point is, you need to do exactly what is stated in the description, namely ->
so it's important that you count those correctly. Meaning, +1 for [ then + 1 for every op, then +1 for ] and now you either execute loop again (meaning that [ has to be executed again), or go to next instruction.
When I finally did exactly what they stated and counted the ops, I got all green
My code in clojure -> link
I for the life of me cannot pass #11 and #13 at the same time. I may have over done it by writing a lexer,parser, and evaluator for this problem. My issue seems to be in my while evaluation trying to count the operations. I increment the counter when checking the while condition and then again after the body has been evaluated. Once the body is evaluated I recursively call my while eval so that the condition is checked again and counter increases again. This is perfect for 13 but 11 it is too few counts.
i m getting
WA
inCase #13