Search Results for

    Show / Hide Table of Contents

    Class AbstractScanner<TValue, TSpan>

    Abstract scanner class that GPPG expects its scanners to extend.

    Inheritance
    System.Object
    AbstractScanner<TValue, TSpan>
    ScanBase
    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: QUT.Gppg
    Assembly: Xbim.Common.dll
    Syntax
    public abstract class AbstractScanner<TValue, TSpan>
        where TSpan : IMerge<TSpan>
    Type Parameters
    Name Description
    TValue

    Semantic value type YYSTYPE

    TSpan

    Source location type YYLTYPE

    Fields

    | Improve this Doc View Source

    yylval

    Lexical value optionally set by the scanner. The value is of the %YYSTYPE type declared in the parser spec.

    Declaration
    public TValue yylval
    Field Value
    Type Description
    TValue

    Properties

    | Improve this Doc View Source

    yylloc

    Current scanner location property. The value is of the type declared by %YYLTYPE in the parser specification.

    Declaration
    public virtual TSpan yylloc { get; set; }
    Property Value
    Type Description
    TSpan

    Methods

    | Improve this Doc View Source

    yyerror(String, Object[])

    Traditional error reporting provided by LEX-like scanners to their YACC-like clients.

    Declaration
    public virtual void yyerror(string format, params object[] args)
    Parameters
    Type Name Description
    System.String format

    Message format string

    System.Object[] args

    Optional array of args

    | Improve this Doc View Source

    yylex()

    Main call point for LEX-like scanners. Returns an int corresponding to the token recognized by the scanner.

    Declaration
    public abstract int yylex()
    Returns
    Type Description
    System.Int32

    An int corresponding to the token

    • Improve this Doc
    • View Source
    In This Article
    Back to top Copyright © 2022 xbim