The Gateway to Computer Science Excellence
0 votes
23 views

 Below is a grammar for expressions involving operator $+$ and integer or floating-point operands. Floating-point numbers are distinguished by having a decimal point.

  • $E\rightarrow E+T\mid T$
  • $T\rightarrow num.num\mid num$
  1. Give an SDD to determine the type of each term $T$ and expression $E$.
  2. Extend your SDD of $(a)$ to translate expressions into postfix notation.Use the unary operator intToFloat to turn an integer into an equivalent float. 
in Compiler Design by Veteran (58.7k points) | 23 views

Please log in or register to answer this question.

Related questions

Quick search syntax
tags tag:apple
author user:martin
title title:apple
content content:apple
exclude -tag:apple
force match +apple
views views:100
score score:10
answers answers:2
is accepted isaccepted:true
is closed isclosed:true
50,737 questions
57,271 answers
198,141 comments
104,783 users