How to evaluate a string of code in Erlang at runtime

Erlang has the ability to read in a string, representing a line of code to execute, at runtime. It can parse it out, evaluate it and return the value. Contents 1 Evaluating Simple Expressions 2 Security Considerations 2.1 What’s an SQL injection attack? (bear with me) 2.2 What’s that have to do with Erlang?! 3 Intercepting Local Function Calls 4 Intercepting Non-Local Function Calls 5 What else? Evaluating Simple Expressions At its most basic, we can just read any expression passed in and execute it. -module(parser). -export([ evaluate_expression/1 ]). -spec evaluate_expression(string) -& »