A
arnuld
Stroustrup starts chapter 6 with a programme for desk-calculator:
here is a grammer for the langugae accepted by the calcualtor:
program:
END // END is end-of-input
expr_list END
expr_list:
expression PRINT // PRINT is semicolon
expression PRINT expr_list
expression:
expression + term
expression - term
term
.................................................
.................................................
what the heck it is?
here is a grammer for the langugae accepted by the calcualtor:
program:
END // END is end-of-input
expr_list END
expr_list:
expression PRINT // PRINT is semicolon
expression PRINT expr_list
expression:
expression + term
expression - term
term
.................................................
.................................................
what the heck it is?