6 #include <picofuse/sys.h> 23 sys_scanner_keywords_withunderscores,
25 sys_scanner_keywords_withdashes,
100 sys_scanner_t _scanner;
A stream of bytes, which can be read or written.
size_t tokenLength()
Returns the length of the token in bytes, or zero if there isn't one.
Dates such as 2026-09-06T11:37:05Z.
NXStream * stream()
Returns the stream which is read.
Keywords which can include _.
Only runs of spaces, letters and digits.
Not one of the others, or no token.
size_t tokenRuneCount()
Returns the number of characters in the token, or zero if there isn't one.
Reads tokens, one at a time, from a string or a stream.
Dates in every format scanned.
BOOL next()
Moves to the next token.
A keyword (NXScannerKeywords)
NXScannerClass
The class of a token.
size_t tokenPosition()
Returns the position of the token in the stream, or NXNotFound if there isn't one.
Comments from // to a line end.
NXScannerFlags
Which tokens a scanner recognizes, besides runs of spaces, letters and digits.
A string, with its quotes (NXScannerQuotes)
Line feeds, apart from other spaces.
A symbol, such as = or +.
Durations such as 1h30m or 1.5s.
NXScannerClass tokenClass()
Returns the class of the token, or NXScannerClassOther if there isn't one.
An escape (NXScannerEscapes)
bool BOOL
A Boolean value.
Letters followed by letters and digits.
Escapes such as \n and \u0041.
The base class for objects in the Foundation framework.
Keywords which can include -.
Comments from # to a line end.
struct objc_object * id
A pointer to an instance of a class.
A number (NXScannerNumbers)
A duration (NXScannerDurations)
A line feed (NXScannerNewlines)
A comment (NXScannerComments)
NXString * token()
Returns the token, or nil if there isn't one or there isn't enough memory.