From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on polar.synack.me X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00 autolearn=ham autolearn_force=no version=3.4.4 X-Google-Thread: 103376,c469fdacc2f3302b X-Google-NewGroupId: yes X-Google-Attributes: gida07f3367d7,domainid0,public,usenet X-Google-Language: ENGLISH,ASCII-7-bit Path: g2news1.google.com!news1.google.com!npeer03.iad.highwinds-media.com!news.highwinds-media.com!feed-me.highwinds-media.com!nntp.club.cc.cmu.edu!micro-heart-of-gold.mit.edu!newsswitch.lcs.mit.edu!nntp.TheWorld.com!not-for-mail From: Robert A Duff Newsgroups: comp.lang.ada Subject: Re: Dynamic Variant Record Creation Date: Wed, 17 Mar 2010 10:49:15 -0400 Organization: The World Public Access UNIX, Brookline, MA Message-ID: References: NNTP-Posting-Host: shell01.theworld.com Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: pcls4.std.com 1268837342 13743 192.74.137.71 (17 Mar 2010 14:49:02 GMT) X-Complaints-To: abuse@TheWorld.com NNTP-Posting-Date: Wed, 17 Mar 2010 14:49:02 +0000 (UTC) User-Agent: Gnus/5.1008 (Gnus v5.10.8) Emacs/21.3 (irix) Cancel-Lock: sha1:8s5+JPrz00cWE5Rleh3qNavBIZ8= Xref: g2news1.google.com comp.lang.ada:9629 Date: 2010-03-17T10:49:15-04:00 List-Id: Charmed Snark writes: > Robert A Duff expounded in news:wcceijk0vze.fsf@shell01.TheWorld.com: >> But I don't think it does what you want! The 'Pos of the >> Character '!' is not the same as the 'Pos of the Token '!'. > > Oh yes it does, hee hee. My awk script goes to great lengths > to define the Token_Type to align with the characters (it > generates the type specification from #defines, sorted and > munged from the yacc output y.tab.h). I did alude to this > in the first post as a FYI, that it has a for Token_Type > use (...) statement to ensure this. But "for Token_Type use (...)" has no effect on the 'Pos/'Val attributes. It sets the internal representations, not the position numbers. - Bob