diff options
Diffstat (limited to 'gcc/ada/scans.ads')
-rw-r--r-- | gcc/ada/scans.ads | 32 |
1 files changed, 29 insertions, 3 deletions
diff --git a/gcc/ada/scans.ads b/gcc/ada/scans.ads index 7ff80e9c5cd..1551296907e 100644 --- a/gcc/ada/scans.ads +++ b/gcc/ada/scans.ads @@ -6,7 +6,7 @@ -- -- -- S p e c -- -- -- --- Copyright (C) 1992-2001 Free Software Foundation, Inc. -- +-- Copyright (C) 1992-2002 Free Software Foundation, Inc. -- -- -- -- GNAT is free software; you can redistribute it and/or modify it under -- -- terms of the GNU General Public License as published by the Free Soft- -- @@ -31,7 +31,9 @@ -- -- ------------------------------------------------------------------------------ -with Types; use Types; +with Types; use Types; +with Uintp; use Uintp; +with Urealp; use Urealp; package Scans is @@ -62,7 +64,7 @@ package Scans is Tok_Operator_Symbol, -- op symbol Name, Literal, Lit_Or_Name, Desig - Tok_Identifier, -- identifier Name, Lit_Or_Name, Desig + Tok_Identifier, -- identifer Name, Lit_Or_Name, Desig Tok_Double_Asterisk, -- ** @@ -192,6 +194,10 @@ package Scans is Tok_Extends, Tok_External, + -- The following two entries are used by the preprocessor + Tok_End_Of_Line, + Tok_Special, + No_Token); -- No_Token is used for initializing Token values to indicate that -- no value has been set yet. @@ -378,6 +384,26 @@ package Scans is -- initialized to True, and then reset when the version number is found. -- We do things this way to minimize the impact on comment scanning. + Character_Code : Char_Code; + -- Valid only when Token is Tok_Char_Literal. + + Real_Literal_Value : Ureal; + -- Valid only when Token is Tok_Real_Literal + + Int_Literal_Value : Uint; + -- Valid only when Token = Tok_Integer_Literal; + + String_Literal_Id : String_Id; + -- Id for currently scanned string value. + -- Valid only when Token = Tok_String_Literal or Tok_Operator_Symbol. + + Wide_Character_Found : Boolean := False; + -- Set True if wide character found. + -- Valid only when Token = Tok_String_Literal. + + Special_Character : Character; + -- Valid only when Token = Tok_Special + -------------------------------------------------------- -- Procedures for Saving and Restoring the Scan State -- -------------------------------------------------------- |