summaryrefslogtreecommitdiff
path: root/src/format/mangling/dex/type_tok.l
blob: 7b8a8d3e88709c47f1fc992f24f934ea9c343dae (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37

%{

#include "context.h"
#include "libformatmanglingdextype_la-type_gram.h"

%}


%option noyywrap
%option yylineno
%option nounput
%option noinput

%x string

%%

"V"                     { return V; }
"Z"                     { return Z; }
"B"                     { return B; }
"S"                     { return S; }
"C"                     { return C; }
"I"                     { return I; }
"J"                     { return J; }
"F"                     { return F; }
"D"                     { return D; }
"L"                     { BEGIN(string); return L; }
"["*                    { type_lval.adeep = strlen(yytext); return ARRAY; }
<string>"/"             { return SLASH; }
<string>"$"             { return DOLLAR; }
<string>";"             { BEGIN(INITIAL); return SEMICOLON; }

<string>[A-Za-z0-9_-]*  { type_lval.text = yytext; return TEXT; }


%%