Test
BNF Quiz
Este test tiene tipos de pregunta que se abren en el reproductor de siempre.
Preguntas del test (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>
Información
- Descripción
- Test your knowledge on BNF and EBNF
- Autor
- Amy Dang
- Idioma
- English
- Visitas
- 61
- Etiquetas
- Valoración
- Aún sin valoraciones Valora este test