Question: Would you please help me in Java Given a program in java and python the lexical analyzer should do the following: It should identify all
Would you please help me in Java
Given a program in java and python the lexical analyzer should do the following:
It should identify all the keywords.
It should identify all the identifiers.
It should identify all the literals integer, float, string, character
General Requirements:
The project can be done individually or as a group up to members
All the output screenshots and codes should be included in the report document. The document should include the following:
Title
Team Members
Design of your scanner
Implementationcodes are pasted here
Output screenshots
References
Work should be entirely yours! Please use a lexical analyzer system for simple
arithmetic expressions in your textbook Chapter as a reference.
Test data : Program should be able to perform lexical analysis for the following source code
Python:
def addnumbersnum num:
sum num num
printSum: sum
Java:
public class JavaExample
public static void mainString args
int num numsum;
sum numnum;
System.out.printlnSum of num and num is: sum;
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
