Click here to Skip to main content
15,893,663 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: Happy new year to everyone! Pin
OriginalGriff1-Jan-20 8:14
mveOriginalGriff1-Jan-20 8:14 
GeneralRe: Happy new year to everyone! Pin
Ravi Bhavnani1-Jan-20 9:05
professionalRavi Bhavnani1-Jan-20 9:05 
GeneralRe: Happy new year to everyone! Pin
Chris Maunder1-Jan-20 12:18
cofounderChris Maunder1-Jan-20 12:18 
GeneralRe: Happy new year to everyone! Pin
vaghelabhavesh1-Jan-20 20:52
vaghelabhavesh1-Jan-20 20:52 
GeneralRe: Happy new year to everyone! Pin
GKP19921-Jan-20 22:19
professionalGKP19921-Jan-20 22:19 
General:-) Pin
Kornfeld Eliyahu Peter31-Dec-19 20:22
professionalKornfeld Eliyahu Peter31-Dec-19 20:22 
PraiseRe: :-) Pin
RickZeeland31-Dec-19 21:07
mveRickZeeland31-Dec-19 21:07 
GeneralI'm a happy little monster Pin
honey the codewitch31-Dec-19 19:11
mvahoney the codewitch31-Dec-19 19:11 
I think I can parse anything with Parsley. I'm pretty confident in it at this point, despite its immaturity. It still is cranky because I'm not finished with it, but now all of the foundation is there.

It can parse C#. That's a tall order. With a little work (mostly lexer support for significant vs insignificant whitespace) I could parse Python. That would be easier given that lexer support because it's not so ambiguous.

I also never had to break from an LL(1) parser algorithm except in my hand-rolled routines.

Parsley will eventually be LL(k), i think. Or maybe LL(*). It depends on how big the code that gets generated winds up being.

It *did* generate a 1.3MB source file, but unlike the 800k source file i got from ANTLR for parsing C#6 (which didn't work) you can follow it in a debugger pretty easily, and Parsley actually parses C#, or at least the subset that is useful to me, though I'm confident by now i could pretty easily parse the rest of it too. I just don't have anywhere in the CodeDOM to put what i'd parse! CodeDOM knows nothing of things like anonymous methods or lambda expressions or LINQ

This is just so cool. I've been wanting to do this for a long time. (Parse C# with one of my parser generators that is)

I never thought it would wind up being a recursive descent parser generator that did it. I wrote it that way for a lark, but it worked out really well.
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 a happy little monster Pin
Super Lloyd31-Dec-19 20:17
Super Lloyd31-Dec-19 20:17 
GeneralRe: I'm a happy little monster Pin
honey the codewitch31-Dec-19 20:18
mvahoney the codewitch31-Dec-19 20:18 
GeneralRe: I'm a happy little monster Pin
Greg Utas1-Jan-20 1:01
professionalGreg Utas1-Jan-20 1:01 
GeneralRe: I'm a happy little monster Pin
honey the codewitch1-Jan-20 1:49
mvahoney the codewitch1-Jan-20 1:49 
GeneralRe: I'm a happy little monster Pin
Greg Utas1-Jan-20 2:18
professionalGreg Utas1-Jan-20 2:18 
GeneralRe: I'm a happy little monster Pin
honey the codewitch1-Jan-20 15:59
mvahoney the codewitch1-Jan-20 15:59 
GeneralRe: I'm a happy little monster Pin
honey the codewitch1-Jan-20 2:19
mvahoney the codewitch1-Jan-20 2:19 
GeneralRe: I'm a happy little monster Pin
RickZeeland31-Dec-19 21:09
mveRickZeeland31-Dec-19 21:09 
GeneralRe: I'm a happy little monster Pin
Greg Utas1-Jan-20 1:04
professionalGreg Utas1-Jan-20 1:04 
GeneralRe: I'm a happy little monster Pin
Nelek1-Jan-20 1:23
protectorNelek1-Jan-20 1:23 
GeneralRe: I'm a happy little monster Pin
Mark_Wallace1-Jan-20 1:59
Mark_Wallace1-Jan-20 1:59 
GeneralRe: I'm a happy little monster Pin
Greg Utas1-Jan-20 2:23
professionalGreg Utas1-Jan-20 2:23 
GeneralRe: I'm a happy little monster Pin
Greg Utas1-Jan-20 1:35
professionalGreg Utas1-Jan-20 1:35 
JokeLittle known fact...believe it or don't PinPopular
Mike Hankey31-Dec-19 13:55
mveMike Hankey31-Dec-19 13:55 
GeneralRe: Little known fact...believe it or don't Pin
Greg Utas31-Dec-19 14:11
professionalGreg Utas31-Dec-19 14:11 
GeneralRe: Little known fact...believe it or don't Pin
Ron Anders31-Dec-19 14:34
Ron Anders31-Dec-19 14:34 
GeneralRe: Little known fact...believe it or don't Pin
DRHuff31-Dec-19 15:50
DRHuff31-Dec-19 15:50 

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.