This is the mail archive of the
cgen@sources.redhat.com
mailing list for the CGEN project.
re: better handling of unknown operands
- To: matthew green <mrg at cygnus dot com>
- Subject: re: better handling of unknown operands
- From: Ben Elliston <bje at redhat dot com>
- Date: Mon, 26 Mar 2001 23:18:06 +1000 (EST)
- Cc: "Frank Ch. Eigler" <fche at redhat dot com>, cgen at sources dot redhat dot com
- References: <20010321170135.E21159@redhat.com><22041.985231804@cygnus.com>
>>>>> "matthew" == matthew green <mrg@cygnus.com> writes:
matthew> can't forget about those SEM-ONLY operands, but we do know that they
matthew> exist. i believe ben is onto a good diagnostic here, and we should
matthew> try to make it work. cgen's diagnostics are one of it's worst areas.
matthew> if you change the assertion to be:
matthew> every format op is either:
matthew> - SEM-ONLY, or
matthew> - has a matching syntax op, and
matthew> every syntax op has matching format op.
matthew> is there a case that this doesn't work with? i looked at the current
matthew> cgen input files and none of them appear to use the former currently,
matthew> but it definately should be supported. i can't think of a case for
matthew> operands used for parsing purposes that don't have format ifields, but
matthew> if there were, you could extend this with a (new? same?) attribute to
matthew> indicate it was such.
Anyone? Anyone?
Ben