Loading...
Searching...
No Matches
by::stelaIndentScan Class Reference

Indentation-aware token scanning mode. More...

#include <stelaTokenScan.hpp>

Inheritance diagram for by::stelaIndentScan:
by::stelaTokenScan by::stelaTokenScanable

Public Member Functions

nint onScan (stelaParser &ps, ZZSTYPE *yylval, ZZLTYPE *loc, zzscan_t yyscanner, nbool &isBypass) override
 Pure virtual method for concrete token scanning implementations.
 
- Public Member Functions inherited from by::stelaTokenScan
nint onScan (stelaParser &ps, ZZSTYPE *val, ZZLTYPE *loc, zzscan_t scanner)
 Default entry point for token scanning.
 
virtual nint onScan (stelaParser &ps, ZZSTYPE *yylval, ZZLTYPE *loc, zzscan_t yyscanner, nbool &isBypass)=0
 Pure virtual method for concrete token scanning implementations.
 
- Public Member Functions inherited from by::stelaTokenScanable
nint onScan (stelaParser &ps, ZZSTYPE *val, ZZLTYPE *loc, zzscan_t scanner)
 Default entry point for token scanning.
 

Static Public Attributes

static stelaIndentScan instance
 

Detailed Description

Indentation-aware token scanning mode.

Specialized token scanning that handles Python-like indentation. Generates indent and dedent tokens based on whitespace changes.

Member Function Documentation

◆ onScan()

nint by::stelaIndentScan::onScan ( stelaParser & ps,
ZZSTYPE * yylval,
ZZLTYPE * loc,
zzscan_t yyscanner,
nbool & isBypass )
overridevirtual

Pure virtual method for concrete token scanning implementations.

Parameters
psThe stelaParser instance.
yylvalThe YYSTYPE value pointer for the token.
locThe YYLTYPE location pointer for the token.
yyscannerThe Flex scanner instance.
isBypassFlag indicating if indentation bypass is active.
Returns
The token ID.

Reimplemented from by::stelaTokenScan.


The documentation for this class was generated from the following files: