Using The Syntax Of C Write A Recursive Descent Subprogram That Corresponds To T

Using the syntax of C, write a recursive-descent subprogram that corresponds to the following EBNF rule:

<while loop> -> while( <condition>) <statement>;

In this rule, ( and ) are not metasymbols. You may assume that the lex function reads a single lexeme, whose token code is left in the nextToken variable. Assume that the codes for the while, left parenthesis, right parenthesis, and semicolon tokens are WHILE_CODE, LEFTPAREN_CODE, RIGHTPAREN_CODE, and SEMICOLON_CODE, respectively. Have your function call the error function if it detects an error.

Need your ASSIGNMENT done? Use our paper writing service to score good grades and meet your deadlines.

Order a Similar Paper Order a Different Paper