Top "Context-free-grammar" questions

In formal language theory, a context-free grammar (CFG) is a grammar subject to a special constraint: that the left-hand side (LHS) consist of a single non-terminal symbol.

Regular vs Context Free Grammars

I'm studying for my computing languages test, and there's one idea I'm having problems wrapping my head around. I understood …

context-free-grammar regular-language automata
Tips for creating "Context Free Grammar"

I am new to CFG's, Can someone give me tips in creating CFG that generates some language For example L = {…

grammar context-free-grammar lexical-analysis formal-languages
Converting ambiguous grammar to unambiguous

I did not understand how a unambiguous grammar is derived from a ambiguous grammar? Consider the example on site: Example. …

grammar context-free-grammar
Is C++ context-free or context-sensitive?

I often hear claims that C++ is a context-sensitive language. Take the following example: a b(c); Is this a …

c++ syntax grammar context-free-grammar context-sensitive-grammar
Context-free grammars versus context-sensitive grammars?

Can someone explain to me why grammars [context-free grammar and context-sensitive grammar] of this kind accepts a String? What I …

algorithm parsing grammar context-free-grammar context-sensitive-grammar
Construct grammar given the following language {a^n b^m | n,m = 0,1,2,...,n <= 2m}

I just took my midterm but couldn't answer this question. Can someone please give a couple of examples of the …

grammar context-free-grammar computation-theory context-sensitive-grammar
What is a Context Free Grammar?

Can someone explain to me what a context free grammar is? After looking at the Wikipedia entry and then the …

regex parsing grammar context-free-grammar
What programming languages are context-free?

Or, to be a little more precise: which programming languages are defined by a context-free grammar? From what I gather …

compiler-theory context-free-grammar
Difference between an LL and Recursive Descent parser?

I've recently being trying to teach myself how parsers (for languages/context-free grammars) work, and most of it seems to …

parsing grammar context-free-grammar recursive-descent ll