source: src/Parser/TypedefTable.h @ a1c9ddd

aaron-thesisarm-ehcleanup-dtorsdeferred_resndemanglerjacob/cs343-translationjenkins-sandboxnew-astnew-ast-unique-exprnew-envno_listpersistent-indexerwith_gc
Last change on this file since a1c9ddd was a1c9ddd, checked in by Peter A. Buhr <pabuhr@…>, 4 years ago

remove changeKind, formatting

  • Property mode set to 100644
File size: 1.2 KB
Line 
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// TypedefTable.h --
8//
9// Author           : Peter A. Buhr
10// Created On       : Sat May 16 15:24:36 2015
11// Last Modified By : Peter A. Buhr
12// Last Modified On : Thu Jun  7 12:10:17 2018
13// Update Count     : 85
14//
15
16#pragma once
17
18#include <string>                                                                               // for string
19
20#include "Common/ScopedMap.h"                                                   // for ScopedMap
21#include "ParserTypes.h"
22#include "parser.hh"                                                                    // for IDENTIFIER, TYPEDEFname, TYPEGENname
23
24class TypedefTable {
25        typedef ScopedMap< std::string, int > KindTable;
26        KindTable kindTable;   
27  public:
28        ~TypedefTable();
29
30        bool exists( const std::string & identifier );
31        int isKind( const std::string & identifier ) const;
32        void makeTypedef( const std::string & name, int kind = TYPEDEFname );
33        void addToScope( const std::string & identifier, int kind, const char * );
34        void addToEnclosingScope( const std::string & identifier, int kind, const char * );
35
36        void enterScope();
37        void leaveScope();
38
39        void print( void ) const;
40}; // TypedefTable
41
42// Local Variables: //
43// tab-width: 4 //
44// mode: c++ //
45// compile-command: "make install" //
46// End: //
Note: See TracBrowser for help on using the repository browser.