Click here to Skip to main content
15,891,136 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 20:20
mveKarstenK12-Jan-20 20:20 
JokeRe: Question for iPhone users Pin
honey the codewitch11-Jan-20 23:21
mvahoney the codewitch11-Jan-20 23:21 
GeneralRe: Question for iPhone users Pin
KarstenK13-Jan-20 6:45
mveKarstenK13-Jan-20 6:45 
AnswerRe: Question for iPhone users Pin
Mark_Wallace12-Jan-20 0:11
Mark_Wallace12-Jan-20 0:11 
AnswerRe: Question for iPhone users Pin
Caslen14-Jan-20 9:22
Caslen14-Jan-20 9:22 
GeneralThe aftermath of my coding jag Pin
honey the codewitch11-Jan-20 13:30
mvahoney the codewitch11-Jan-20 13:30 
GeneralRe: The aftermath of my coding jag Pin
Greg Utas11-Jan-20 15:01
professionalGreg Utas11-Jan-20 15:01 
GeneralRe: The aftermath of my coding jag Pin
honey the codewitch11-Jan-20 15:14
mvahoney the codewitch11-Jan-20 15: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 16:48
Mark_Wallace11-Jan-20 16:48 
GeneralRe: The aftermath of my coding jag Pin
honey the codewitch11-Jan-20 23:21
mvahoney the codewitch11-Jan-20 23:21 
GeneralRe: The aftermath of my coding jag Pin
OriginalGriff11-Jan-20 19:58
mveOriginalGriff11-Jan-20 19:58 
GeneralRe: The aftermath of my coding jag Pin
honey the codewitch11-Jan-20 20:12
mvahoney the codewitch11-Jan-20 20:12 
GeneralRe: The aftermath of my coding jag Pin
Greg Utas12-Jan-20 2:25
professionalGreg Utas12-Jan-20 2:25 
NewsRIP Pete Dye Pin
Cp-Coder11-Jan-20 7:53
Cp-Coder11-Jan-20 7:53 
GeneralRe: RIP Pete Dye Pin
Maximilien11-Jan-20 11:24
Maximilien11-Jan-20 11:24 
GeneralMini CCCs 161 Pin
Tim Deveaux10-Jan-20 18:12
Tim Deveaux10-Jan-20 18:12 
GeneralRe: Mini CCCs 161 Pin
OriginalGriff10-Jan-20 19:56
mveOriginalGriff10-Jan-20 19:56 
GeneralRe: Mini CCCs 161 - Done Pin
Tim Deveaux10-Jan-20 20:04
Tim Deveaux10-Jan-20 20:04 
GeneralIn the land of the blind, the one-eyed man is king Pin
CodeWraith10-Jan-20 10:44
CodeWraith10-Jan-20 10:44 
GeneralRe: In the land of the blind, the one-eyed man is king Pin
OriginalGriff10-Jan-20 11:06
mveOriginalGriff10-Jan-20 11:06 
GeneralRe: In the land of the blind, the one-eyed man is king Pin
CodeWraith10-Jan-20 11:14
CodeWraith10-Jan-20 11:14 
GeneralRe: In the land of the blind, the one-eyed man is king Pin
OriginalGriff10-Jan-20 11:20
mveOriginalGriff10-Jan-20 11:20 
GeneralRe: In the land of the blind, the one-eyed man is king Pin
CodeWraith10-Jan-20 12:58
CodeWraith10-Jan-20 12:58 
GeneralRe: In the land of the blind, the one-eyed man is king Pin
Richard MacCutchan10-Jan-20 11:41
mveRichard MacCutchan10-Jan-20 11:41 
GeneralRe: In the land of the blind, the one-eyed man is king Pin
CodeWraith10-Jan-20 13:17
CodeWraith10-Jan-20 13: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.