Subj : Re: Question to SpiderMonkey 's developers about scaner/parser To : Lyalin Iliya From : Igor Bukanov Date : Thu Aug 07 2003 01:37 pm Lyalin Iliya wrote: > Why did not you use yacc-like and lex-like tools for > create your scaner and parser in SpiderMonkey? > > What advantages have your 'hand-made' parser and scaner > vs. 'yacc-generated' and 'lex-generated' ? For ECMAScript your are pretty much forced to use hand-made lexer since AFAIK there is no lexer that can deal with all UNICODE line ending and format chars that ECMAScript allows to use everywhere in the source. And for the parser perhaps SM developers wrote it themselves for the the same reasons C++ in GCC now has it, see http://gcc.gnu.org/ml/gcc/2000-10/msg00573.html Regards, Igor .