Click here to Skip to main content
15,905,068 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: Who writes the subtitles Pin
Nelek31-Dec-19 4:41
protectorNelek31-Dec-19 4:41 
GeneralRe: Who writes the subtitles Pin
Eddy Vluggen31-Dec-19 4:51
professionalEddy Vluggen31-Dec-19 4:51 
GeneralRe: Who writes the subtitles PinPopular
Kent Sharkey31-Dec-19 5:31
staffKent Sharkey31-Dec-19 5:31 
GeneralRe: Who writes the subtitles Pin
vaghelabhavesh1-Jan-20 22:59
vaghelabhavesh1-Jan-20 22:59 
GeneralI will call it a day... Pin
Kornfeld Eliyahu Peter31-Dec-19 1:49
professionalKornfeld Eliyahu Peter31-Dec-19 1:49 
GeneralRe: I will call it a day... Pin
RickZeeland31-Dec-19 3:08
mveRickZeeland31-Dec-19 3:08 
GeneralRe: I will call it a day... Pin
Slacker00731-Dec-19 5:28
professionalSlacker00731-Dec-19 5:28 
GeneralHahahahaha *cry* Pin
honey the codewitch30-Dec-19 22:00
mvahoney the codewitch30-Dec-19 22:00 
So I ran into the Dangling else[^] problem but I thought I could solve it using an open ended where constraint in my grammar, possibly enabling backtracking i wouldn't need who cares.

Anyway, turns out nobody usually tries to parse languages with LL based parser generators in part because of problems like this.

So there's no easy doc on how to adjust an LL parser to fix the problem, and my parser seems to be hanging up on it - by choosing the wrong one (either that or there's a bug somewhere else in my grammar), i haven't fully pinpointed it yet.

I don't know what to do. I can solve it using a virtual production (where I take over the parse) but i only want to use those as a last resort

I think I figured it out. There was a bug in my grammar that wasn't helping.
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.


modified 31-Dec-19 4:16am.

GeneralRe: Hahahahaha *cry* Pin
Marc Clifton31-Dec-19 2:39
mvaMarc Clifton31-Dec-19 2:39 
GeneralRe: Hahahahaha *cry* Pin
honey the codewitch31-Dec-19 3:46
mvahoney the codewitch31-Dec-19 3:46 
GeneralRe: Hahahahaha *cry* Pin
Jörgen Andersson31-Dec-19 3:54
professionalJörgen Andersson31-Dec-19 3:54 
GeneralRe: Hahahahaha *cry* Pin
honey the codewitch31-Dec-19 3:55
mvahoney the codewitch31-Dec-19 3:55 
GeneralRe: Hahahahaha *cry* Pin
Jörgen Andersson31-Dec-19 3:47
professionalJörgen Andersson31-Dec-19 3:47 
GeneralSo this is cool, compositional parsing with a recursive descent parser! Pin
honey the codewitch30-Dec-19 8:41
mvahoney the codewitch30-Dec-19 8:41 
GeneralRe: So this is cool, compositional parsing with a recursive descent parser! Pin
pkfox30-Dec-19 10:21
professionalpkfox30-Dec-19 10:21 
GeneralRe: So this is cool, compositional parsing with a recursive descent parser! Pin
honey the codewitch30-Dec-19 10:22
mvahoney the codewitch30-Dec-19 10:22 
GeneralRe: So this is cool, compositional parsing with a recursive descent parser! Pin
pkfox30-Dec-19 10:33
professionalpkfox30-Dec-19 10:33 
GeneralRe: So this is cool, compositional parsing with a recursive descent parser! Pin
honey the codewitch30-Dec-19 10:35
mvahoney the codewitch30-Dec-19 10:35 
GeneralRe: So this is cool, compositional parsing with a recursive descent parser! Pin
Richard Andrew x6430-Dec-19 11:41
professionalRichard Andrew x6430-Dec-19 11:41 
GeneralRe: So this is cool, compositional parsing with a recursive descent parser! Pin
Greg Utas30-Dec-19 15:16
professionalGreg Utas30-Dec-19 15:16 
GeneralRe: So this is cool, compositional parsing with a recursive descent parser! Pin
honey the codewitch30-Dec-19 18:35
mvahoney the codewitch30-Dec-19 18:35 
GeneralRe: So this is cool, compositional parsing with a recursive descent parser! Pin
Greg Utas31-Dec-19 0:43
professionalGreg Utas31-Dec-19 0:43 
GeneralRe: So this is cool, compositional parsing with a recursive descent parser! Pin
honey the codewitch31-Dec-19 3:52
mvahoney the codewitch31-Dec-19 3:52 
GeneralRe: So this is cool, compositional parsing with a recursive descent parser! Pin
Greg Utas31-Dec-19 4:51
professionalGreg Utas31-Dec-19 4:51 
GeneralRe: So this is cool, compositional parsing with a recursive descent parser! Pin
honey the codewitch31-Dec-19 4:52
mvahoney the codewitch31-Dec-19 4:52 

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.