Important Notice: Our web hosting provider recently started charging us for additional visits, which was unexpected. In response, we're seeking donations. Depending on the situation, we may explore different monetization options for our Community and Expert Contributors. It's crucial to provide more returns for their expertise and offer more Expert Validated Answers or AI Validated Answers. Learn more about our hosting issue here.

About symtab.h, README file says not to modify symtab.h, and the assignment hand out for PA4 says we are free to modify symtab.h. Which is right?

0
Posted

About symtab.h, README file says not to modify symtab.h, and the assignment hand out for PA4 says we are free to modify symtab.h. Which is right?

0

You may change this file, by addition as long as you don’t change the interface of the current methods. Question: I am trying to use the STL map and list containers, but the globals defined in the STL are clashing with the globals in the AST and list.h. For instance there is a list constructor called plus, and an STL function called plus. It’s not feasible to go and change the names of variables in the tree. The only solution I have come up with is using namespaces to hide the globals of PA4 from the STL (I haven’t even gotten this to work yet), or to not use the STL. Is there any other way around this that you know?

Related Questions

What is your question?

*Sadly, we had to bring back ads too. Hopefully more targeted.

Experts123