Jerry Gay <[EMAIL PROTECTED]> wrote:
> On 4/29/05, Leopold Toetsch <[EMAIL PROTECTED]> wrote:
>> 3) Proposal: PIR syntax enhancement
>>
>>   .pragma n_operators
>>   ...
>>   Px = Py + 1
>>   ...
>>   [EOF]
>>
>> Within this pragma (valid inside and until end of file) the shortcuts
>> '+', '-', ... should translate to "n_add", "n_sub", ...
>> This simplifies the adaption of already existing compiler code and is a
>> bit more readable.

> will this pragma affect all '.include'd files too? i dunno if this is
> good or bad.

.include files are just included and become part of the source file, so
yes. But that's not good, if the .include file contains code too. Seems
tath we need:

  .pragma n_operators push 0   # or 1
  .pragma n_operators pop

> can it be reversed? something like:
> .pragma n_operators
> ...
> Px= Py + 1
> ...
> .pragma a_operators

Good idea. So maybe just:

  .pragma n_operators 0         # file default
  .pragma n_operators 1

> ~jerry

leo

Reply via email to