diff options
author | Cyrille Bagard <nocbos@gmail.com> | 2012-04-01 22:55:30 (GMT) |
---|---|---|
committer | Cyrille Bagard <nocbos@gmail.com> | 2012-04-01 22:55:30 (GMT) |
commit | dfc05da07a21bf91f5e6d5b242dd1dfc7c41e2bb (patch) | |
tree | 2e33a677be851a06d0794c7ada0b0f601af2776b /src/format | |
parent | c989181c56ff97d2c4918c0e9028762a1ed46623 (diff) |
Processed the Java demangling of array types.
git-svn-id: svn://svn.gna.org/svn/chrysalide/trunk@243 abbe820e-26c8-41b2-8c08-b7b2b41f8b0a
Diffstat (limited to 'src/format')
-rw-r--r-- | src/format/mangling/java_gram.y | 6 | ||||
-rw-r--r-- | src/format/mangling/java_tok.l | 1 |
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; } |