Question: CODING GUIDES: >>>> >>> USE IMPORT re in MODULE 1. IN MODULE 2: ALSO TAKE INPUT FROM USER AND USE IMPORT ast Output Should be

CODING GUIDES:
>>>>
>>>
USE IMPORT re in MODULE 1.
IN MODULE 2: ALSO TAKE INPUT FROM USER AND USE IMPORT ast
Output Should be According to the given input.
IMPORTANT NOTE:
1) Documentation of each module along with code file.
2) Use of proper function for each module.
3) No PLAGIARISM- CODE SHOULD NOT BE AVAILAIBLE ON OTHER SITES
4) Write SIMPLE CODE WITH COMMENTS AND NOT COPIED CODE.
KINDLY FOLLOW ALL ABOVE INSTRUCTIONS, THANKYOU...
Links:
Mod 1:
1. https://docs.python.org/3/library/re.html
2. https://www.w3schools.com/python/python_regex.asp
Mod 2:
1. https://docs.python.org/3/library/ast.html
2. https://www.pythonpool.com/python-ast/
Implementation of lexical analyzer - Tokenization of expression (expression can be i.e a+(bc) or 3+(52) digits, alphabets, characters ) - Building regex for the expression - Output tags/ tokens of the expression (i.e. ['a', '+', '(', 'b', '*', 'c', ')'] ) Note: For this task you are required to explore python re library: 1. https://docs.python.org/3/library/re.html 2. https://www.w3schools.com/python/python regex.asp Module 2: Implementation of syntax tree using AST library of python Note: For this task you are required to explore python AST library: 1. https://docs.python.org/3/library/ast.html 2. https://www.pythonpool.com/python-ast/
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
