a compiler, you arn't writing it in python unless you hate yourself.
So you're not going to define it in terms of python. So making a distinction between the terms of python and assembly is useless. Why even bring it up?
If I'm writing a compiler, I'm writing it in one langauge, describing it in that language, maybe talking about it in mathematic terms for the hell of it, but talking about it doesn't WRITE it.
I have to translate those mathematic concepts into the language I am using because... the compiler doesn't speak "math" it speaks the language it was written to speak, some form of assembly or—if you are using an abstraction from that—perhaps C.
No where in the process of writing the compiler, are you speaking f(x) -> void except maybe a design document. :P
Perl6 is very good for create lexer/parser
More generatlly, you will also spend a lot of time translating complex terms of the mathematical abstraction into other mathematical terms that are more favorable and that is what optimization is
Обсуждают сегодня