Grammar
A → B ( A B )
| .
B → A *( B A )*
| .
The grammar is ambiguous. Some sentences with ambiguous derivation: ( ( ) *( )* ).

Some sentences generated by this grammar: {ε, ( ), ( ( ) ), *( )* ( ), ( *( )* ), ( ( ( ) ) ), ( ( ) *( )* ), *( )* ( ( ) ), ( ( *( )* ) ), *( ( ) )* ( ), ( *( )* ( ) ), ( *( ( ) )* ), ( ) *( )* ( ), ( *( *( )* )* ), *( *( )* )* ( ), *( )* ( *( )* ), ( ( ) *( ( ) )* ), ( *( ( *( )* ) )* ), *( )* ( *( ( ) )* )}

nonterminalfirst setfollow set nullableendable
A ( *( ( ) *( )* $yesyes
B *( ( ) ( *( )*yesno

The grammar is not LL(1) because:



Return home to enter a new grammar.