Making Compiler Design Relevant for Students
All the process about making a compiler seems like a
complicated task but the article refers to divers examples and not all are
about programming, in my opinion the idea of a translation is a really good
simplification of the compilers function.
I mean, just like we do when we are speaking a different
language the basic process, at least at the start, is just think what we want
to say and then decompose the phrase in words, then the word is
chaged to the other languge and then all the pieces are glued together to make
a logic sentence.
Just like the article mations I used to think about compilers
as just an exotic topic but it seems to have lots of abstractios usefull for many
of the problems, that are usually faced for programmers, in the creation of the
frontend of the software.
The example in the article was the traslation of latex to
html, in this case, there are some similarities but the real goal about it is
to extract the problem and then put it in some other languge.
At the start I have not idea that compiler design had
phases, because most of the time we make programs and if they work is the end
of tghe job but if they do not, well, scream to the computer o just fix it with
brute force but the compiles needs to do some other things, the phases of a
compiler are:
- · Lexical Analysis and parsing
- · Semantic Analysis
- · Code generation
- · Code parsing
If we learn and, actually the most important part,we
undestand the steps then we can began to interpret the sentences, put it in a
context and identify the meaning of the “words” to finally make a solutiosn,
not only to a digital problems and I think is the real objective of the
subject.
No hay comentarios:
Publicar un comentario