Skip to content

Commit

Permalink
Make del support just one name.
Browse files Browse the repository at this point in the history
Multiple name support isn't useful.

Signed-off-by: Keith Packard <keithp@keithp.com>
  • Loading branch information
keith-packard committed Feb 28, 2019
1 parent 92ab443 commit b95a1a0
Showing 1 changed file with 3 additions and 11 deletions.
14 changes: 3 additions & 11 deletions snek-gram.ll
Expand Up @@ -54,18 +54,10 @@ command : @{ snek_print_val = snek_interactive; }@ stat
if (ref)
*ref = poly;
}@
| DEL
| DEL NAME
@{
snek_parse_nformal = 0;
}@
formals
@{
uint8_t i;
for (i = 0; i < snek_parse_nformal; i++)
if (!snek_id_del(snek_parse_formals[i])) {
snek_undefined(snek_parse_formals[i]);
break;
}
if (!snek_id_del(snek_token_val.id))
snek_undefined(snek_token_val.id);
}@
| IMPORT NAME
;
Expand Down

0 comments on commit b95a1a0

Please sign in to comment.