Ruby is an interpreted, dynamically typed programming language, that helps simplifying the construction on languages interpreters, more specific it has the advantages of having garbage collection, open classes, first class continuations, built-in regular expressions and hashes.
About the source language notation used was the S-expression (symbolic expression) mentioned before, is a notation mainly used in Lisp and the advantages of this notation are that code and data can be easily represented, minimal elements, no associativity problem. On my experience using this notation is that at the begging is hard because of the parenthesis, but once you get it, you notice that it is less code than in other languages. In the other hand, the interpreter pattern helps to evaluate a language grammar or expression.These three S-expression, Ruby and Interpreter Patter for their use, the article give us a detail instructions taking in count that Interpreter.eval class method is the heart of the SIF and it supports integers, symbols, lists and procedures.
In conclusion, this framework is really useful (SIF) because of the features of Ruby give us and the interpreter. Ruby at the same time, it is important to know the bases of this programming language like data types, naming conventions and code blocks. Don't forget that SIF also can be extended.

No hay comentarios:
Publicar un comentario