RACSO
DFA
CFG
Operations:
Reg
,
CF
PDA
Reductions:
K
,
WP
,
CFG
,
NP
,
SAT
ANTLR:
lexical
,
syntactic
Exams
log in
,
register
,
become guest
This site uses cookies only for the purpose of identifying user sessions. This is required to properly register actions.
Exercise
‹
18
›
:
Non-ambiguous CFG for
{
w
∈
{
a
,
b
}
∗
∣
w
=
w
R
∧
∣
w
∣
a
>
0
∧
∣
w
∣
b
>
0
}
\{ w \in \{a,b\}^* \mid w=w^R \wedge |w|_a>0 \wedge |w|_b>0 \}
{
w
∈
{
a
,
b
}
∗
∣
w
=
w
R
∧
∣
w
∣
a
>
0
∧
∣
w
∣
b
>
0
}
Write a
non-ambiguous
CFG generating the palindromic words over
{
a
,
b
}
\{a,b\}
{
a
,
b
}
with some occurrence of
a
a
a
and some occurrence of
b
b
b
.
Authors:
Guillem Godoy /
Documentation:
// Write your CFG here...
To be able to submit you need to either
log in
,
register
, or
become a guest
.