Compiler From Scratch: Phase 1 - Tokenizer Generator 022: Resolving DFA state ambiguity

Поділитися
Вставка
  • Опубліковано 18 гру 2024

КОМЕНТАРІ • 3

  • @annusingh4694
    @annusingh4694 3 дні тому +1

    Hi, thanks for sharing these streams. Can you suggest learning resources for creating a compiler from scratch?

    • @SimGunther
      @SimGunther 2 дні тому

      A few I know of are:
      - Writing an Interpreter in Go by Thorsten Ball - Highly recommended!
      - Crafting Interpreters by Robert Nystrom if you can get past the prose; HTMLversion freely available
      - "Teaching Compilers Backward" in SigPlan naturally makes sense for interpreters as well
      - Ben Lynn's writings on the subject
      - bernsteinbear "Bytecode compilers and interpreters"

    • @thediscouragerofhesitancy83
      @thediscouragerofhesitancy83  2 дні тому

      I'll have to check out some of the recommendations from @SimGunther. I've run across "Crafting Interpreters" before, but I haven't really spent any quality time with it.
      The book I spent the most time in was the purple dragon book: "Compilers: Principles, Techniques, & Tools" by Aho, Lam, Sethi and Ullman. I don't think this is the best book ... it is not beginner friendly and I really struggled through some of the parts before I understood it. It is very academically focused.
      I've played with the idea of building a more tutorial-based/beginner-friendly/prepared series on the topic, but I have other projects I have to finish up first.