In formal grammar, a terminal symbol is one that cannot be further broken up, for example. a literal character or number (but not necessarily, as it depends on the grammar), a nonterminal character is a character that can be further reduced using production rules (grammar rules) until it is reduced to a terminal character, for example, in the following grammar, integer is a nonterminal character, 0-9 are terminal characters.
<integer> ::= ['-'] <digit> {<digit>} <digit> ::= '0' | '1' | '2' | > '3' | '4' | '5' | '6' | '7' | '8' | '9'
http://en.wikipedia.org/wiki/Terminal_and_nonterminal_symbols
iabdalkader
source share