CSCE4430-Programming Languages

Tasks

1.Design and implement a symbol table class in Python. Note this will be an actual class, not a simulated class as in Lisp and Prolog. The symbol table elements will be of the form symbolTableEntry (Name, Category, Type, Value) and the symbol table itself will be a list of such values. The following predicates are required:

(a) add (CurrentSymbolTable, Name, Category, Type, Value, NewSymbolTable) – creates a new symbol table with the name, category, type, and value fields added; if Name is already in the symbol table, return None

Wait Before you Leave! I have something for you.
I have this question in our website since we have worked on it and the student was happy after a good score.
Get it solved from our top experts within 8 hrs!
Order Now

(b) entry (SymbolTable, Name, Category, Type, Value) – returns the category, type and value associated with Name; if Name is not in the symbol table, return None

(c) category (SymbolTable, Name, Category) – returns the category associated with Name; if Name is not in the symbol table, return None

(d) type (SymbolTable, Name, Type) – returns the type associated with Name; if Name is not in the symbol table, return None 

(e) value (SymbolTable, Name, Value) – returns the value associated with Name; if Name is not in the symbol table, return None

2. Test your class using the test program on the class website.

 

Hi there, would you like us to help you do this question?

We are professional assignment help service for students who can't even. Get your papers written starting at just $11.99 a page.

Do my question How much will it cost?

Needs help with similar assignment?

We are available 24x7 to deliver the best services and assignment ready within 3-4 hours? Order a custom-written, plagiarism-free paper

Order Over WhatsApp Place an Order Online

Do you have an upcoming essay or assignment due?

All of our assignments are originally produced, unique, and free of plagiarism.

If yes Order Similar Paper