Hash :
8019e2f6
Author :
Date :
2021-02-19T17:41:31
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 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72
null
_
X
AZ
PRISM
FOOBAR_42
class Foo{
const BAR = 1;
const baz = 2;
}
Foo::BAR;
Foo::baz;
switch ($i) {
case NULL:
break;
case X:
break;
}
----------------------------------------------------
[
["constant", "null"],
["constant", "_"],
["constant", "X"],
["constant", "AZ"],
["constant", "PRISM"],
["constant", "FOOBAR_42"],
["keyword", "class"],
["class-name-definition", "Foo"],
["punctuation", "{"],
["keyword", "const"],
["constant", "BAR"],
["operator", "="],
["number", "1"],
["punctuation", ";"],
["keyword", "const"],
["constant", "baz"],
["operator", "="],
["number", "2"],
["punctuation", ";"],
["punctuation", "}"],
["class-name", "Foo"], ["operator", "::"], ["constant", "BAR"], ["punctuation", ";"],
["class-name", "Foo"], ["operator", "::"], ["constant", "baz"], ["punctuation", ";"],
["keyword", "switch"],
["punctuation", "("],
["variable", "$i"],
["punctuation", ")"],
["punctuation", "{"],
["keyword", "case"],
["constant", "NULL"],
["punctuation", ":"],
["keyword", "break"],
["punctuation", ";"],
["keyword", "case"],
["constant", "X"],
["punctuation", ":"],
["keyword", "break"],
["punctuation", ";"],
["punctuation", "}"]
]
----------------------------------------------------
Checks for constants.