comp.lang.ada
 help / color / mirror / Atom feed
From: Georg Bauhaus <rm.dash-bauhaus@futureapps.de>
Subject: Re: chopping Ada source that have preprocessor symbols in them
Date: Fri, 08 Feb 2013 22:09:58 +0100
Date: 2013-02-08T22:09:56+01:00	[thread overview]
Message-ID: <511569a4$0$6577$9b4e6d93@newsspool3.arcor-online.net> (raw)
In-Reply-To: <87r4kq7dqv.fsf@mid.deneb.enyo.de>

On 08.02.13 21:27, Florian Weimer wrote:
> * Georg Bauhaus:
> 
>> However, the program is using preprocessor symbols that
>> I wish to keep. gnatchop can parse source files using
>> different characters sets, but apparently it cannot parse
>> files that use preprocessor symbols, including GNAT ones.
> 
> Given that the choice of preprocessor symbols can change how the file
> is split up, I think what you want is not solvable in general.

True, but GNAT's preprocessor symbols should keep things
reasonably sane? Unless the programmer chooses to define
substitutes for words like "package", say, in which case
the preprocesor will have to know the substitute. Not for
actually replacing, but for deciding where gnatchop should
should chop.

For reference,

  Definition -> Symbol ":=" Value
  Symbol -> identifier_ASCII
  Value  -> ε
  Value  -> string_literal
  Value  -> 1*{ letter, digit, '.', '_' }




  reply	other threads:[~2013-02-08 21:09 UTC|newest]

Thread overview: 29+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-02-06  0:54 chopping Ada source that have preprocessor symbols in them Georg Bauhaus
2013-02-06  5:29 ` codeallergy
2013-02-06 12:00   ` Georg Bauhaus
2013-02-08 12:22 ` Stephen Leake
2013-02-08 13:19   ` Georg Bauhaus
2013-02-09  2:51     ` Stephen Leake
2013-02-09 17:59       ` Georg Bauhaus
2013-02-09 20:15         ` Simon Wright
2013-02-11 23:13           ` Georg Bauhaus
2013-02-12 16:04             ` Björn Persson
2013-02-12 19:18               ` Georg Bauhaus
2013-02-15 10:40         ` Stephen Leake
2013-02-15 11:11           ` Georg Bauhaus
2013-02-15 16:39             ` Pascal Obry
2013-02-16  1:10               ` Randy Brukardt
2013-02-17  8:46                 ` Jacob Sparre Andersen
2013-02-18 23:18                   ` Randy Brukardt
2013-02-19 10:05                     ` Version control and multiple implementation variants (Was: chopping Ada source that have preprocessor symbols in them) Jacob Sparre Andersen
2013-02-19 11:41                       ` Thomas Løcke
2013-02-19 16:42                       ` chopping Ada source that have preprocessor symbols in them Pascal Obry
2013-02-19 21:07                       ` Version control and multiple implementation variants (Was: chopping Ada source that have preprocessor symbols in them) Randy Brukardt
2013-02-19 23:20                         ` Georg Bauhaus
2013-02-16  8:22             ` chopping Ada source that have preprocessor symbols in them Stephen Leake
2013-02-16 15:12               ` Georg Bauhaus
2013-02-17 11:51                 ` Stephen Leake
2013-02-18 12:51               ` Björn Persson
2013-02-08 20:27 ` Florian Weimer
2013-02-08 21:09   ` Georg Bauhaus [this message]
2013-02-10  9:01 ` Björn Persson
replies disabled

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