|Avoid "symbol" and "token" terms ambiguity firstname.lastname@example.org (Vasily Karyaev) (2005-01-09)|
|Re: Avoid "symbol" and "token" terms ambiguity email@example.com (2005-01-30)|
|Re: Avoid "symbol" and "token" terms ambiguity firstname.lastname@example.org (2005-02-03)|
|Date:||30 Jan 2005 13:57:46 -0500|
|Organization:||AOL Bertelsmann Online GmbH & Co. KG http://www.germany.aol.com|
|Posted-Date:||30 Jan 2005 13:57:46 EST|
Vasily Karyaev <email@example.com> schreibt:
>I need to assign appropriate class names for the two related but
>1. "A grammar symbol (token)".
>2. "A parser symbol (token)".
You have 2 grammars, one for the lexer and one for the parser. Each grammar has
terminals (atoms) and nonterminals (symbols), where the nonterminals of the
lexer grammar are the terminals of the parser grammar.
AFAIK Token is commonly used for lexer symbols, and Production or
simply Symbol is used for parser symbols. John?
[I'd say that "production" is more often used to describe the entire rule,
not just the symbol, but the terminolgy isn't very consistent. -John]
Return to the
Search the comp.compilers archives again.