projects
/
m6w6
/
ext-psi
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
|
github
raw
|
inline
| side by side
__int128 support
[m6w6/ext-psi]
/
src
/
parser_proc_grammar.y
diff --git
a/src/parser_proc_grammar.y
b/src/parser_proc_grammar.y
index 408a09337ffa4068f44d773fdec703cde58d81e0..9970c40c3d4de0d9308222283d535fa1fe1a04d2 100644
(file)
--- a/
src/parser_proc_grammar.y
+++ b/
src/parser_proc_grammar.y
@@
-837,8
+837,8
@@
typedef_decl[def]:
;
typedef_anon_decl[def]:
;
typedef_anon_decl[def]:
- typedef_decl
-| qualified_decl_type[type] {
+ typedef_decl
%dprec 2
+| qualified_decl_type[type]
%dprec 1
{
$def = psi_decl_arg_init($type, psi_decl_var_init(NULL, 0, 0));
$def->var->token = psi_token_copy($type->token);
}
$def = psi_decl_arg_init($type, psi_decl_var_init(NULL, 0, 0));
$def->var->token = psi_token_copy($type->token);
}
@@
-975,6
+975,9
@@
int_signed_types[type]:
%empty {
$type = NULL;
}
%empty {
$type = NULL;
}
+| NAME {
+ $type = psi_token_copy($NAME);
+}
| CHAR {
$type = psi_token_copy($CHAR);
}
| CHAR {
$type = psi_token_copy($CHAR);
}
@@
-1222,10
+1225,10
@@
decl_args[args]:
decl_anon_arg[arg]:
/* FIXME decl_functor_body_anon */
decl_anon_arg[arg]:
/* FIXME decl_functor_body_anon */
- decl_arg {
+ decl_arg
%dprec 2
{
$arg = $decl_arg;
}
$arg = $decl_arg;
}
-| qualified_decl_type[type] indirection {
+| qualified_decl_type[type] indirection
%dprec 1
{
$arg = psi_decl_arg_init(
$type,
psi_decl_var_init(NULL, $indirection, 0)
$arg = psi_decl_arg_init(
$type,
psi_decl_var_init(NULL, $indirection, 0)