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
‹
28
›
:
Non-ambiguous CFG for
{
w
∈
{
a
,
b
}
∗
∣
∣
w
∣
a
=
∣
w
∣
b
}
\{ w \in \{a,b\}^* \mid |w|_a=|w|_b \}
{
w
∈
{
a
,
b
}
∗
∣
∣
w
∣
a
=
∣
w
∣
b
}
Write a
non-ambiguous
CFG generating the words over
{
a
,
b
}
\{a,b\}
{
a
,
b
}
such that the number of occurrences of
a
a
a
coincides with the number of occurrences 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
.