0
comment
comment
on 12/10/2014 9:22 AM
Yesterday I noticed a tweet recommending an “Uncle” Bob Martin video that is intended to “demystify compilers”. I haven’t seen the video (Episode 29, SMC Parser) as it’s behind a pay wall, but I did find a link on the page to a github repository with a hand rolled parser written in vanilla Java, plus a transformation step that compiles it out to either Java or C code. The parser implementation is quite involved with a number of files covering both lexing and parsing: Parser.java (168 loc) FSMSyn[...]