diff options
author | Tristan Gingold <tgingold@free.fr> | 2018-11-16 20:46:09 +0100 |
---|---|---|
committer | Tristan Gingold <tgingold@free.fr> | 2018-11-16 20:46:09 +0100 |
commit | ad252b4268f855b7df53092826b6f6a57ce4c4e3 (patch) | |
tree | a78850bb3cd642048db6bc38ebf16dd1a75af567 /src/vhdl/scanner.ads | |
parent | 9624f0ce08849f8cf14fe81416496417b4754d9d (diff) | |
download | ghdl-ad252b4268f855b7df53092826b6f6a57ce4c4e3.tar.gz ghdl-ad252b4268f855b7df53092826b6f6a57ce4c4e3.tar.bz2 ghdl-ad252b4268f855b7df53092826b6f6a57ce4c4e3.zip |
errorout: split and rework.
Diffstat (limited to 'src/vhdl/scanner.ads')
-rw-r--r-- | src/vhdl/scanner.ads | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/src/vhdl/scanner.ads b/src/vhdl/scanner.ads index 5ed6f04db..176904cab 100644 --- a/src/vhdl/scanner.ads +++ b/src/vhdl/scanner.ads @@ -111,14 +111,15 @@ package Scanner is -- False (used by PSL). function Scan_Underscore return Boolean; - -- Get the current location, or the location of the current token. - -- Since a token cannot spread over lines, file and line of the current - -- token are the same as those of the current position. + -- Get the current location, or the location of the current token. + -- Since a token cannot spread over lines, file and line of the current + -- token are the same as those of the current position. + -- The offset is the offset in the current line. function Get_Current_Source_File return Source_File_Entry; function Get_Current_Line return Natural; - function Get_Current_Column return Natural; + function Get_Current_Offset return Natural; function Get_Token_Location return Location_Type; - function Get_Token_Column return Natural; + function Get_Token_Offset return Natural; function Get_Token_Position return Source_Ptr; function Get_Position return Source_Ptr; |