This shows you the differences between two versions of the page.
|
alf:teme:tema3_en [2020/03/22 20:01] diana.ghindaoanu [Vector] |
alf:teme:tema3_en [2020/04/07 20:06] (current) alexandru.radovici |
||
|---|---|---|---|
| Line 4: | Line 4: | ||
| <note important> | <note important> | ||
| - | Deadline: **7th of April, 23:55**\\ | + | Deadline: **12th of April, 23:55**\\ |
| Points: **2 points** out of the final grade\\ | Points: **2 points** out of the final grade\\ | ||
| Upload the homework: [[https://vmchecker.cs.pub.ro|vmchecker.cs.pub.ro]]\\ | Upload the homework: [[https://vmchecker.cs.pub.ro|vmchecker.cs.pub.ro]]\\ | ||
| Line 31: | Line 31: | ||
| Try running small scripts to test every feature. | Try running small scripts to test every feature. | ||
| + | |||
| + | A useful debugging too is [[https://nolanlawson.github.io/jison-debugger|jison-debugger]] | ||
| ===== AST Format ===== | ===== AST Format ===== | ||
| Line 243: | Line 245: | ||
| </code> | </code> | ||
| - | [[https://github.com/upb-fils/alf/tree/master/Devoir/alf/verify/alf/6_class|Example]] | + | [[https://github.com/upb-fils/alf/tree/master/Devoir/alf/verify/alf/6_struct|Example]] |
| === Property access === | === Property access === | ||
| Line 266: | Line 268: | ||
| </code> | </code> | ||
| - | [[https://github.com/upb-fils/alf/tree/master/Devoir/alf/verify/alf/6_class|Example]] | + | [[https://github.com/upb-fils/alf/tree/master/Devoir/alf/verify/alf/6_struct|Example]] |
| Line 456: | Line 458: | ||
| </code> | </code> | ||
| - | [[https://github.com/upb-fils/alf/tree/master/Devoir/alf/verify/alf/4_messages|Example]] | + | [[https://github.com/UPB-FILS/alf/tree/master/Devoir/alf/verify/alf/4_function|Example]] |
| === Return === | === Return === | ||
| Line 623: | Line 625: | ||
| <code javascript> | <code javascript> | ||
| { | { | ||
| - | id:"loop_for", | + | id:"for", |
| variable:variable_name, | variable:variable_name, | ||
| exp:{ | exp:{ | ||
| Line 639: | Line 641: | ||
| <code javascript> | <code javascript> | ||
| { | { | ||
| - | id:"loop_for", | + | id:"for", |
| variable:variable_name, | variable:variable_name, | ||
| from: { expression }, | from: { expression }, | ||