Interface PP2CivlcTokenConverter


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 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 Type
    Method
    Description
    org.antlr.runtime.TokenStream
    convert(org.antlr.runtime.TokenStream stream)
    Process through an input TokenStream for recognizing all possible keyword tokens from identifier ones.
  • Method Details

    • convert

      org.antlr.runtime.TokenStream convert(org.antlr.runtime.TokenStream stream)
      Process through an input TokenStream for recognizing all possible keyword tokens from identifier ones. Also, all processed tokens' CivlcToken.TokenVocabulary will be changed from 'PREPROC' to a corresponding language.
      Parameters:
      stream - A CivlcToken stream from a C preprocessor
      Returns:
      A CivlcToken stream.