public static class Bison.Location
extends java.lang.Object
Bison.Position
class, denote a point in the input.
Locations represent a part of the input through the beginning
and ending positions.Modifier and Type | Field and Description |
---|---|
Bison.Position |
begin
The first, inclusive, position in the range.
|
Bison.Position |
end
The first position beyond the range.
|
Constructor and Description |
---|
Location(Bison.Position loc)
Create a
Location denoting an empty range located at
a given point. |
Location(Bison.Position begin,
Bison.Position end)
Create a
Location from the endpoints of the range. |
Modifier and Type | Method and Description |
---|---|
java.lang.String |
toString()
Print a representation of the location.
|
public Bison.Position begin
public Bison.Position end
public Location(Bison.Position loc)
Location
denoting an empty range located at
a given point.loc
- The position at which the range is anchored.public Location(Bison.Position begin, Bison.Position end)
Location
from the endpoints of the range.begin
- The first position included in the range.end
- The first position beyond the range.