Ruby and the Interpreter Pattern
This article was very interesting, specially after the programming languages course, first of all, the S-expression Interpreter Framework (SIF) is presented as a tool for teaching Language design and implementation. As mentioned at the end of the text, this is taught in the last four weeks of the programming languages course, of course, this fact makes thing a lot more understandable, and after reading it I felt very grateful for having the opportunity to at least understand the way things work.
This framework is written in Ruby, which makes thing more interesting since it is a very flexible language and allow many possibilities.
One of the most interesting facts of the framework is the idea of being so flexible that it can be extended to satisfy almost any need, functional languages, imperative programming, etc. Almost anything can be achieved by this and by extending the framework, this of course creates a very versatile environment.
And also something interesting to me is the fact that Ruby is very similar to Python, and to be honest I do love Python, which makes Ruby a very strong option for me and creates a lot of interest
Even though the pattern is a short version of the compiler, it can really help to understand the way a compiler works and why it works that way, I will be taking Software Design and Architecture next semester, but I would have really liked to take it before compiler design so that I could try to better understand the fundamentals behind the project, or at least make it easier.
Comentarios
Publicar un comentario