Q25
MCQMarks unknownA simple Pascal like language has only three statements. Write a context-free grammar (CFG) for statements in the above language. Assume that expression has already been defined. Do not use optional parenthesis and * operator in CFG. Show the parse tree for the following statements: for j:=2 to 10 do begin x:=expr1; y:=expr2; end
Sign in to save attempts.
Loading…