EXEMPLO
|
Diagrama Sintático - Diagrama de Sintaxe
|
sequencia = a b c
|
|
alternativa = a | b | c
|
|
De0ate1a = a? /* 0:1 */
|
|
De0ate1b = [a] /* 0:1 */
|
|
De0ate1c = (a)? /* 0:1 */
|
|
De0ate1d = (a b)? /* 0:1 */
|
|
De0ateInf1 = a* /* 0:inf */
|
|
De0ateInf2 = {a} /* 0:inf */
|
|
De0ateInf3 = [a+] /* 0:inf */
|
|
De0ateInf4 = [(a b)+] /* 0:inf */
|
|
De1ateInf1 = a+ /* 1:inf */
|
|
De1ateInf2 = (a b)+ /* 1:inf */
|
|
ComSeparador1 = a (";" a)*
|
|
ComSeparador2 = a {";" a}
|
|
ComSeparador4 = seq {";" seq}
seq = a b
/* CSep = a b {";" a b} nao deu certo*/
|
|