Question: How would i write this language in a parser in javaCC 7. Overwrite the .jj file with a grammar of your choosing. Your grammar should
How would i write this language in a parser in javaCC
7. Overwrite the .jj file with a grammar of your choosing. Your grammar should have at least 4 production rules. Test that your parser works for the defined language. EBNF GRAMMAR CHOSEN:
EBNF language chosen:
time = time-of-day zone
time-of-day = hour ":" minute [ ":" second ]
hour = 2DIGIT / obs-hour
minute = 2DIGIT / obs-minute
second = 2DIGIT / obs-second
zone = (FWS ( "+" / "-" ) 4DIGIT) / obs-zone
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
