C++ Logo

sg16

Advanced search

Re: Help request: regex for pp-number with XID_Continue

From: Jens Maurer <jens.maurer_at_[hidden]>
Date: Mon, 12 Dec 2022 23:31:01 +0100
On 12/12/2022 23.15, will wray via SG16 wrote:
>
> Bonus follow on preprocessing question (not unicode related):
>
> For a pure preprocessor, divorced from a C or C++ compiler,
> is there any need for cpp-integer and cpp-float tokens?

I don't know what you're talking about.

Neither cpp-integer nor cpp-float appear in the C++ standard.

Jens


> My PR fix entirely removes their CPP_INTEGER and CPPFLOAT
> tokens, which appear to be superfluous in a pure preprocessor up to
> phase 4; all tests pass and the PR fixes my issue and another issue.
> The evaluator for #if conditional expressions doesn't do cpp-tokens
> tokenization, which would've been the only place the CPP_ tokens
> might have been needed, I think...
>
>
>
>
>

Received on 2022-12-12 22:31:04