1
0
mirror of https://github.com/golang/go synced 2024-11-17 06:54:48 -07:00

len now takes an expression

R=r
DELTA=1  (0 added, 0 deleted, 1 changed)
OCL=13523
CL=13523
This commit is contained in:
Ken Thompson 2008-07-28 13:54:58 -07:00
parent d302244c6c
commit b2d9020242

View File

@ -720,7 +720,7 @@ pexpr:
{
$$ = nod(OCALL, $1, $3);
}
| LLEN '(' name ')'
| LLEN '(' expr ')'
{
$$ = nod(OLEN, $3, N);
}