Look off into to distance, there is a lot of stuff out there that we don’t know. OK, I’ll be honest, that line is there to give me a reason for setting a picture of my dog as the main image.
I’ve spent the last four years completing my Bachelor of Science in Software Engineering at the Institute of Technology, Carlow. During those four awesome years I’ve learned a crap load of stuff. I’ve learned stuff in my first year which I can recall right now and I’ve “learned” things in fourth year that I can remember nothing about, and probably never will.
I’ve posted about this before, but it has since been deleted (along with my website). Here’s a refresher:
I know. You’re thinking – “This guy’s got a mouth on him”. Well, in this case, I do. I’ve been looking into the brainfuck programming language, and I said I’d like to give it a go.
When creating my final year project – Interactive Erlang Notebook – I had to figure out a way of evaluating Erlang expressions. This means taking a line of Erlang code (in string format) and executing it using Erlang.
You’d think it would be easy, but it took a bit longer than expected. Sifting through StackOverflow and going past the first page on a google search, things weren’t looking good.
Quick and Easy
Luckily, after reading the Erlang Docs, I figured it out. Below is an implementation of a function that evaluates Erlang code (in string format) and returns the result.