summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/format/mangling/java_gram.y6
-rw-r--r--src/format/mangling/java_tok.l1
2 files changed, 6 insertions, 1 deletions
diff --git a/src/format/mangling/java_gram.y b/src/format/mangling/java_gram.y
index 8b63c5f..25d5ffb 100644
--- a/src/format/mangling/java_gram.y
+++ b/src/format/mangling/java_gram.y
@@ -55,6 +55,8 @@ static void g_java_dcontext_init(GJavaDContext *);
void /*GOpenidaType*/ *type;
+ size_t adeep; /* Dimension d'un tableau */
+
char *text; /* Chaîne de caractères */
}
@@ -62,6 +64,7 @@ static void g_java_dcontext_init(GJavaDContext *);
%parse-param { GJavaDContext *context }
%token V Z B S C I J F D
+%token ARRAY
%token L SEMICOLON
%token SLASH DOLLAR
%token TEXT
@@ -102,7 +105,8 @@ type_descriptor:
;
field_type_descriptor:
- non_array_field_type_descriptor { $$ = $1; }
+ non_array_field_type_descriptor { $$ = $1; }
+ | ARRAY non_array_field_type_descriptor { $$ = $2; }
;
non_array_field_type_descriptor:
diff --git a/src/format/mangling/java_tok.l b/src/format/mangling/java_tok.l
index c19cd04..04180ac 100644
--- a/src/format/mangling/java_tok.l
+++ b/src/format/mangling/java_tok.l
@@ -24,6 +24,7 @@ J { return J; }
F { return F; }
D { return D; }
L { BEGIN(string); return L; }
+[[]* { java_lval.adeep = strlen(yytext); return ARRAY; }
<string>[/] { return SLASH; }
<string>[$] { return DOLLAR; }
<string>[;] { BEGIN(INITIAL); return SEMICOLON; }