Third, property translation literacy
Main Classification (Mainclass)
@ FillMemory ↓
@ FillTable ↓
@ FillTree ↓
"{" "public" "static" "void" "main" "(" String "" ["]"
@ FillTable ↓
"{"
Class Declaration
@ CheckTable ↓
@ FillMemory ↓
@ FillTable ↓
@ FillTree ↓
"{" (MethodDeclaration) * "}"
Class inheritance declaration (ClassExtendsDeclaration)
@ CheckTable ↓
"extend"
@ CheckTree ↓
@ FillMemory ↓
@ FillTable ↓
@ FillTree ↓
"{" (MethodDeclaration) * "}"
Variable Declaration
@ CheckTable ↓
@ FillTable ↓
|
|
@ CheckTable ↓
@ CheckTable ↓
@ FillTable ↓
Method declaration (MethodDeclaration)
@ CheckTable ↓
@ FillMemory ↓
@ FillTable ↓
"(" (
"{" (
@ CHECKTYPE ↓
|
|
(
@ FillTable ↓
@ CheckTable ↓
@ CheckTable ↓
@ FillMemory ↓
@ FillTable ↓
"(" (
"{" (
@ CHECKTYPE ↓
|
|
(
@ CheckTable ↓
@ CheckTable ↓
@ FillMemory ↓
@ FillTable ↓
AssignmentStatement
"="
@generatecode ↓
ArrayasSignmentStatement in array element
@ CheckType ↓
"["
@ CheckType ↓
"]" "="
@ CHECKTYPE ↓
@generatecode ↓
IF statement (ifstatement)
@ CheckType ↓
")"
@generatecode ↓
While statement (Whilestatemen)
@ CheckType ↓
")"
@generatecode ↓
Print statement (PrintStatement)
@ CheckType ↓
")" ""; "
@generatecode ↓
Property and action explanation
action
Action @ CheckTable ↓
Attribute data types (for Java language) meaning id_nameString id_belongsToString identifier name belongs level hierarchy name id_levelint identifiers (see table) id_addressint memory address stmt_typeint type of operation (see table) class_nameString class name extra_paraObject additional parameters child_nameString subclass name Object type expression parent_nameString class name parent name class_nameString id_typecompiler.type.Type type variable type (see table) para_listjava.util.List boolean parameter table exp_valueint or program or any defined value expression type exp_typecompiler.type.Type
Symbol table structure
Name Data Type (For Java Language) Meaning NameString Identifier Name SortString Identifier Category TypeCompiler.Type.Type Variable Type Belongstostring Home Information (see Schedule) Addressint storage address
Memory allocation table structure
Name Data Type (For Java Language) Meaning Addressint Identifier Address SortString Identifier Category NameString Identifier Name ValueObject Identifier Value Schedule
STMT_TYPE
Name Value STMT_ASSIGN1 Assignment Statement STMT_ARRAY_ASIGN2 Array Element Assignment Footword STMT_IF3IF Statement STMT_WHILE4WHILE Statement STMT_PRINT5 Print Statement
ID_TYPE
Class Meaning Size (Bytes) ArrayType Integer Array Type 4Booleantype Boolean Type 1integertype Integer Type 4 ObjectType Object Type Uns OK NonvariableType Non-Variable 0
ID_Belongsto
Identifier Type "BelongSTO" property content class is not (analysis, file-based) method class name class variable class name method internal variable method name parameter method name