[perl #49001] [PROPOSAL][DOCS] Change word "compilation_unit" into something else (like "sub")

2008-05-06 Thread Allison Randal via RT
Yes, PDD 19 can talk about 'subroutines' rather than 'compilation
units'. (I just did a quick skim of the file, and a simple search and
replace changing 'compilation unit' to 'subroutine' will work fine.)

In imcc.y, change 'compilation_unit' and 'compilation_units' to
something more general like 'element', 'component', 'segment', etc...
(Not 'statement' but it's basically filling the same purpose as the
'statement' rule in an HLL.)


[perl #49001] [PROPOSAL][DOCS] Change word "compilation_unit" into something else (like "sub")

2007-12-21 Thread via RT
# New Ticket Created by  Klaas-Jan Stol 
# Please include the string:  [perl #49001]
# in the subject line of all future correspondence about this issue. 
# http://rt.perl.org/rt3/Ticket/Display.html?id=49001 >


IMCC's top level non-terminal rule looks something like:

program: compilation_unit
| compilation_units compilation_unit

compilation_unit: sub
   | /* other stuff like HLL ... */

pmichaud wondered what actually /is/ a compilation unit. In the classic C.S.
sense, it's a file, or string that results in one block that is evaluated
(in PCT at least, I guess Perl too? don't know, I'm not a perl programmer).
.
This is different from IMCC and its docs, where a compilation unit seems to
refer to individual subs.


In order to prevent confusion, I propose to stick to the classic sense, and
replace "compilation_unit" with some other word (jsut stick to "sub").
IMCCs docs should then be updated accordingly. (and source, which is kinda a
lot of work, but let's just forget about that for now)

kjs