AT
Size: a a a
AT
M
p
AG
AG
PS
PS
If you're interested in language implementation, you typically see two types of tutorials out there depending on your background.
1. If you're in college, chances are you'll find your local Programming Language department to be filled with OCaml/Haskell enthusiasts pushing for compilers for mini-OCaml/Haskell/Imp. You'll be shown the purple Dragon Book and the way out.
2. If you're on your own, chances are you'll stumble across various tutorials on how to use Lex/Yacc masquerading as "How to write your own compiler!" guides. You'll learn about words, and then you get shown this weird parser language called BNF, and finally you get a grammar for some subset of C. "Parsing is the hardest part of a compiler" they'll tell you, "the rest is trivial and is subsequently left as an exercise for the reader."
Finally, they'll tell you to go out and buy the purple Dragon Book.
I've tried both of these approaches, and neither worked. Obviously, the Dragon Book is to be blamed.
PS
AN
PS
AN
EM
If you're interested in language implementation, you typically see two types of tutorials out there depending on your background.
1. If you're in college, chances are you'll find your local Programming Language department to be filled with OCaml/Haskell enthusiasts pushing for compilers for mini-OCaml/Haskell/Imp. You'll be shown the purple Dragon Book and the way out.
2. If you're on your own, chances are you'll stumble across various tutorials on how to use Lex/Yacc masquerading as "How to write your own compiler!" guides. You'll learn about words, and then you get shown this weird parser language called BNF, and finally you get a grammar for some subset of C. "Parsing is the hardest part of a compiler" they'll tell you, "the rest is trivial and is subsequently left as an exercise for the reader."
Finally, they'll tell you to go out and buy the purple Dragon Book.
I've tried both of these approaches, and neither worked. Obviously, the Dragon Book is to be blamed.
PS
EM
EM
EM
EM
AN
AG