Left_recursion Left_recursion

Left recursion - Definition and Overview

In computer science, left recursion is a special case of recursion.

A formal grammar that comprises left recursion cannot be parsed by a recursive descent parser.

Examples

The BNF grammar

  • <E> ::= <E> "+" <T> | <E> "-" <T>

is a left-recursive grammar.

See also

Copyright 2009 WordIQ.com - Privacy Policy  :: Terms of Use  :: Contact Us  :: About Us
This article is licensed under the GNU Free Documentation License. It uses material from the this Wikipedia article.