diff options
author | Pascal Rigaux <pixel@mandriva.com> | 2003-04-28 10:25:30 +0000 |
---|---|---|
committer | Pascal Rigaux <pixel@mandriva.com> | 2003-04-28 10:25:30 +0000 |
commit | e1a1adf65845357f26e396dbc34adc127b2126a6 (patch) | |
tree | 47bed6373395c7e27b07c11ac51751bec11cf337 /perl_checker.src/parser.mly | |
parent | f996370a9b1b1f481985bc825ab97eecb2ea6b27 (diff) | |
download | perl_checker-e1a1adf65845357f26e396dbc34adc127b2126a6.tar perl_checker-e1a1adf65845357f26e396dbc34adc127b2126a6.tar.gz perl_checker-e1a1adf65845357f26e396dbc34adc127b2126a6.tar.bz2 perl_checker-e1a1adf65845357f26e396dbc34adc127b2126a6.tar.xz perl_checker-e1a1adf65845357f26e396dbc34adc127b2126a6.zip |
allow "sub pkg::foo() { ...}"
Diffstat (limited to 'perl_checker.src/parser.mly')
-rw-r--r-- | perl_checker.src/parser.mly | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/perl_checker.src/parser.mly b/perl_checker.src/parser.mly index d2a8cc9..ed2095d 100644 --- a/perl_checker.src/parser.mly +++ b/perl_checker.src/parser.mly @@ -24,7 +24,7 @@ %token <(string option * string) Types.any_spaces_pos> SCALAR_IDENT ARRAY_IDENT HASH_IDENT FUNC_IDENT STAR_IDENT RAW_IDENT RAW_IDENT_PAREN ARRAYLEN_IDENT %token <string Types.any_spaces_pos> SUB_WITH_PROTO -%token <(string * string) Types.any_spaces_pos> FUNC_DECL_WITH_PROTO +%token <(string option * string * string) Types.any_spaces_pos> FUNC_DECL_WITH_PROTO %token <string Types.any_spaces_pos> FOR PRINT %token <unit Types.any_spaces_pos> NEW FORMAT @@ -181,7 +181,7 @@ use_revision: func_decl: | SUB word { new_esp M_none ($2.any, None) $1 $2} -| FUNC_DECL_WITH_PROTO {new_1esp (Ident(None, fst $1.any, get_pos $1), Some (snd $1.any)) $1 } +| FUNC_DECL_WITH_PROTO {new_1esp (Ident(fst3 $1.any, snd3 $1.any, get_pos $1), Some (ter3 $1.any)) $1 } listexpr: /* Basic list expressions */ | %prec PREC_LOW { default_pesp P_tok []} |