🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.lang.misc
Article #2590

Re: Complexity of syntax

#2590
From: James Wilbur Lewis
Date: Sat, 05 Jan 1991 08:17
27 lines
2089 bytes
In article <13857:Jan506:12:5891@kramden.acf.nyu.edu> brnstnd@kramden.acf.nyu.edu (Dan Bernstein) writes:
-In article <1991Jan5.044445.15116@agate.berkeley.edu> jwl@garnet.berkeley.edu (James Wilbur Lewis) writes:
-> In article <11883:Jan502:21:0191@kramden.acf.nyu.edu> brnstnd@kramden.acf.nyu.edu (Dan Bernstein) writes:
-> -  [ syntax versus semantics ]
-> -> For
-> -> example, is the restriction that you can't declare the same identifier
-> -> twice in the same declaration syntactic or semantic?
-> -Syntax. It has no effect on semantics.
-> Gee, all the C grammars I've seen allow the same identifier to be declared
-> any number of times.
-
-Who said he was referring specifically to C?

No one did, although it was a reasonable thing to infer from the context.
Perhaps the poster who asked the above question can verify that he was 
referring to C.  It doesn't really matter; my challenge still stands.

Choose any language you like, or make one up, subject to the conditions of
the original question: that it allows a large number of identifiers to be 
declared in a single declaration, with the restriction that each identifier 
may appear at most once in that declaration.  I believe that you're wrong to 
refer to that restriction as "syntactic", and am interested in seeing what 
kind of grammar you can write that will generate all the valid declarations 
for that language (and no invalid declarations).  Please show *all* your 
work. :-)

-- Jim Lewis
Technical Details
Message-ID: <1991Jan5.081755.23488@agate.berkeley.edu>
Path: arc1-ca.pugleaf.net!utzoo!censor!geac!torsqnt!news-server.csri.toronto.edu!cs.utexas.edu!sdd.hp.com!ucsd!ucbvax!agate!garnet.berkeley.edu!jwl
References: <11883:Jan502:21:0191@kramden.acf.nyu.edu> <1991Jan5.044445.15116@agate.berkeley.edu> <13857:Jan506:12:5891@kramden.acf.nyu.edu>

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!utzoo!censor!geac!torsqnt!news-server.csri.toronto.edu!cs.utexas.edu!sdd.hp.com!ucsd!ucbvax!agate!garnet.berkeley.edu!jwl
From: jwl@garnet.berkeley.edu (James Wilbur Lewis)
Newsgroups: comp.lang.misc
Subject: Re: Complexity of syntax
Message-ID: <1991Jan5.081755.23488@agate.berkeley.edu>
Date: 5 Jan 91 08:17:55 GMT
References: <11883:Jan502:21:0191@kramden.acf.nyu.edu> <1991Jan5.044445.15116@agate.berkeley.edu> <13857:Jan506:12:5891@kramden.acf.nyu.edu>
Sender: usenet@agate.berkeley.edu (USENET Administrator)
Organization: University of California, Berkeley
Lines: 27