Re: Designing Lisp from scratch
Jaap Weel <[email protected]> Fri, 23 Mar 2007 11:33:16 +0100
| Newsgroups | gmane.comp.lang.lightweight |
|---|---|
| Message-ID | <[email protected]> |
Hi Bob! > Well, I never really stated that that's the way I'd prefer to do it. In > fact, I've never really understood the rationale of separating the lexer > from the parser. It's faster that way. > Yacc is actually pretty powerful. I wouldn't bet on it being able to > parse Perl or C, but I wouldn't be surprised if it could. The only thing about C that would give you trouble is typedefs. (See Appendix A13 to K&R: "With one further change, ..., this grammar is acceptable to the YACC parser-generator.") -- /jaap P.S. Dinner?