comp.lang.ada
 help / color / mirror / Atom feed
From: Warren <ve3wwg@gmail.com>
Subject: Re: Dynamic Variant Record Creation
Date: Wed, 17 Mar 2010 16:30:26 +0000 (UTC)
Date: 2010-03-17T16:30:26+00:00	[thread overview]
Message-ID: <Xns9D3E7F3B1B58DWarrensBlatherings@188.40.43.245> (raw)
In-Reply-To: wcchbof2ec4.fsf@shell01.TheWorld.com

Robert A Duff expounded in news:wcchbof2ec4.fsf@shell01.TheWorld.com:

> Charmed Snark <snark@cogeco.ca> 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

True, but Character'Pos(NUL) is still zero etc. I could get
into trouble though if I were to skip (in Token_Type) any
ranges of [printable] characters, but this is not the case. 
After the last non-printable character, this is unimportant
because I don't apply those.  

Up until the first printable character, I fill in values, 
where I don't have actual token values. Values like LEX_009 
for example. So it does work in this particular case.

Warren



  reply	other threads:[~2010-03-17 16:30 UTC|newest]

Thread overview: 29+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-03-16 17:11 Dynamic Variant Record Creation Warren
2010-03-16 18:31 ` Georg Bauhaus
2010-03-16 18:57 ` Adam Beneschan
2010-03-16 20:01   ` Warren
2010-03-16 20:09     ` Jeffrey R. Carter
2010-03-16 20:24       ` Warren
2010-03-16 20:40         ` Robert A Duff
2010-03-16 20:44           ` Warren
2010-03-16 20:31     ` Robert A Duff
2010-03-16 20:59       ` Warren
2010-03-16 21:55         ` Jeffrey R. Carter
2010-03-17 14:40           ` Warren
2010-03-18 12:57           ` Warren
2010-03-16 21:58         ` Robert A Duff
2010-03-17 14:22           ` Charmed Snark
2010-03-17 14:49             ` Robert A Duff
2010-03-17 16:30               ` Warren [this message]
2010-03-16 21:15       ` Adam Beneschan
2010-03-16 23:24       ` Adam Beneschan
2010-03-16 20:15   ` Robert A Duff
2010-03-16 21:00     ` Warren
2010-03-16 23:39   ` Randy Brukardt
2010-03-16 23:43     ` Randy Brukardt
2010-03-17  0:15     ` Robert A Duff
2010-03-17 14:28       ` Warren
2010-03-18  0:02       ` Randy Brukardt
2010-03-17  4:20     ` Adam Beneschan
2010-03-18  0:13       ` Randy Brukardt
2010-03-18 13:00         ` Warren
replies disabled

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox