Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
| Path | csiph.com!usenet.pasdenom.info!news.albasani.net!.POSTED!not-for-mail |
|---|---|
| From | Jens Schweikhardt <usenet@schweikhardt.net> |
| Newsgroups | comp.std.c++ |
| Subject | The evolution of C++ |
| Date | Sun, 22 Apr 2012 11:51:59 -0700 (PDT) |
| Organization | unknown |
| Lines | 47 |
| Sender | std-cpp-request@vandevoorde.com |
| Approved | james.dennett@gmail.com |
| Message-ID | <9vgg90Fgi0U1@mid.individual.net> (permalink) |
| NNTP-Posting-Host | rXFT7KK+/b7LKN5eetvCjyoXmRewjikD+bPIXBvFxs8= |
| X-Trace | news.albasani.net 8EwvfcvEPmbp+dhujL/Ar1lLzw+QqrAB21piiFjlj7yWRjAQS/1L3DYZdG5yPAPdBHUYAoFu5ICnrXV97MdlhA== |
| X-Complaints-To | abuse@albasani.net |
| NNTP-Posting-Date | Sun, 22 Apr 2012 18:52:01 +0000 (UTC) |
| X-Mailer | Perl5 Mail::Internet v2.05 |
| X-Submission-Address | std-cpp-submit@vandevoorde.com |
| Cancel-Lock | sha1:BM7pecuDF+DTWgzOteyq9Ltdoog= |
| X-Original-Date | 21 Apr 2012 19:31:44 GMT |
| Xref | csiph.com comp.std.c++:484 |
Show key headers only | View raw
hello, world\n
I'm writing a lexer aiming to be able to tokenize all the variations of
the C and C++ languages. My knowledge of the C++ side of things is
likely incomplete, so I ask the C++ community to tell me where I'm
missing something. So far I have come up with this matrix of token
additions since K&R.
Language K&R C89 C99 C11 cfront C++98 C++11 Comment
Tokens:
... - Y Y Y ? Y Y
Trigraphs - Y Y Y ? Y Y
Digraphs - - Y Y ? Y Y
#stringify - Y Y Y ? Y Y
gl##ue - Y Y Y ? Y Y
//Comment - - Y Y Y Y Y
Hexfloats - - Y Y - - Y 0xABC.DEFp+42
:: - - - - Y Y Y
.* - - - - ? Y Y
->* - - - - ? Y Y
L"String" - Y Y Y ? Y Y Wide string literals
L'C' - Y Y Y ? Y Y Wide
character constants
\[uU] IDs - - Y Y - - Y \uABCD in identifiers
U|u|u8"S" - - - Y - - Y Unicode prefixes
U|u'C' - - - Y - - Y Unicode prefixes
R"String" - - - - - - Y Raw strings
"String"x - - - - - ? Y User defined suffix
Notes: - Digraphs are actually a C94 feature.
I'm especially interested in the cells marked '?'. Are there tokens in
C++03 calling for a separate column? Thanks for your comments!
Regards,
Jens
--
Jens Schweikhardt http://www.schweikhardt.net/
SIGSIG -- signature too long (core dumped)
[ comp.std.c++ is moderated. To submit articles, try posting with your ]
[ newsreader. If that fails, use mailto:std-cpp-submit@vandevoorde.com ]
[ --- Please see the FAQ before posting. --- ]
[ FAQ: http://www.comeaucomputing.com/csc/faq.html ]
Back to comp.std.c++ | Previous | Next — Next in thread | Find similar
The evolution of C++ Jens Schweikhardt <usenet@schweikhardt.net> - 2012-04-22 11:51 -0700 Re: The evolution of C++ Marc <marc.glisse@gmail.com> - 2012-04-24 11:04 -0700
csiph-web