CSE 341 Lecture 19
parsing / Homework 7
slides created by Marty Stepp http://www.cs.washington.edu/341/
CSE 341 Lecture 19 parsing / Homework 7 slides created by Marty - - PowerPoint PPT Presentation
CSE 341 Lecture 19 parsing / Homework 7 slides created by Marty Stepp http://www.cs.washington.edu/341/ Looking ahead We will complete a 2-part assignment related to analyzing and interpreting BASIC source code. HW7 : BASIC expression
slides created by Marty Stepp http://www.cs.washington.edu/341/
) 7 + 3 * i = i ; y * 3.7 <= x * i ; 7 + 2 + 4 / 3 * 2 = i int ( for
(for ( int i = 2 * 3 / 4 + 2 + 7 ; i * x <= 3.7 * y ; i = i * 3 + 7 ) )
(list 'for '( 'int 'i '= 2 '* 3 '/ 4 '+ 2 '+ 7 '; 'i '* 'x '<= 3.7 '* 'y '; 'i '= 'i '* 3 '+ 7 ') )
(for lparen int i = 2 * 3 / 4 + 2 + 7 ; i * x <= 3.7 * y ; i = i * 3 + 7 rparen )
(for lparen int i = 2 * 3 / 4 + 2 + 7 ; i * x <= 3.7 * y ^ ; i = i * 3 + 7 rparen )
2 * 3 / 4 + 2 + 7 ; i * x <= 3.7 * y ; i = ... ^
2 * 3 / 4 + 2 + 7 ; i * x <= 3.7 * y ; i = ...
10 ; i * x <= 3.7 * y ; i = ...