Topic: pp-number


Author: Rich Paul <linguist@cyberspy.com>
Date: 1996/04/25
Raw View
I'm wondering about this definition from Appendix a
of the Jan working paper:

          pp-number:
                  digit
                  . digit
                  pp-number digit
                  pp-number nondigit
                  pp-number e sign
                  pp-number E sign
                  pp-number .

 if pp-number nondigit is a pp-number, then
it seems that 12a12b12c would be a pp-number ...

am I wrong?

--
#include <legalbs/standarddisclaimer>
Rich Paul                |  If you like what I say,
tell my
C++, OOD, OOA, OOP,      |  employer, but if you
don't,
OOPs, I forgot one ...   |  don't blame them.  ;->
---
[ comp.std.c++ is moderated.  To submit articles: Try just posting with your
                newsreader.  If that fails, use mailto:std-c++@ncar.ucar.edu
  comp.std.c++ FAQ: http://reality.sgi.com/austern/std-c++/faq.html
  Moderation policy: http://reality.sgi.com/austern/std-c++/policy.html
  Comments? mailto:std-c++-request@ncar.ucar.edu
]





Author: clamage@Eng.Sun.COM (Steve Clamage)
Date: 1996/04/26
Raw View
In article D28@cyberspy.com, Rich Paul <linguist@cyberspy.com> writes:
>I'm wondering about this definition from Appendix a
>of the Jan working paper:
>
>          pp-number:
>                  digit
>                  . digit
>                  pp-number digit
>                  pp-number nondigit
>                  pp-number e sign
>                  pp-number E sign
>                  pp-number .
>
> if pp-number nondigit is a pp-number, then
>it seems that 12a12b12c would be a pp-number ...

Yes, it is. But a pp-number itself isn't of much interest. It doesn't
have a type or a value until it is successfully converted into a
token as the last step of preprocessing. That example cannot be
successfully converted. See Chapter 2, Lexical Conventions.

The C and C++ standards differentiate between pp-tokens and tokens.
During the phases of preprocessing, pp-tokens can be altered and
combined in various ways to form actual tokens. A pp-token is just
the smallest unit that is manipulated during preprocessing; a token
is the smallest unit that has meaning after preprocessing.

---
Steve Clamage, stephen.clamage@eng.sun.com
---
[ comp.std.c++ is moderated.  To submit articles: try just posting with      ]
[ your news-reader.  If that fails, use mailto:std-c++@ncar.ucar.edu         ]
[ FAQ:      http://reality.sgi.com/employees/austern_mti/std-c++/faq.html    ]
[ Policy:   http://reality.sgi.com/employees/austern_mti/std-c++/policy.html ]
[ Comments? mailto:std-c++-request@ncar.ucar.edu                             ]





Author: krotoff@boy.rector.msu.su (Alexsander Krotoff)
Date: 1995/06/02
Raw View
Hello c++ gurus !

In the public avalable version of Draft Standard the term pp-number
is used, but not defined. I am missing something ? Is it the same as
in the ANSI C standard ?

--
Alexander Krotoff    <krotoff@such.srcc.msu.su>
Research Computer Center   [Moscow]939-2638
Moscow State University    MGU, SRCC k316. GZ B-733r.