Branch
Hash :
d7017beb
Author :
Date :
2021-10-05T21:17:13
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
class Birb {
String name = "Birb";
int age = 5;
bool isMale = true;
String getName() {
return name;
}
}
List list = ["Seeb", 10, false];
----------------------------------------------------
[
["keyword", "class"],
["class-name", "Birb"],
["punctuation", "{"],
["class-name", "String"],
["variable", "name"],
["operator", "="],
["string", "\"Birb\""],
["punctuation", ";"],
["class-name", "int"],
["variable", "age"],
["operator", "="],
["number", "5"],
["punctuation", ";"],
["class-name", "bool"],
["variable", "isMale"],
["operator", "="],
["boolean", "true"],
["punctuation", ";"],
["class-name", "String"],
["function", "getName"],
["punctuation", "("],
["punctuation", ")"],
["punctuation", "{"],
["class-name", "return"],
["variable", "name"],
["punctuation", ";"],
["punctuation", "}"],
["punctuation", "}"],
["class-name", "List"],
["variable", "list"],
["operator", "="],
["punctuation", "["],
["string", "\"Seeb\""],
["punctuation", ","],
["number", "10"],
["punctuation", ","],
["boolean", "false"],
["punctuation", "]"],
["punctuation", ";"]
]