🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.lang.c.moderated
Article #2269

Re: Any suggestion?

#2269
From: Tom McGlynn
Date: Wed, 13 Mar 1996 12:41
20 lines
1315 bytes
Marco Donati (trev@iol.it) wrote:
: Here is my problem: I have to write down an ANSI C program that reads
: other ANSI C sources and
: 1) finds errors related to the parentheses
: 2) indents it
: 3) finds errors related to the syntax of commands, variable
: declarations, most used function calls etc.

Get a C grammar as in yacc and add code to it for reporting the specific
errors of interest.  I did this for a code auditor which reports violations
of a proprietary coding standard.

Of course, you can use a compiler to report these errors but I'm sure you've
already considered that.

Indenting can be done using GNU indent.

--
The preceding is my opinion and not necessarily the opinion of my
employer.
Technical Details
Message-ID: <4i6fp2$p3l@solutions.solon.com>
Path: arc1-ca.pugleaf.net!solon.com!not-for-mail
References: <4i169c$hc@solutions.solon.com>

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!solon.com!not-for-mail
From: tjm@ed.ray.com (Tom McGlynn)
Newsgroups: comp.lang.c.moderated
Subject: Re: Any suggestion?
Date: 13 Mar 1996 06:41:06 -0600
Organization: Raytheon Electronic Systems
Sender: clc@solutions.solon.com
Approved: clc@solutions.solon.com
Message-ID: <4i6fp2$p3l@solutions.solon.com>
References: <4i169c$hc@solutions.solon.com>
NNTP-Posting-Host: solutions.solon.com
X-Authentication-Warning: The author was not authenticated.
X-Disclaimer: This is the author's opinion and not that of Raytheon Company.
X-Newsreader: TIN [version 1.2 PL2]