semantic analysis
Budget: $25 – $50 USD
hello everyone
I have two files lex.l and yacc.y
and here I have some operations I have to do in file with extension .h include previous files
which is :
- Variables cannot share a name.
- A variable cannot be used if it is not previously declared in its scope.
- Variable scope is from the point it is declared to the end of that block, including any
inner blocks.
ALSO
- The left and right side of an assignment statement must have the same type. If not, it is an error .
- Arithmetic operators (+,-,*, /) operate on operands of type integer or double only. The result should be of same type of the two operands, if one operand is integer and the other is double the result should be of type double. For simplicity, apply this on only PLUS operator (+)
I WANT IT IN *****ONE DAY******
FOR 35$
THANK YOU SO MUCH..
I have two files lex.l and yacc.y
and here I have some operations I have to do in file with extension .h include previous files
which is :
- Variables cannot share a name.
- A variable cannot be used if it is not previously declared in its scope.
- Variable scope is from the point it is declared to the end of that block, including any
inner blocks.
ALSO
- The left and right side of an assignment statement must have the same type. If not, it is an error .
- Arithmetic operators (+,-,*, /) operate on operands of type integer or double only. The result should be of same type of the two operands, if one operand is integer and the other is double the result should be of type double. For simplicity, apply this on only PLUS operator (+)
I WANT IT IN *****ONE DAY******
FOR 35$
THANK YOU SO MUCH..