Front page | perl.perl5.porters |
Postings from July 2001
Re: map, grep, split
Thread Previous
From:
Dave Mitchell
Date:
July 30, 2001 05:56
Subject:
Re: map, grep, split
Message ID:
200107301255.NAA13013@gizmo.fdgroup.co.uk
Jeff 'japhy/Marillion' Pinyan" <jeffp@crusoe.net> wrote:
> Where in the grammar (and in toke.c) can I find how
>
> grep EXPR, LIST;
> map EXPR, LIST;
> split EXPR, EXPR, LIMIT;
>
> get parsed? (Warning: I'm trying to emulate them.)
toke.c:
case 4:
if (strEQ(d,"grep")) return KEY_grep;
....
case KEY_grep:
LOP(OP_GREPSTART, XREF);
....
#define LOP(f,x) return lop(f,x,s)
STATIC I32
S_lop(pTHX_ I32 f, int x, char *s)
{
.....
Thread Previous
-
map, grep, split
by Jeff 'japhy/Marillion' Pinyan
-
Re: map, grep, split
by Dave Mitchell