Commit ebea1d79 authored by JINMEI Tatuya's avatar JINMEI Tatuya
Browse files

[2506] updated part of lexer state doc to match the latest changes.

parent 610720a5
...@@ -43,10 +43,10 @@ namespace master_lexer_internal { ...@@ -43,10 +43,10 @@ namespace master_lexer_internal {
/// state, so it makes more sense to separate the interface for the transition /// state, so it makes more sense to separate the interface for the transition
/// from the initial state. /// from the initial state.
/// ///
/// When an object of a specific state class completes the session, it /// If the whole lexer transition is completed within start(), it sets the
/// normally sets the identified token in the lexer, and returns NULL; /// identified token and returns NULL; otherwise it returns a pointer to
/// if more transition is necessary, it returns a pointer to the next state /// an object of a specific state class that completes the session
/// object. /// on the call of handle().
/// ///
/// As is usual in the state design pattern, the \c State class is made /// As is usual in the state design pattern, the \c State class is made
/// a friend class of \c MasterLexer and can refer to its internal details. /// a friend class of \c MasterLexer and can refer to its internal details.
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment