Interface for token scanning functionality 더 자세히 ...
#include <tokenScanable.hpp>
Public 멤버 함수 | |
| nint | onScan (parser &ps, YYSTYPE *val, YYLTYPE *loc, yyscan_t scanner) |
| Default entry point for token scanning. | |
| virtual nint | onScan (parser &ps, YYSTYPE *yylval, YYLTYPE *loc, yyscan_t yyscanner, nbool &isBypass)=0 |
| Pure virtual method for concrete token scanning implementations. | |
Interface for token scanning functionality
Defines the contract for token scanning implementations. Provides hooks for custom token processing during parsing.
Default entry point for token scanning.
This non-virtual method acts as a wrapper that internally dispatches to the pure virtual onScan method, which must be implemented by concrete scanner strategies.
| ps | The parser instance. |
| val | The YYSTYPE value pointer for the token. |
| loc | The YYLTYPE location pointer for the token. |
| scanner | The Flex scanner instance. |
|
pure virtual |
Pure virtual method for concrete token scanning implementations.
| ps | The parser instance. |
| yylval | The YYSTYPE value pointer for the token. |
| loc | The YYLTYPE location pointer for the token. |
| yyscanner | The Flex scanner instance. |
| isBypass | Flag indicating if indentation bypass is active. |
by::parser, by::tokenScan, by::normalScan, by::indentScan, by::tokenScan, by::parser에서 구현되었습니다.