🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: gnu.gcc.bug
Article #2161

How do I add a new keywork to the front end?

#2161
From: Peter R. Ham
Date: Tue, 17 Jan 1989 03:02
21 lines
941 bytes
I'm trying to add the new keyword "shared" as a storage class specifier
for the front end.

In c-parse.y there's a table of keywords.  The comment says that I keyword
cannot be added by hand, instead the program "perfect-hash" must be used?

Where is this program?  Does anyone understand this comment?

The function "grokdeclarator" in c-decl.c is also

really confusing to me.

Peter



--
Peter Ham			PO Box 3430	(415) 321-5746
MS Computer Science Student	Stanford, CA	ham@polya.stanford.edu
Stanford University 		94309
Technical Details
Message-ID: <HAM.89Jan16190223@polya.Stanford.EDU>
Path: arc1-ca.pugleaf.net!utzoo!telly!ddsw1!lll-winken!killer!mit-eddie!bbn!mailrus!rutgers!labrea!polya!ham

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!utzoo!telly!ddsw1!lll-winken!killer!mit-eddie!bbn!mailrus!rutgers!labrea!polya!ham
From: ham@polya.Stanford.EDU (Peter R. Ham)
Newsgroups: gnu.gcc.bug
Subject: How do I add a new keywork to the front end?
Message-ID: <HAM.89Jan16190223@polya.Stanford.EDU>
Date: 17 Jan 89 03:02:23 GMT
Sender: ham@polya.Stanford.EDU
Distribution: gnu
Organization: Stanford University
Lines: 21