Click here to Skip to main content
15,923,845 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.

 
GeneralSecond call, Mr. Cthulhu Pin
PIEBALDconsult31-Dec-19 12:14
mvePIEBALDconsult31-Dec-19 12:14 
GeneralRe: Second call, Mr. Cthulhu Pin
Super Lloyd31-Dec-19 20:18
Super Lloyd31-Dec-19 20:18 
GeneralRe: Second call, Mr. Cthulhu Pin
Mark_Wallace31-Dec-19 21:54
Mark_Wallace31-Dec-19 21:54 
GeneralI'm finally ready for an article. I'm exhausted Pin
honey the codewitch31-Dec-19 7:21
mvahoney the codewitch31-Dec-19 7:21 
GeneralRe: I'm finally ready for an article. I'm exhausted Pin
Southmountain31-Dec-19 8:09
Southmountain31-Dec-19 8:09 
GeneralRe: I'm finally ready for an article. I'm exhausted Pin
honey the codewitch31-Dec-19 8:13
mvahoney the codewitch31-Dec-19 8:13 
GeneralRe: I'm finally ready for an article. I'm exhausted Pin
Greg Utas31-Dec-19 10:19
professionalGreg Utas31-Dec-19 10:19 
GeneralRe: I'm finally ready for an article. I'm exhausted Pin
honey the codewitch31-Dec-19 10:23
mvahoney the codewitch31-Dec-19 10:23 
Thanks! I just posted it. I've run into the problem a lot, and the answer of how to do it depends on what you're using it for.

In previous parsers, I made the *parser* not the *lexer* skip over hidden terminals. That way, I could set ShowHidden to true and the parser would spit those out in the main stream without interfering with the parse.

That's great for syntax highlighting, but i needed something a bit different here for a couple of reasons.

For starters, I still want to hide some things, like whitespace.
Second, all my parser code now is *inside* the parser (where it belongs) rather than outside of it, driving it, as it was in PCK. Because of this, I needed to expose the comments using an alternate means.

"Skipped" solves these problems, even if it does mean carrying a bag of unparsed tokens around every time i advance.
When I was growin' up, I was the smartest kid I knew. Maybe that was just because I didn't know that many kids. All I know is now I feel the opposite.

GeneralRe: I'm finally ready for an article. I'm exhausted Pin
honey the codewitch31-Dec-19 12:24
mvahoney the codewitch31-Dec-19 12:24 
GeneralRe: I'm finally ready for an article. I'm exhausted Pin
Greg Utas31-Dec-19 13:38
professionalGreg Utas31-Dec-19 13:38 
GeneralRe: I'm finally ready for an article. I'm exhausted Pin
honey the codewitch31-Dec-19 17:21
mvahoney the codewitch31-Dec-19 17:21 
GeneralRe: I'm finally ready for an article. I'm exhausted Pin
Greg Utas1-Jan-20 0:39
professionalGreg Utas1-Jan-20 0:39 
GeneralRe: I'm finally ready for an article. I'm exhausted Pin
honey the codewitch1-Jan-20 5:54
mvahoney the codewitch1-Jan-20 5:54 
GeneralRe: I'm finally ready for an article. I'm exhausted Pin
Greg Utas1-Jan-20 6:26
professionalGreg Utas1-Jan-20 6:26 
QuestionRe: I'm finally ready for an article. I'm exhausted Pin
honey the codewitch1-Jan-20 13:45
mvahoney the codewitch1-Jan-20 13:45 
AnswerRe: I'm finally ready for an article. I'm exhausted Pin
Greg Utas1-Jan-20 15:25
professionalGreg Utas1-Jan-20 15:25 
GeneralRe: I'm finally ready for an article. I'm exhausted Pin
honey the codewitch1-Jan-20 15:27
mvahoney the codewitch1-Jan-20 15:27 
Generalat least it's sunny there Pin
honey the codewitch31-Dec-19 5:39
mvahoney the codewitch31-Dec-19 5:39 
GeneralRe: at least it's sunny there Pin
Ron Anders31-Dec-19 5:52
Ron Anders31-Dec-19 5:52 
GeneralRe: at least it's sunny there Pin
Cp-Coder31-Dec-19 6:24
Cp-Coder31-Dec-19 6:24 
GeneralRe: at least it's sunny there Pin
Ron Anders31-Dec-19 6:29
Ron Anders31-Dec-19 6:29 
GeneralRe: at least it's sunny there Pin
Cp-Coder31-Dec-19 6:35
Cp-Coder31-Dec-19 6:35 
GeneralRe: at least it's sunny there Pin
stoneyowl231-Dec-19 9:45
stoneyowl231-Dec-19 9:45 
GeneralRe: at least it's sunny there Pin
Marc Clifton31-Dec-19 5:52
mvaMarc Clifton31-Dec-19 5:52 
GeneralAnd another one is gone. But this time, you probably have no idea who he is: Syd Mead RIP. Pin
OriginalGriff31-Dec-19 4:29
mveOriginalGriff31-Dec-19 4:29 

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.