Q23
NATMarks unknownThe language defined by the following grammar, allows use of real or integer data in expressions and assignment statements. <assign-stmt> :: <LHS> := <E> <E> ::= <E> + <T>|<T> <T> ::= <T> * <V>|<V> <V> ::= id|(<E>) (LHS) :: id It is required to convert expression and assignment string of into postfix strings that use the type-specific operations and Write a syntax-directed translation scheme to convert expression and assignment strings into the postfix form. You may assume that the name and type of variable can be obtained by making the function calls’ give_name and give_type respectively.
Sign in to save attempts.
Loading…