John Porter <jdporter@min.net> writes: >Moore, Paul wrote: >> Reusing a compiler parser on that is likely to be a challenge :-) >> >> I don't have a problem with wanting to make it more possible to handle Perl >> in this sort of context - but don't assume that splitting out the parser is >> a "magic bullet". > >That's exactly why I'm in favor of having a well-defined grammer that lets >you write your own parser if you think you need to. > > >> And I don't think >> that redesigning Perl's syntax to be easily parseable is going to get >> anywhere - the result just wouldn't be Perl, in some very fundamental ways. > >I don't believe that has to be the case. I think that a (non absolute) goal of perl6's grammar should be that it is a near to yacc/byacc/bison/yapp LALR(1) as is possible without quite so much hackery in the lexer. Some hackery in the lexer is not uncommon even in "pure" yacc languages (even C needs to notice typedefs), but perl5 has gone too far. -- Nick Ing-Simmons