Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

I started writing my own compile-to-JS language a while back after reading this book: http://createyourproglang.com/ and I'm loving it!

However I'm having a bit of trouble right now with my grammar, I'm using Jison (http://jison.org) and the error messages are kind of confusing (I didn't even know they were error messages at first, I thought they were some kind of logging). I apparently have shift-reduce conflicts just about everywhere, but I didn't bother solving them as I was building the rest of the language since everything is working fine! (well I'm sure there are edge cases that I haven't ran into yet)

So if anyone here has a good link on the basics of parsing, grammars, LR(1) and whatnot, I'd like to understand what I'm doing ;)



Although a bit out of date, the Dragon book is always worth a read.

http://dragonbook.stanford.edu/




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: