Click here to Skip to main content
15,900,973 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: Eureka! I was stewing on a rant I made here and it clicked! Pin
honey the codewitch12-Nov-21 6:06
mvahoney the codewitch12-Nov-21 6:06 
GeneralRe: Eureka! I was stewing on a rant I made here and it clicked! Pin
0x01AA12-Nov-21 7:00
mve0x01AA12-Nov-21 7:00 
GeneralRe: Eureka! I was stewing on a rant I made here and it clicked! Pin
honey the codewitch12-Nov-21 7:23
mvahoney the codewitch12-Nov-21 7:23 
GeneralRe: Eureka! I was stewing on a rant I made here and it clicked! Pin
Jon McKee12-Nov-21 10:38
professionalJon McKee12-Nov-21 10:38 
GeneralRe: Eureka! I was stewing on a rant I made here and it clicked! Pin
honey the codewitch12-Nov-21 11:11
mvahoney the codewitch12-Nov-21 11:11 
GeneralRe: Eureka! I was stewing on a rant I made here and it clicked! Pin
Jon McKee12-Nov-21 11:34
professionalJon McKee12-Nov-21 11:34 
GeneralRe: Eureka! I was stewing on a rant I made here and it clicked! Pin
honey the codewitch12-Nov-21 11:40
mvahoney the codewitch12-Nov-21 11:40 
GeneralRe: Eureka! I was stewing on a rant I made here and it clicked! Pin
honey the codewitch12-Nov-21 11:49
mvahoney the codewitch12-Nov-21 11:49 
Adding, as far as carrying over from regex, that's true of LR, but not so much of LL.

They are all forms of automata, but with LL and regex that's where the similarity - in terms of the math of it - end.

The reason is that LL and LR match Chomsky class 2 languages while regex can only match class 3 languages.

It's the introduction of a hierarchy that creates the issue, and breaks so much of the math. For example, while two regular expressions can be converted to FA graphs and compared for equivalency the equivalency of two grammars (called context free grammars or CFGs) cannot be decided.

The reason LR shares some ideas with the regex/FA world is because of how it matches rules on the stack. It uses finite automata, like regex, to look for those patterns. But it uses those matches to create a hierarchy - each time a "reduce" happens, a new node (with a corresponding rule) with potential children is put in the tree. Regex has no such corollary. Its accepts however, are similar in this case, but they don't do anything to create parent child relationships, while "rules" themselves do.

An LR parser is a PDA (push down automaton) that uses FA (finite automaton) to help its PDA process. FA is where the regex similarities come in.

With LL (aside from certain implementations of LL(k)) there's not even a corollary there because no regex style matching is used. Instead it's entirely driven top down using a decision table and a stack. Yes, it's a state machine itself, but it works so much differently than a regex thing, there's no FA involved, just a PDA.

*hides*
Real programmers use butterflies

GeneralRe: Eureka! I was stewing on a rant I made here and it clicked! Pin
Jon McKee12-Nov-21 16:14
professionalJon McKee12-Nov-21 16:14 
GeneralRe: Eureka! I was stewing on a rant I made here and it clicked! Pin
honey the codewitch12-Nov-21 17:11
mvahoney the codewitch12-Nov-21 17:11 
GeneralRe: Eureka! I was stewing on a rant I made here and it clicked! Pin
BernardIE531712-Nov-21 13:23
BernardIE531712-Nov-21 13:23 
GeneralRe: Eureka! I was stewing on a rant I made here and it clicked! Pin
honey the codewitch12-Nov-21 13:50
mvahoney the codewitch12-Nov-21 13:50 
GeneralWhat is Azure? Pin
Kevin Marois12-Nov-21 5:34
professionalKevin Marois12-Nov-21 5:34 
GeneralRe: What is Azure? PinPopular
Richard Deeming12-Nov-21 5:52
mveRichard Deeming12-Nov-21 5:52 
GeneralRe: What is Azure? Pin
Kevin Marois12-Nov-21 6:10
professionalKevin Marois12-Nov-21 6:10 
GeneralRe: What is Azure? Pin
Richard Deeming12-Nov-21 6:23
mveRichard Deeming12-Nov-21 6:23 
GeneralRe: What is Azure? Pin
Kevin Marois12-Nov-21 6:46
professionalKevin Marois12-Nov-21 6:46 
GeneralRe: What is Azure? Pin
Gary R. Wheeler13-Nov-21 5:53
Gary R. Wheeler13-Nov-21 5:53 
GeneralRe: What is Azure? Pin
dandy7212-Nov-21 8:30
dandy7212-Nov-21 8:30 
GeneralRe: What is Azure? Pin
OriginalGriff12-Nov-21 6:01
mveOriginalGriff12-Nov-21 6:01 
GeneralRe: What is Azure? Pin
Richard MacCutchan12-Nov-21 6:09
mveRichard MacCutchan12-Nov-21 6:09 
GeneralRe: What is Azure? Pin
RickZeeland12-Nov-21 6:17
mveRickZeeland12-Nov-21 6:17 
GeneralRe: What is Azure? Pin
k505412-Nov-21 6:37
mvek505412-Nov-21 6:37 
GeneralRe: What is Azure? PinPopular
kmoorevs12-Nov-21 6:34
kmoorevs12-Nov-21 6:34 
GeneralRe: What is Azure? Pin
Kevin Marois12-Nov-21 6:53
professionalKevin Marois12-Nov-21 6:53 

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.


Straw Poll

Were you affected by the geomagnetic storms this past weekend?
Communication disruptions, electrified pipes, random unexplained blue-screens in Windows - the list of effects is terrifying.
  Results   497 votes