3 ms·
I started writing my own compile-to-JS language a while back after reading this book: http://createyourproglang.com/ http://createyourproglang.com/ and I'm lovi
by cocoflunchy 13y ago
I started writing my own compile-to-JS language a while back after reading this book: http://createyourproglang.com/ 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 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 ;)
- pjmlp 13y agoAlthough a bit out of date, the Dragon book is always worth a read. http://dragonbook.stanford.edu/ http://dragonbook.stanford.edu/