Question: Need help with my python function: the number function is not working This is what i have so far: d = {'LP': '(', 'RP': ')',

Need help with my python function:

Need help with my python function: the number function is not working

the number function is not working

This is what i have so far:

d = {'LP': '(', 'RP': ')', 'ASGN': '=', 'SC': ';', 'ADD': '+', 'SUB': '-', 'COMPARE': '  Input Your program should take a file name as an argument containing the source code. To execute the scanner, I should be able to use: python3 scanner.py source.tinyc, where source.tinyc is a Tiny-C source file. Output: File named: tokens.txt contains one token at a line. Each line should be on the following format: Token_type: "token" In case of Lexical Error, your file should include a single line saying: LEXICAL_ERROR Example IN/OUT IN (source.tinyc): i=1; while (i

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!