At 11:58 AM 12/17/00 +0000, David Grove wrote:
>As the maker of such an editor, I wouldn't mind getting any help from perl
>that can be gotten in this area. It's not really the rules that are
>gotchas, but the exceptions to the rules. The elements that you mentioned
>(strings and regexen) are extremely difficult to find, especially in odd
>contexts like grep {/[^.]/} where there's no leading =~ or !~ and in s///
>where there's not a single ending but two, each with its own rules.
>
>I'm not sure this is a parser issue, at least not when it comes to the
>internal parsing of Perl for perl's sake.

Actually, it is. Making a syntax highlighting editor would be a lot easier 
if it hands:

   $foo = $bar + 12;

and gets back:

   $foo<scalar> =<assign> $bar<scalar> +<addition> 
12<constant>;<end-of-statement>

or something like it.

That's sort of what the parser will get you.

                                        Dan

--------------------------------------"it's like this"-------------------
Dan Sugalski                          even samurai
[EMAIL PROTECTED]                         have teddy bears and even
                                      teddy bears get drunk

Reply via email to