Question: I need help with my Python program please User can choose to type any number of spaces between an identifier, literal and the = sign

I need help with my Python program please

User can choose to type any number of spaces between an identifier, literal and the = sign or + sign or > sign, etc.

I need help with my Python program please User can choose to

When a user presses the next line the first time, the list belonging to the first line will be printed on the right side. In you last GUI homework, you printed out this line directly. This time, you need call the token finding function that you wrote in HW3 to find out the list for a single line of code.

The lexer can have different appearance, this is just an example

When user press Next Line button, the second line gets processed and the GUI looks like the following graph and gives out more pairs.

type any number of spaces between an identifier, literal and the =

Lexer for TinyPie Source Code Tokens int A1=5 int BBB2 =1034 cresult A1 +BBB2 int BBB2 if (cresult >10): print("TinyPie ) Current line number: 1 Exit Next Line When user press "Next Line" button, the second line gets processed and the GUI looks like the following graph and gives out more pairs. Lexer for TinyPie Source Code Tokens int A1=5 int BBB2 = 1034 cresult A1 +BBB2 int BBB2 if (cresult >10): print("TinyPie ) And so on... Current line number: 2 Exit Next Line Lexer for TinyPie Source Code Tokens int A1=5 int BBB2 =1034 cresult A1 +BBB2 int BBB2 if (cresult >10): print("TinyPie ) Current line number: 1 Exit Next Line When user press "Next Line" button, the second line gets processed and the GUI looks like the following graph and gives out more pairs. Lexer for TinyPie Source Code Tokens int A1=5 int BBB2 = 1034 cresult A1 +BBB2 int BBB2 if (cresult >10): print("TinyPie ) And so on... Current line number: 2 Exit Next Line

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!