From: | Hans-Peter Diettrich <DrDiettrich1@netscape.net> |
Newsgroups: | comp.compilers |
Date: | Sun, 23 Oct 2022 01:27:18 +0200 |
Organization: | Compilers Central |
References: | 22-10-029 22-10-031 22-10-035 22-10-036 22-10-039 22-10-040 22-10-042 |
Injection-Info: | gal.iecc.com; posting-host="news.iecc.com:2001:470:1f07:1126:0:676f:7373:6970"; logging-data="87767"; mail-complaints-to="abuse@iecc.com" |
Keywords: | debug |
Posted-Date: | 22 Oct 2022 22:51:42 EDT |
In-Reply-To: | 22-10-042 |
On 10/22/22 10:49 AM, Thomas Koenig wrote:
> An automated code generator which generates valid programs according
> to the syntax and semantics rules of a langauge and then systematically
> violates the rules (especially those prescribed outside the formal
> grammar) one by one might be possible. Alternatively, it might
> also be feasible to parse an existing code base and systematically
> insert violations there.
Isn't it good practice to maintain a test suite at least for compilers,
that contains both selected valid and invalid code snippets?
For error reports on obviously weird input I'd prepare an equally weird
answer ;-)
DoDi
Return to the
comp.compilers page.
Search the
comp.compilers archives again.