[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

gnubol: Record delimiter clause and parse order



Tim,
got a couple of questions.  The specs I have list RECORD DELIMITER as
required for sequential file i/o.  Now, I've never used that clause in a
program before, so input is welcome--with lack of other input, I'm gonna
make it optional.

Also, for writing the parser, I'm a little vague as to how to make order
not matter.  If I do something like:

select_clause_opt:
/* nothing */
| SELECT opt_optional_clause file_desc_name
assign_clause
opt_access_mode_clause
opt_file_status_clause
opt_lock_mode_clause
opt_organization_clause
opt_padding_char_clause
opt_record_delim_clause
opt_reserve_area_clause
opt_sharing_clause
;

then it will expect to find the clauses in that order, when, of course,
the order doesn't really matter.  I'm not expert enough w/yacc to know
the workaround, so a hint would be very welcome (e.g., "look at
this-n-such section of code" or whatever).

ciao,
-- 
Matthew Vanecek
Visit my Website at http://mysite.directlink.net/linuxguy
For answers type: perl -e 'print
$i=pack(c5,(41*2),sqrt(7056),(unpack(c,H)-2),oct(115),10);'
*****************************************************************
For 93 million miles, there is nothing between the sun and my shadow
except me. I'm always getting in the way of something...

--
This message was sent through the gnu-cobol mailing list.  To remove yourself
from this mailing list, send a message to majordomo@lusars.net with the
words "unsubscribe gnu-cobol" in the message body.  For more information on
the GNU COBOL project, send mail to gnu-cobol-owner@lusars.net.