Package org.sonar.sslr.channel

Provides a basic framework to sequentially read any kind of character stream in order to feed a generic OUTPUT. This framework can used for instance in order to :
  • Create a lexer in charge to generate a list of tokens from a character stream
  • Create a source code syntax highligther in charge to decorate a source code with HTML tags
  • Create a javadoc generator
  • ...
The entry point of this framework is the ChannelDispatcher class. This class must be initialized with a CodeReader and a list of Channel. The CodeReader encapsulates any character stream in order to provide all mechanisms to Channels in order to look ahead and look behind the current reading cursor position. A Channel is in charge to consume the character stream through the CodeReader in order to feed the OUTPUT.
Since:
1.20