Class Scanner
- Namespace
- GLib
- Assembly
- GLib-2.0.dll
public sealed class Scanner
- Inheritance
-
Scanner
- Inherited Members
Constructors
Scanner()
public Scanner()
Scanner(ScannerOwnedHandle)
public Scanner(ScannerOwnedHandle handle)
Parameters
handle
ScannerOwnedHandle
Properties
Handle
public ScannerOwnedHandle Handle { get; }
Property Value
InputName
public string? InputName { get; set; }
Property Value
Line
public uint Line { get; set; }
Property Value
MaxParseErrors
public uint MaxParseErrors { get; set; }
Property Value
NextLine
public uint NextLine { get; set; }
Property Value
NextPosition
public uint NextPosition { get; set; }
Property Value
NextToken
public TokenType NextToken { get; set; }
Property Value
ParseErrors
public uint ParseErrors { get; set; }
Property Value
Position
public uint Position { get; set; }
Property Value
Token
public TokenType Token { get; set; }
Property Value
Methods
CurLine()
public uint CurLine()
Returns
CurPosition()
public uint CurPosition()
Returns
CurToken()
public TokenType CurToken()
Returns
Destroy()
public void Destroy()
Eof()
public bool Eof()
Returns
Equals(Scanner?)
public bool Equals(Scanner? other)
Parameters
other
Scanner
Returns
Equals(object?)
Determines whether the specified object is equal to the current object.
public override bool Equals(object? obj)
Parameters
obj
objectThe object to compare with the current object.
Returns
GetHashCode()
Serves as the default hash function.
public override int GetHashCode()
Returns
- int
A hash code for the current object.
GetNextToken()
public TokenType GetNextToken()
Returns
InputFile(int)
public void InputFile(int inputFd)
Parameters
inputFd
int
InputText(string, uint)
public void InputText(string text, uint textLen)
Parameters
LookupSymbol(string)
public IntPtr LookupSymbol(string symbol)
Parameters
symbol
string
Returns
New(ScannerConfig)
public static Scanner New(ScannerConfig configTempl)
Parameters
configTempl
ScannerConfig
Returns
PeekNextToken()
public TokenType PeekNextToken()
Returns
ScopeAddSymbol(uint, string, IntPtr)
public void ScopeAddSymbol(uint scopeId, string symbol, IntPtr value)
Parameters
ScopeForeachSymbol(uint, HFunc)
public void ScopeForeachSymbol(uint scopeId, HFunc func)
Parameters
ScopeLookupSymbol(uint, string)
public IntPtr ScopeLookupSymbol(uint scopeId, string symbol)
Parameters
Returns
ScopeRemoveSymbol(uint, string)
public void ScopeRemoveSymbol(uint scopeId, string symbol)
Parameters
SetScope(uint)
public uint SetScope(uint scopeId)
Parameters
scopeId
uint
Returns
SyncFileOffset()
public void SyncFileOffset()
UnexpToken(TokenType, string, string, string, string, int)
public void UnexpToken(TokenType expectedToken, string identifierSpec, string symbolSpec, string symbolName, string message, int isError)