Definition, Meaning & Synonyms
nonterminal
noun
/nɒnˈtɜːrmɪnəl/
![](https://vocabdictionary.com/wp-content/uploads/2024/11/brand_identity-01.png)
Definition
A symbol used in formal grammar that can be replaced by one or more symbols in the production rules of a formal language.
![](https://vocabdictionary.com/wp-content/uploads/2024/11/migrate-02.png)
Examples
- In a context-free grammar, ‘expr’ is often a nonterminal that can represent various expressions.
- During parsing, nonterminals help define the structure of the data being processed.
- The grammar’s nonterminals guide how sentences can be constructed with terminals.
![](https://vocabdictionary.com/wp-content/uploads/2024/11/ux-02.png)
Meaning
In the context of computer science and linguistics, a nonterminal is a type of variable that represents a category of phrases or expressions in a grammar, and it typically requires further expansion or rewriting.
![](https://vocabdictionary.com/wp-content/uploads/2024/11/text-file-font.png)
Synonyms
- variable
- placeholder
- nonterminal symbol