I\'m studying for my computing languages test, and there\'s one idea I\'m having problems wrapping my head around.
I understood that regular grammars<
The difference between regular and context free grammar: (N, Σ, P, S) : terminals, nonterminals, productions, starting state Terminal symbols
● elementary symbols of the language defined by a formal grammar
● abc
Nonterminal symbols (or syntactic variables)
● replaced by groups of terminal symbols according to the production rules
● ABC
regular grammar: right or left regular grammar right regular grammar, all rules obey the forms
left regular grammar, all rules obey the forms
context free grammar (CFG)
○ formal grammar in which every production rule is of the form V → w
○ V is a single nonterminal symbol
○ w is a string of terminals and/or nonterminals (w can be empty)