Live data from Hacker News

How to Write Your Own Compiler (2009)

staff.polito.it

1–10 of 43 posts

Re: How to Write Your Own Compiler (2009)

#6
post #3

One of the best resources I've seen on this is Capon and Jinks 'Compiler Engineering Using Pascal' (1988; ISBN 0-333-47155-5) if you can get hold of it http://www.cs.man.ac.uk/~pjj/book.html

Also Brinch Hansen on Pascal Compilers:

https://www.amazon.com/Brinch-Hansen-Pascal-Compilers/dp/013...

Re: How to Write Your Own Compiler (2009)

#7
post #6
post #3

One of the best resources I've seen on this is Capon and Jinks 'Compiler Engineering Using Pascal' (1988; ISBN 0-333-47155-5) if you can get hold of it http://www.cs.man.ac.uk/~pjj/book.html

Also Brinch Hansen on Pascal Compilers : https://www.amazon.com/Brinch-Hansen-Pascal-Compilers/dp/013...

> 1 New from $3,000.00

Uau! I should take care of my old books.

Re: How to Write Your Own Compiler (2009)

#8

If you're wondering why that page looks the way it does, well: > " rel="nofollow">http://www.w3.org/TR/REC-html40">

It's easy to snigger at the code generator used for that site yet the signal to noise ratio for the content itself (which, if we are completely honest, is the metric that really matters) is still better than half the sites that use trendy frontend frameworks and passes JS lint.

Re: How to Write Your Own Compiler (2009)

#10
May I suggest considering Forth as a substrate? Or will that get me voted straight into neckbeard land?

I've had a lot of fun hacking Forths, writing my own languages didn't really click until I finally had a serious look. Forth skips on most of the complexity of getting from bytes to semantics; even Lisp is complex in comparison; but is still powerful enough to do interesting things; and the best foundation for DSL's I've come across.

My latest rabbit hole is called Snabel: https://github.com/andreas-gone-wild/snackis/blob/master/sna...

Post reply on HN