You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+5-4Lines changed: 5 additions & 4 deletions
Original file line number
Diff line number
Diff line change
@@ -140,7 +140,7 @@ If you are a team member of the project, please review the [Guidelines for Contr
140
140
- attributes: a `Hashtbl` that maps from attribute name to attribute type (declared type)
141
141
- parent: a class reference type that refers to its class
142
142
-[x] create a `Hashtbl` that maps from class
143
-
-[] The second phase is concerned with ve
8000
rifying that the inside of classes is correct (mainly the body of methods). She will also make sure of the correction of the higher level expression.
143
+
-[x] The second phase is concerned with verifying that the inside of classes is correct (mainly the body of methods). She will also make sure of the correction of the higher level expression.
144
144
-[x] create 3 verification method that verifies the following aspects of the program
145
145
- [x]`verify_methods` that checks the type of methods
146
146
- [x] create a local definition environment type called `current_env` it contains 3 fields as follows
@@ -150,18 +150,18 @@ If you are a team member of the project, please review the [Guidelines for Contr
150
150
- env_type: a string that identifies the type of the local definition environment, it could be `constructor`, `method` or `attribute`, in this case, the `env_type` is `method`
151
151
- [x] write a verification method (`verify_declared_args`) that checks the declared type of variables in the method arguments
152
152
- [x] check if there exists Duplicate Local Variable
153
-
- [] write a verification method (`verify_statement`) that checks the body of the method
153
+
- [x] write a verification method (`verify_statement`) that checks the body of the method
154
154
- [x] check declared variables
155
155
- [x] check block of statement
156
156
- [x] check expression
157
157
- [x] check return statement when it's none, ex: `return;`
158
158
- [x] check return statement when it's not none, ex: `return x;`
159
-
- [] check throw statement
159
+
- [x] check throw statement
160
160
- [x] check while statement
161
161
- [x] check if statement when it doesn't have `else`
162
162
- [x] check if statement when it has `else`
163
163
- [x] check for statement
164
-
- [] check try statement
164
+
- [x] check try statement
165
165
- [x]`verify_constructors` that checks the type of constructors
166
166
- [x]`verify_attributes` that checks the type of attributes
167
167
@@ -213,6 +213,7 @@ If you are a team member of the project, please review the [Guidelines for Contr
0 commit comments