Skip to Main Content

New to Java

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

EBNF - urgent help needed

807598Dec 11 2005 — edited Dec 12 2005
Hey guys, i have been given the following information to produce a EBNF notation:

i have 3 command statements.. as follows


1. DIR which requests a screen listing of the current file system
directory, and has no arguments..
e.g DIR (lists current directory)


2. COPY which copies a named file to the screen or to a 2nd named file
in the current directory
eg.. COPY FILE1 copies file one to screen...


3. DEL which deletes one or more named files separated by commas from
the current directory


e.g.. DEL FILE1 deletes file1


in EBNF... i have the current solution...

the following is the start i have produced:

<command_stat>::=<dir_command>|<copy_command>|<del_command>

<dir_command>::=
<copy_command>::=
<del_command>::=

im not too sure what to do with the dir, copy and del notation, any help would be great, thanks alot..
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Jan 9 2006
Added on Dec 11 2005
12 comments
278 views