Class LexLocation
This is the default class that carries location information from the scanner to the parser. If you don't declare "%YYLTYPE Foo" the parser will expect to deal with this type.
Inheritance
System.Object
LexLocation
Implements
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 class LexLocation : IMerge<LexLocation>
Constructors
| Improve this Doc View SourceLexLocation()
Default no-arg constructor.
Declaration
public LexLocation()
LexLocation(Int32, Int32, Int32, Int32)
Constructor for text-span with given start and end.
Declaration
public LexLocation(int sl, int sc, int el, int ec)
Parameters
Type | Name | Description |
---|---|---|
System.Int32 | sl | start line |
System.Int32 | sc | start column |
System.Int32 | el | end line |
System.Int32 | ec | end column |
Properties
| Improve this Doc View SourceEndColumn
The column of the first character beyond the end of the text span.
Declaration
public int EndColumn { get; }
Property Value
Type | Description |
---|---|
System.Int32 |
EndLine
The line on which the text span ends.
Declaration
public int EndLine { get; }
Property Value
Type | Description |
---|---|
System.Int32 |
StartColumn
The column at which the text span starts.
Declaration
public int StartColumn { get; }
Property Value
Type | Description |
---|---|
System.Int32 |
StartLine
The line at which the text span starts.
Declaration
public int StartLine { get; }
Property Value
Type | Description |
---|---|
System.Int32 |
Methods
| Improve this Doc View SourceMerge(LexLocation)
Create a text location which spans from the start of "this" to the end of the argument "last"
Declaration
public LexLocation Merge(LexLocation last)
Parameters
Type | Name | Description |
---|---|---|
LexLocation | last | The last location in the result span |
Returns
Type | Description |
---|---|
LexLocation | The merged span |