Live data from Hacker News

Working through 'Writing A C Compiler'

jollygoodsw.wordpress.com

1–10 of 44 posts

Re: Working through 'Writing A C Compiler'

#6
post #3

The crafting interpreting asks the reader to use the visitor pattern, and this was quite a turn off for me, I stopped there.

This part confused me quite a bit so I turned it into the more verbose format by copy-pasting. I don’t like the boilerplate code generation either so I converted that part too. The whole book is still pretty interesting though.

Re: Working through 'Writing A C Compiler'

#9
post #3

The crafting interpreting asks the reader to use the visitor pattern, and this was quite a turn off for me, I stopped there.

Lolol weirdest reason to reject that book - 90% of production parsers are recursive descent parsers.

It probably has nothing to do with recursive descent parsing, which is intuitive, but with the visitor pattern as mentioned. I myself find it very distracting too.

Re: Working through 'Writing A C Compiler'

#10

Earlier quoted context omitted.

Lolol weirdest reason to reject that book - 90% of production parsers are recursive descent parsers.

It probably has nothing to do with recursive descent parsing, which is intuitive, but with the visitor pattern as mentioned. I myself find it very distracting too.

.... They're the same thing....
Post reply on HN