pike.git/
src/
language.yacc
Branch:
Tag:
Non-build tags
All tags
No tags
1996-11-03
1996-11-03 06:39:26 by Fredrik Hübinette (Hubbe) <hubbe@hubbe.net>
3ddb539624fe49b180cd0ea13ee22998678b867d (
11
lines) (+
10
/-
1
)
[
Show
|
Annotate
]
Branch:
7.9
sscanf(foo,bar,int gazonk) implemented
Rev: src/language.yacc:1.5
301:
%type <n> gauge %type <n> lambda %type <n> local_name_list
+
%type <n> lvalue
%type <n> lvalue_list %type <n> m_expr_list %type <n> m_expr_list2
1140:
} ;
+
lvalue: expr4
+
| type F_IDENTIFIER
+
{
+
add_local_name($2,pop_type());
+
$$=mklocalnode(islocal($2));
+
}
+
lvalue_list: /* empty */ { $$ = 0; }
-
| ','
expr4
lvalue_list { $$ = mknode(F_LVALUE_LIST,$2,$3); }
+
| ','
lvalue
lvalue_list { $$ = mknode(F_LVALUE_LIST,$2,$3); }
; low_string: F_STRING