Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Posting-Version: version B 2.10.2 9/18/84; site nmtvax.UUCP Path: utzoo!linus!decvax!ucbvax!ucdavis!lll-crg!seismo!cmcl2!lanl!unm-la!unmvax!nmtvax!djm From: djm@nmtvax.UUCP Newsgroups: net.lang.c Subject: Re: C bites / programming style Message-ID: <803@nmtvax.UUCP> Date: Mon, 7-Oct-85 17:27:21 EDT Article-I.D.: nmtvax.803 Posted: Mon Oct 7 17:27:21 1985 Date-Received: Fri, 11-Oct-85 07:03:46 EDT References: <1275@brl-tgr.ARPA> <204@graffiti.UUCP> <> Reply-To: djm@nmtvax.UUCP (The Demented Teddy Bear) Organization: Five Miles Beyond the Twilight Zone Lines: 28 In article <> putnam@kbsvax.UUCP (jefu) writes: > ... >I have been thinking about building a language formatter for a couple >years. I want, essentially, to be able to feed it a template for the >language in question and have it spit out a formatter. This means >essentially that it must learn the syntax of the language from my >template, build a 'parser' for it, and include in the parser enough >information to be able to add the formatting commands when it spits >it out. > ... Does your site have Lex and Yacc? If you want to build a parser, that's the way to go, especially if you're not particularly skilled at writing such things. Your 'template', in this case, would consist of a grammer that Yacc understands (basically). It could get a little hairy writing a grammer for some languages, but that's what job security's all about :-). Dieter Muller (uucp) ucbvax ! unmvax ! -------------------------V (uucp) [ihnp4 | cmcl2] ! lanl {ARPA | UUCP} ! --> nmtvax!djm (arpa) djm.nmt@csnet-relay (csnet) djm@nmt (mental_net) Hey you! Yeah, you with the fuzzy face! P.S. I tried a mail response, but the gateway to ARPA got somewhat ill on the address specification.