summaryrefslogtreecommitdiff
path: root/src/format/mangling/dex/type_tok.l
diff options
context:
space:
mode:
Diffstat (limited to 'src/format/mangling/dex/type_tok.l')
-rw-r--r--src/format/mangling/dex/type_tok.l37
1 files changed, 37 insertions, 0 deletions
diff --git a/src/format/mangling/dex/type_tok.l b/src/format/mangling/dex/type_tok.l
new file mode 100644
index 0000000..7b8a8d3
--- /dev/null
+++ b/src/format/mangling/dex/type_tok.l
@@ -0,0 +1,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; }
+
+
+%%