From 5e1b14a4a85c0720af1c537cd9dd1b6c02e3aaba Mon Sep 17 00:00:00 2001 From: "JesusFreke@JesusFreke.com" Date: Sat, 13 Jun 2009 20:24:47 +0000 Subject: [PATCH] Added initial template for baksmali git-svn-id: https://smali.googlecode.com/svn/trunk@146 55b6fa8a-2a1e-11de-a435-ffa8d773f76a --- baksmali/src/resources/templates/baksmali.stg | 105 ++++++++++++++++++ 1 file changed, 105 insertions(+) create mode 100644 baksmali/src/resources/templates/baksmali.stg diff --git a/baksmali/src/resources/templates/baksmali.stg b/baksmali/src/resources/templates/baksmali.stg new file mode 100644 index 00000000..5365ef82 --- /dev/null +++ b/baksmali/src/resources/templates/baksmali.stg @@ -0,0 +1,105 @@ +group baksmali; + +smaliFile(classDef) ::= +<< +.class +.super + + +/** + * Interfaces + */ + + + + + +/** + * Static fields + */ + + + + + +/** + * InstanceFields + */ + + + + + +/** + * Direct methods + */ + + + + + +/** + * Virtual methods + */ + + + +>> + + + + +implement(interface) ::= +<< +.implements +>> + + + + +field(fieldDef) ::= +<< +.field : +>> + + +method(methodDef) ::= +<< +.method + + .registers + + + +.end method +>> + +Instruction(Instruction) ::= +<< + +>> + +Format10x() ::= +<< + +>> + +Format11x() ::= +<< + v +>> + +Format21c() ::= +<< + v, <({Reference_})(it.ReferencedItem)> +>> + +Format35c() ::= +<< + +>> + +Reference_string(StringItem) ::= +<< +"" +>> \ No newline at end of file