Class Scanner
Summary Canonical example of GPLEX automaton
Inherited Members
System.Object.ToString()
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
Namespace: Xbim.IO.Parser
Assembly: Xbim.Common.dll
Syntax
public sealed class Scanner : ScanBase
Constructors
| Improve this Doc View SourceScanner()
Declaration
public Scanner()
Scanner(ILogger)
Declaration
public Scanner(ILogger logger)
Parameters
Type | Name | Description |
---|---|---|
Microsoft.Extensions.Logging.ILogger | logger |
Scanner(Stream)
Declaration
public Scanner(Stream file)
Parameters
Type | Name | Description |
---|---|---|
System.IO.Stream | file |
Fields
| Improve this Doc View SourceemitPass
Declaration
public static bool emitPass
Field Value
Type | Description |
---|---|
System.Boolean |
Pass
Declaration
public static int Pass
Field Value
Type | Description |
---|---|
System.Int32 |
Properties
| Improve this Doc View SourceBuffer
The input buffer for this scanner.
Declaration
public ScanBuff Buffer { get; }
Property Value
Type | Description |
---|---|
ScanBuff |
Logger
Declaration
public ILogger Logger { get; }
Property Value
Type | Description |
---|---|
Microsoft.Extensions.Logging.ILogger |
yyleng
The length of the pattern in codepoints (not the same as string-length if the pattern contains any surrogate pairs).
Declaration
public long yyleng { get; }
Property Value
Type | Description |
---|---|
System.Int64 |
yytext
Declaration
public string yytext { get; }
Property Value
Type | Description |
---|---|
System.String |
Methods
| Improve this Doc View SourceSetSource(IList<String>)
Create and initialize a LineBuff buffer object for this scanner
Declaration
public void SetSource(IList<string> source)
Parameters
Type | Name | Description |
---|---|---|
System.Collections.Generic.IList<System.String> | source | the list of input strings |
SetSource(Stream)
Create and initialize a StreamBuff buffer object for this scanner. StreamBuff is buffer for 8-bit byte files.
Declaration
public void SetSource(Stream source)
Parameters
Type | Name | Description |
---|---|---|
System.IO.Stream | source | the input byte stream |
SetSource(String, Int32)
Create and initialize a StringBuff buffer object for this scanner
Declaration
public void SetSource(string source, int offset)
Parameters
Type | Name | Description |
---|---|---|
System.String | source | the input string |
System.Int32 | offset | starting offset in the string |
SetValue()
Declaration
public void SetValue()
yyerror(String, Object[])
Declaration
public override void yyerror(string format, params object[] args)
Parameters
Type | Name | Description |
---|---|---|
System.String | format | |
System.Object[] | args |
Overrides
QUT.Gppg.AbstractScanner<Xbim.IO.Parser.ValueType, QUT.Gppg.LexLocation>.yyerror(System.String, System.Object[])
|
Improve this Doc
View Source
yylex()
Declaration
public override int yylex()
Returns
Type | Description |
---|---|
System.Int32 |
Overrides
QUT.Gppg.AbstractScanner<Xbim.IO.Parser.ValueType, QUT.Gppg.LexLocation>.yylex()