Class AbstractScanner<TValue, TSpan>
Abstract scanner class that GPPG expects its scanners to extend.
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 Sourceyylval
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 Sourceyylloc
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 Sourceyyerror(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 |
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 |