Click here to Skip to main content
14,449,574 members

Welcome to the Lounge

   

For discussing anything related to a software developer's life but is not for programming questions. Got a programming question?

The Lounge is rated Safe For Work. If you're about to post something inappropriate for a shared office environment, then don't post it. No ads, no abuse, and no programming questions. Trolling, (political, climate, religious or whatever) will result in your account being removed.
 
GeneralRe: Question for iPhone users Pin
KarstenK12-Jan-20 21:20
mveKarstenK12-Jan-20 21:20 
JokeRe: Question for iPhone users Pin
honey the codewitch12-Jan-20 0:21
mvahoney the codewitch12-Jan-20 0:21 
GeneralRe: Question for iPhone users Pin
KarstenK13-Jan-20 7:45
mveKarstenK13-Jan-20 7:45 
AnswerRe: Question for iPhone users Pin
Mark_Wallace12-Jan-20 1:11
MemberMark_Wallace12-Jan-20 1:11 
AnswerRe: Question for iPhone users Pin
Caslen14-Jan-20 10:22
MemberCaslen14-Jan-20 10:22 
GeneralThe aftermath of my coding jag Pin
honey the codewitch11-Jan-20 14:30
mvahoney the codewitch11-Jan-20 14:30 
GeneralRe: The aftermath of my coding jag Pin
Greg Utas11-Jan-20 16:01
professionalGreg Utas11-Jan-20 16:01 
GeneralRe: The aftermath of my coding jag Pin
honey the codewitch11-Jan-20 16:14
mvahoney the codewitch11-Jan-20 16:14 
Greg Utas wrote:
ut it's exactly as you say: to support all of it, a true preprocessor phase is needed. But I have no intention of supporting all of it. If someone else is willing, great.


That's exactly my situation. I needed to support some of it.

C# is light on preprocessor stuff at least. There's only a few directives, and one of them merely provides source code formatting (you can collapse #region/#endregion blocks in the source editor)

I'm not suggesting you go the preprocessor route so much as warning about picking up comments in a generated parser if you do not.

I agree with you in your situation about the generated parser. The thing is, I didn't end up using one either in the end. But I *am* using a generated lexer, which keeps my parser code simpler.

I am suggesting that creating some BNF for your C++ subset might not be such a bad thing.

Unlike C#, there's a ton of grammars online for C++ Comp 11 C++ Grammar[^]
hack everything.

GeneralRe: The aftermath of my coding jag Pin
Mark_Wallace11-Jan-20 17:48
MemberMark_Wallace11-Jan-20 17:48 
GeneralRe: The aftermath of my coding jag Pin
honey the codewitch12-Jan-20 0:21
mvahoney the codewitch12-Jan-20 0:21 
GeneralRe: The aftermath of my coding jag Pin
OriginalGriff11-Jan-20 20:58
communityengineerOriginalGriff11-Jan-20 20:58 
GeneralRe: The aftermath of my coding jag Pin
honey the codewitch11-Jan-20 21:12
mvahoney the codewitch11-Jan-20 21:12 
GeneralRe: The aftermath of my coding jag Pin
Greg Utas12-Jan-20 3:25
professionalGreg Utas12-Jan-20 3:25 
NewsRIP Pete Dye Pin
Cp-Coder11-Jan-20 8:53
MemberCp-Coder11-Jan-20 8:53 
GeneralRe: RIP Pete Dye Pin
Maximilien11-Jan-20 12:24
MemberMaximilien11-Jan-20 12:24 
GeneralMini CCCs 161 Pin
Tim Deveaux10-Jan-20 19:12
MemberTim Deveaux10-Jan-20 19:12 
GeneralRe: Mini CCCs 161 Pin
OriginalGriff10-Jan-20 20:56
communityengineerOriginalGriff10-Jan-20 20:56 
GeneralRe: Mini CCCs 161 - Done Pin
Tim Deveaux10-Jan-20 21:04
MemberTim Deveaux10-Jan-20 21:04 
GeneralIn the land of the blind, the one-eyed man is king Pin
CodeWraith10-Jan-20 11:44
MemberCodeWraith10-Jan-20 11:44 
GeneralRe: In the land of the blind, the one-eyed man is king Pin
OriginalGriff10-Jan-20 12:06
communityengineerOriginalGriff10-Jan-20 12:06 
GeneralRe: In the land of the blind, the one-eyed man is king Pin
CodeWraith10-Jan-20 12:14
MemberCodeWraith10-Jan-20 12:14 
GeneralRe: In the land of the blind, the one-eyed man is king Pin
OriginalGriff10-Jan-20 12:20
communityengineerOriginalGriff10-Jan-20 12:20 
GeneralRe: In the land of the blind, the one-eyed man is king Pin
CodeWraith10-Jan-20 13:58
MemberCodeWraith10-Jan-20 13:58 
GeneralRe: In the land of the blind, the one-eyed man is king Pin
Richard MacCutchan10-Jan-20 12:41
communityengineerRichard MacCutchan10-Jan-20 12:41 
GeneralRe: In the land of the blind, the one-eyed man is king Pin
CodeWraith10-Jan-20 14:17
MemberCodeWraith10-Jan-20 14:17 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.