develooper Front page | perl.perl5.porters | Postings from May 2008

Re: [perl #54974] Strange map {} Behavior When Returning Two Values

Thread Previous | Thread Next
From:
Aristotle Pagaltzis
Date:
May 29, 2008 03:12
Subject:
Re: [perl #54974] Strange map {} Behavior When Returning Two Values
Message ID:
20080529101242.GA22427@klangraum.plasmasturm.org
* Rafael Garcia-Suarez <rgarciasuarez@gmail.com> [2008-05-29 10:45]:
> Perl's parser is strictly a LALR(1) yacc-generated parser --
> not a "havily mutated" thingy. That means that it uses only one
> token of lookahead, and that detecting anything after a closing
> brace is impossible.
> 
> The smoke and mirrors are strictly kept in the tokenizer, which
> is stateful, contrary to most classical tokenizers (like the
> ones lex generates).

Yes, the tokeniser is what I had in mind.

Regards,
-- 
Aristotle Pagaltzis // <http://plasmasturm.org/>

Thread Previous | Thread Next


nntp.perl.org: Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at ask@perl.org | Group listing | About