class EnsLib.EDI.SEF.Util.Scanner
extends EnsLib.EDI.SEF.Util.TokenClassifier
property CurrentChar
as %String;
This holds the current character
property CurrentToken
as %Integer;
This holds the current token
property Index
as %Integer;
This holds the current index into the source
property LexemeBegin
as %Integer;
This holds the beggining of a lexeme
property Source
as %RawString;
This holds the source to be scanner
property SourceLen
as %Integer;
This holds the source length
method BeginLexeme()
This marks the beggining of a lexeme
method DisplayContext()
as %String
Return a string which displays the current context
method EndLexeme()
as %String
This marks the end of a lexeme and returns it
method Initialize(initvalue)
as %Status
method NextToken()
as %Integer
This advances the scanner by one token
method PeekNextChar()
as %String
This peeks at the char without making it current
method PeekNextNextChar()
as %String
This peeks at the one after next char without making it current
method PeekNextNextToken()
as %Integer
This peeks at the one after next token without making it current
method PeekNextToken()
as %Integer
This peeks at the next token without making it current
method SkipWhitespace()
as %Integer
This skips spaces and tabs returning the next token found