Search Results for

    Show / Hide Table of Contents

    Class Scanner

    Summary Canonical example of GPLEX automaton

    Inheritance
    System.Object
    AbstractScanner<ValueType, LexLocation>
    ScanBase
    Scanner
    Inherited Members
    ScanBase.yylloc
    ScanBase.yywrap()
    AbstractScanner<ValueType, LexLocation>.yylval
    AbstractScanner<ValueType, LexLocation>.yylloc
    AbstractScanner<ValueType, LexLocation>.yylex()
    AbstractScanner<ValueType, LexLocation>.yyerror(String, Object[])
    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 Source

    Scanner()

    Declaration
    public Scanner()
    | Improve this Doc View Source

    Scanner(ILogger)

    Declaration
    public Scanner(ILogger logger)
    Parameters
    Type Name Description
    Microsoft.Extensions.Logging.ILogger logger
    | Improve this Doc View Source

    Scanner(Stream)

    Declaration
    public Scanner(Stream file)
    Parameters
    Type Name Description
    System.IO.Stream file

    Fields

    | Improve this Doc View Source

    emitPass

    Declaration
    public static bool emitPass
    Field Value
    Type Description
    System.Boolean
    | Improve this Doc View Source

    Pass

    Declaration
    public static int Pass
    Field Value
    Type Description
    System.Int32

    Properties

    | Improve this Doc View Source

    Buffer

    The input buffer for this scanner.

    Declaration
    public ScanBuff Buffer { get; }
    Property Value
    Type Description
    ScanBuff
    | Improve this Doc View Source

    Logger

    Declaration
    public ILogger Logger { get; }
    Property Value
    Type Description
    Microsoft.Extensions.Logging.ILogger
    | Improve this Doc View Source

    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
    | Improve this Doc View Source

    yytext

    Declaration
    public string yytext { get; }
    Property Value
    Type Description
    System.String

    Methods

    | Improve this Doc View Source

    SetSource(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

    | Improve this Doc View Source

    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

    | Improve this Doc View Source

    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

    | Improve this Doc View Source

    SetValue()

    Declaration
    public void SetValue()
    | Improve this Doc View Source

    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()
    • Improve this Doc
    • View Source
    In This Article
    Back to top Copyright © 2022 xbim