|
|
|
|
|
by rhelz
858 days ago
|
|
> Perhaps this comment was meant as a joke Nope, not a joke. As you say, this is just the application of parsing technology to a tokenized stream of input events. its super-useful in creating state machines to do parsing---and it can be super-useful to create state machines for other things as well. > I watched Ken Thompson write a Paxos implementation in yacc once. In real time? dude, you gotta post video to youtube or post a "Tell HN" story about it. |
|
Ken discussed yacc briefly in Coders at Work, which I quoted at https://research.swtch.com/yyerror:
Seibel: And are there development tools that just make you happy to program?
Thompson: I love yacc. I just love yacc. It just does exactly what you want done. Its complement, lex, is horrible. It does nothing you want done.
Seibel: Do you use it anyway or do you write your lexers by hand?
Thompson: I write my lexers by hand. Much easier.