2018-08-01 18:45:59 +02:00
|
|
|
// Copyright (c) 2018, NVIDIA CORPORATION. All rights reserved.
|
|
|
|
//
|
|
|
|
// Licensed under the Apache License, Version 2.0 (the "License");
|
|
|
|
// you may not use this file except in compliance with the License.
|
|
|
|
// You may obtain a copy of the License at
|
|
|
|
//
|
|
|
|
// http://www.apache.org/licenses/LICENSE-2.0
|
|
|
|
//
|
|
|
|
// Unless required by applicable law or agreed to in writing, software
|
|
|
|
// distributed under the License is distributed on an "AS IS" BASIS,
|
|
|
|
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
|
|
// See the License for the specific language governing permissions and
|
|
|
|
// limitations under the License.
|
|
|
|
|
|
|
|
#ifndef FORTRAN_COMMON_FORTRAN_H_
|
|
|
|
#define FORTRAN_COMMON_FORTRAN_H_
|
|
|
|
|
|
|
|
// Fortran language concepts that are used in many phases are defined
|
|
|
|
// once here to avoid redundancy and needless translation.
|
|
|
|
|
|
|
|
#include "idioms.h"
|
|
|
|
|
|
|
|
namespace Fortran::common {
|
|
|
|
|
|
|
|
// Fortran has five kinds of intrinsic data, and the derived types.
|
|
|
|
ENUM_CLASS(TypeCategory, Integer, Real, Complex, Character, Logical, Derived)
|
|
|
|
|
2018-08-23 20:45:49 +02:00
|
|
|
// Kinds of IMPORT statements. Default means IMPORT or IMPORT :: names.
|
|
|
|
ENUM_CLASS(ImportKind, Default, Only, None, All)
|
|
|
|
|
2018-09-06 01:02:41 +02:00
|
|
|
// The attribute on a type parameter can be KIND or LEN.
|
|
|
|
ENUM_CLASS(TypeParamAttr, Kind, Len)
|
2018-09-04 19:26:31 +02:00
|
|
|
|
2018-08-17 18:50:32 +02:00
|
|
|
ENUM_CLASS(RelationalOperator, LT, LE, EQ, NE, GE, GT)
|
|
|
|
|
2018-08-01 18:45:59 +02:00
|
|
|
} // namespace Fortran::common
|
|
|
|
#endif // FORTRAN_COMMON_FORTRAN_H_
|