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

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!