PYTHON Programming:
You are to design a parser for an awk script. Examples of awk scripts are below. You need to come up with the definition of the grammar – this should be logically reasonable. Remember, you only need to build the parser. You can use Python to code it.
Example awk scripts:
1. awk {print "CSE 3302"}
2. awk {print $1}'cse3302.txt
3. awk BEGIN {print "CSE 3302"}