Language Design and Implementation using Ruby and the Interpreter Pattern
The interpreter pattern can be an interesting tool to tech students to understand the characteristics and intrinsic of a compiler, using the ruby regular expression API can help to scan all the code, detect all the respective "S-expressions" and generate the respective three for the interpreter pattern. Ruby is an excellent tool for this, having a simple and precise sintaxis, the datatypes in ruby are clearly defined and differentiated from other data types, the primitives are also procedures that allow to bind variables defined previously. SIF: s expression interpreter framework, this framework has a series of rules that allow it to be used in teaching: Code blocks: this technique allows a block of code to be easily identified, encased by curly braces, usually this block codes are for one specific part or structure of our code, the evaluation is based around symbols, lists and values that need to be evaluated in order to execute the code. The lists are used