Quiz
BNF Quiz
Este quiz tem tipos de pergunta que abrem no player de sempre.
Perguntas do quiz (4)
1Define a grammar for the empty language, which is a language containing no strings. (There is no valid sentence in the empty language.)

- Aempty ->
2Define a grammar for the letter language. A letter is a lower-case Latin letter between a and z.

- A<letter> -> <a> | <b>| <c> | ... |<z>|
3Define a grammar for the word language. A word is a sequence of one or more letters. You may refer to the letter nonterminal defined above.

- A<word> -> <letter> |<word> <letter>
4Define a grammar for the parenthesis language, where all sentences in the parenthesis language consist of balanced pairs of left and right parentheses. Example of valid pairs: (), (()), ()(), (((()())()())). Example of invalid pairs: ())(, (, )(, )(((((((((.

- A<paren> -> (<paren>) <paren> | <empty>
Informações
- Descrição
- Test your knowledge on BNF and EBNF
- Autor
- Amy Dang
- Idioma
- English
- Visualizações
- 61
- Etiquetas
- Avaliação
- Ainda sem avaliações Avalie este quiz