mirror of
https://github.com/revanced/Apktool.git
synced 2025-01-22 09:47:34 +01:00
Clean up some unused/unneeded tokens in smaliParser.g
This commit is contained in:
parent
9596513f6f
commit
e1742d8547
@ -41,17 +41,6 @@ tokens {
|
|||||||
ARRAY_DATA_DIRECTIVE;
|
ARRAY_DATA_DIRECTIVE;
|
||||||
ARRAY_DESCRIPTOR;
|
ARRAY_DESCRIPTOR;
|
||||||
ARROW;
|
ARROW;
|
||||||
BASE_ARRAY_DESCRIPTOR;
|
|
||||||
BASE_CHAR_LITERAL;
|
|
||||||
BASE_CLASS_DESCRIPTOR;
|
|
||||||
BASE_FLOAT;
|
|
||||||
BASE_FLOAT_OR_ID;
|
|
||||||
BASE_INTEGER;
|
|
||||||
BASE_PRIMITIVE_TYPE;
|
|
||||||
BASE_SIMPLE_NAME;
|
|
||||||
BASE_STRING_LITERAL;
|
|
||||||
BASE_TYPE;
|
|
||||||
BINARY_EXPONENT;
|
|
||||||
BOOL_LITERAL;
|
BOOL_LITERAL;
|
||||||
BYTE_LITERAL;
|
BYTE_LITERAL;
|
||||||
CATCH_DIRECTIVE;
|
CATCH_DIRECTIVE;
|
||||||
@ -63,7 +52,6 @@ tokens {
|
|||||||
CLOSE_PAREN;
|
CLOSE_PAREN;
|
||||||
COLON;
|
COLON;
|
||||||
COMMA;
|
COMMA;
|
||||||
DECIMAL_EXPONENT;
|
|
||||||
DOTDOT;
|
DOTDOT;
|
||||||
DOUBLE_LITERAL;
|
DOUBLE_LITERAL;
|
||||||
DOUBLE_LITERAL_OR_ID;
|
DOUBLE_LITERAL_OR_ID;
|
||||||
@ -79,14 +67,10 @@ tokens {
|
|||||||
ENUM_DIRECTIVE;
|
ENUM_DIRECTIVE;
|
||||||
EPILOGUE_DIRECTIVE;
|
EPILOGUE_DIRECTIVE;
|
||||||
EQUAL;
|
EQUAL;
|
||||||
ESCAPE_SEQUENCE;
|
|
||||||
FIELD_DIRECTIVE;
|
FIELD_DIRECTIVE;
|
||||||
FIELD_OFFSET;
|
FIELD_OFFSET;
|
||||||
FLOAT_LITERAL;
|
FLOAT_LITERAL;
|
||||||
FLOAT_LITERAL_OR_ID;
|
FLOAT_LITERAL_OR_ID;
|
||||||
HEX_DIGIT;
|
|
||||||
HEX_DIGITS;
|
|
||||||
HEX_PREFIX;
|
|
||||||
IMPLEMENTS_DIRECTIVE;
|
IMPLEMENTS_DIRECTIVE;
|
||||||
INLINE_INDEX;
|
INLINE_INDEX;
|
||||||
INSTRUCTION_FORMAT10t;
|
INSTRUCTION_FORMAT10t;
|
||||||
@ -133,7 +117,6 @@ tokens {
|
|||||||
INSTRUCTION_FORMAT3rmi_METHOD;
|
INSTRUCTION_FORMAT3rmi_METHOD;
|
||||||
INSTRUCTION_FORMAT3rms_METHOD;
|
INSTRUCTION_FORMAT3rms_METHOD;
|
||||||
INSTRUCTION_FORMAT51l;
|
INSTRUCTION_FORMAT51l;
|
||||||
INVALID_TOKEN;
|
|
||||||
LINE_COMMENT;
|
LINE_COMMENT;
|
||||||
LINE_DIRECTIVE;
|
LINE_DIRECTIVE;
|
||||||
LOCAL_DIRECTIVE;
|
LOCAL_DIRECTIVE;
|
||||||
@ -167,9 +150,9 @@ tokens {
|
|||||||
VTABLE_INDEX;
|
VTABLE_INDEX;
|
||||||
WHITE_SPACE;
|
WHITE_SPACE;
|
||||||
|
|
||||||
//A couple of generated types that we remap other tokens to, to simplify the generated AST
|
// misc non-lexer tokens
|
||||||
LABEL;
|
|
||||||
INTEGER_LITERAL;
|
INTEGER_LITERAL;
|
||||||
|
INVALID_TOKEN;
|
||||||
|
|
||||||
//I_* tokens are imaginary tokens used as parent AST nodes
|
//I_* tokens are imaginary tokens used as parent AST nodes
|
||||||
I_CLASS_DEF;
|
I_CLASS_DEF;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user