Open main menu
Home
Random
Recent changes
Special pages
Community portal
Preferences
About Wikipedia
Disclaimers
Incubator escapee wiki
Search
User menu
Talk
Dark mode
Contributions
Create account
Log in
Editing
Left recursion
(section)
Warning:
You are not logged in. Your IP address will be publicly visible if you make any edits. If you
log in
or
create an account
, your edits will be attributed to your username, along with other benefits.
Anti-spam check. Do
not
fill this in!
=== Indirect left recursion === Indirect left recursion occurs when the definition of left recursion is satisfied via several substitutions. It entails a set of rules following the pattern :<math>A_0 \to \beta_0A_1\alpha_0</math> :<math>A_1 \to \beta_1A_2\alpha_1</math> :<math>\cdots</math> :<math>A_n \to \beta_nA_0\alpha_n</math> where <math>\beta_0, \beta_1, \ldots, \beta_n</math> are sequences that can each yield the [[empty string]], while <math>\alpha_0, \alpha_1, \ldots, \alpha_n</math> may be any sequences of terminal and nonterminal symbols at all. Note that these sequences may be empty. The derivation :<math>A_0\Rightarrow\beta_0A_1\alpha_0\Rightarrow^+ A_1\alpha_0\Rightarrow\beta_1A_2\alpha_1\alpha_0\Rightarrow^+\cdots\Rightarrow^+ A_0\alpha_n\dots\alpha_1\alpha_0</math> then gives <math>A_0</math> as leftmost in its final sentential form.
Edit summary
(Briefly describe your changes)
By publishing changes, you agree to the
Terms of Use
, and you irrevocably agree to release your contribution under the
CC BY-SA 4.0 License
and the
GFDL
. You agree that a hyperlink or URL is sufficient attribution under the Creative Commons license.
Cancel
Editing help
(opens in new window)