Ignore:
Timestamp:
May 18, 2015, 11:45:33 PM (9 years ago)
Author:
Peter A. Buhr <pabuhr@…>
Branches:
ADT, aaron-thesis, arm-eh, ast-experimental, cleanup-dtors, ctor, deferred_resn, demangler, enum, forall-pointer-decay, gc_noraii, jacob/cs343-translation, jenkins-sandbox, master, memory, new-ast, new-ast-unique-expr, new-env, no_list, persistent-indexer, pthread-emulation, qualifiedEnum, resolv-new, string, with_gc
Children:
01aeade
Parents:
0dd3a2f
Message:

licencing: fourth groups of files

File:
1 edited

Legend:

Unmodified
Added
Removed
  • translator/CodeGen/OperatorTable.h

    r0dd3a2f r51587aa  
    1 /*
    2  * This file is part of the Cforall project
    3  *
    4  * $Id: OperatorTable.h,v 1.4 2003/01/19 04:19:31 rcbilson Exp $
    5  *
    6  */
     1//
     2// Cforall Version 1.0.0 Copyright (C) 2015 University of Waterloo
     3//
     4// The contents of this file are covered under the licence agreement in the
     5// file "LICENCE" distributed with Cforall.
     6//
     7// OperatorTable.h --
     8//
     9// Author           : Richard C. Bilson
     10// Created On       : Mon May 18 07:44:20 2015
     11// Last Modified By : Peter A. Buhr
     12// Last Modified On : Mon May 18 23:43:07 2015
     13// Update Count     : 2
     14//
    715
    8 #ifndef CODEGEN_OPERATORTABLE_H
    9 #define CODEGEN_OPERATORTABLE_H
     16#ifndef _OPERATORTABLE_H
     17#define _OPERATORTABLE_H
    1018
    1119#include <string>
    1220
    1321namespace CodeGen {
     22        enum OperatorType {
     23                OT_INDEX,
     24                OT_CALL,
     25                OT_PREFIX,
     26                OT_POSTFIX,
     27                OT_INFIX,
     28                OT_PREFIXASSIGN,
     29                OT_POSTFIXASSIGN,
     30                OT_INFIXASSIGN,
     31                OT_CONSTANT
     32        };
    1433
    15 enum OperatorType
    16 {
    17   OT_INDEX,
    18   OT_CALL,
    19   OT_PREFIX,
    20   OT_POSTFIX,
    21   OT_INFIX,
    22   OT_PREFIXASSIGN,
    23   OT_POSTFIXASSIGN,
    24   OT_INFIXASSIGN,
    25   OT_CONSTANT
    26 };
     34        struct OperatorInfo {
     35                std::string inputName;
     36                std::string symbol;
     37                std::string outputName;
     38                OperatorType type;
     39        };
    2740
    28 struct OperatorInfo
    29 {
    30   std::string inputName;
    31   std::string symbol;
    32   std::string outputName;
    33   OperatorType type;
    34 };
    35 
    36 bool operatorLookup( std::string funcName, OperatorInfo &info );
    37 
     41        bool operatorLookup( std::string funcName, OperatorInfo &info );
    3842} // namespace CodeGen
    3943
    40 #endif /* #ifndef CODEGEN_OPERATORTABLE_H */
     44#endif // _OPERATORTABLE_H
     45
     46// Local Variables: //
     47// tab-width: 4 //
     48// mode: c++ //
     49// compile-command: "make install" //
     50// End: //
Note: See TracChangeset for help on using the changeset viewer.