Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

I need help with a Python program The parser GUI can look different, but please make it with the same functionalities. Using TK if possible.

I need help with a Python program

The parser GUI can look different, but please make it with the same functionalities. Using TK if possible. Any help would be greatly appreciated. Thank you so much!

image text in transcribed

Lexer and Parser for TinyPie Source Code Tokens Parse Tree float mathresult1 5*4.3 +2.1; float mathresult2 = 4.1 + 2*5.5; if _(mathresult1 >mathresult2): print("I just built some parse trees" ); A good formatted way to show the process of your parse tree building. You can use the example code's format. ####Parse tree for line 1### and so on -parent node... And so on Current line number: 1 Exit Next Line When user press the next line the first time, the first line gets processed and give out the list on the middle and give out the parse tree generation steps for this sentence on the right side. When the user hit next again, next line gets processed, just like the lexer requirement. Between the 4 parse tree building process outputs, please include a easy to find line, like "####Parse tree for line 1####, to separate them so that we can tell which part of the parser output is dealing with which line of input We require good formats for the parse tree output similar to the parsing AlgoExample.py code used in the Lexer and Parser for TinyPie Source Code Tokens Parse Tree float mathresult1 5*4.3 +2.1; float mathresult2 = 4.1 + 2*5.5; if _(mathresult1 >mathresult2): print("I just built some parse trees" ); A good formatted way to show the process of your parse tree building. You can use the example code's format. ####Parse tree for line 1### and so on -parent node... And so on Current line number: 1 Exit Next Line When user press the next line the first time, the first line gets processed and give out the list on the middle and give out the parse tree generation steps for this sentence on the right side. When the user hit next again, next line gets processed, just like the lexer requirement. Between the 4 parse tree building process outputs, please include a easy to find line, like "####Parse tree for line 1####, to separate them so that we can tell which part of the parser output is dealing with which line of input We require good formats for the parse tree output similar to the parsing AlgoExample.py code used in the

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Fundamentals Of Database Systems

Authors: Ramez Elmasri, Shamkant B. Navathe

7th Edition Global Edition

1292097612, 978-1292097619

More Books

Students also viewed these Databases questions