public interface PP2CivlcTokenConverter
A Converter rephrases a token stream output from a C Preprocessor.
The major task is to recognize keywords from identifiers based on the grammar specification of a given programming
The major task is to recognize keywords from identifiers based on the grammar specification of a given programming
Configurations.Language. (Note that the token
stream is processed from a C Preprocessor with its punctuator system, so that
a set of token concatenation and division will be performed for other
programming languages.)-
Method Summary
Modifier and TypeMethodDescriptionorg.antlr.runtime.TokenStreamconvert(org.antlr.runtime.TokenStream stream) Process through an inputTokenStreamfor recognizing all possible keyword tokens from identifier ones.
-
Method Details
-
convert
org.antlr.runtime.TokenStream convert(org.antlr.runtime.TokenStream stream) Process through an inputTokenStreamfor recognizing all possible keyword tokens from identifier ones. Also, all processed tokens'CivlcToken.TokenVocabularywill be changed from 'PREPROC' to a corresponding language.- Parameters:
stream- Astream from a C preprocessorinvalid reference
CivlcToken- Returns:
- A
stream.
invalid reference
CivlcToken
-