2014-07-23 22:39:29 +02:00
|
|
|
#ifndef IVL_compiler_H
|
|
|
|
|
#define IVL_compiler_H
|
2010-12-13 05:02:18 +01:00
|
|
|
/*
|
2014-07-23 22:39:29 +02:00
|
|
|
* Copyright (c) 2011-2014 Stephen Williams (steve@icarus.com)
|
2010-12-13 05:02:18 +01:00
|
|
|
*
|
|
|
|
|
* This source code is free software; you can redistribute it
|
|
|
|
|
* and/or modify it in source code form under the terms of the GNU
|
|
|
|
|
* General Public License as published by the Free Software
|
|
|
|
|
* Foundation; either version 2 of the License, or (at your option)
|
|
|
|
|
* any later version.
|
|
|
|
|
*
|
|
|
|
|
* This program is distributed in the hope that it will be useful,
|
|
|
|
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
|
|
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
|
|
|
* GNU General Public License for more details.
|
|
|
|
|
*
|
|
|
|
|
* You should have received a copy of the GNU General Public License
|
|
|
|
|
* along with this program; if not, write to the Free Software
|
2012-08-29 03:41:23 +02:00
|
|
|
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
|
2010-12-13 05:02:18 +01:00
|
|
|
*/
|
|
|
|
|
|
2011-01-03 07:30:09 +01:00
|
|
|
# include "StringHeap.h"
|
2012-09-01 23:51:04 +02:00
|
|
|
# include <fstream>
|
2011-01-03 07:30:09 +01:00
|
|
|
|
2010-12-13 05:02:18 +01:00
|
|
|
const int GN_KEYWORD_2008 = 0x0001;
|
|
|
|
|
|
2011-01-03 08:38:08 +01:00
|
|
|
// TRUE if processing is supposed to dump progress to stderr.
|
|
|
|
|
extern bool verbose_flag;
|
|
|
|
|
|
2012-09-01 23:51:04 +02:00
|
|
|
extern bool debug_elaboration;
|
|
|
|
|
extern std::ofstream debug_log_file;
|
|
|
|
|
|
2016-02-24 10:14:50 +01:00
|
|
|
// Stores strings created by the lexer
|
2011-01-03 07:30:09 +01:00
|
|
|
extern StringHeapLex lex_strings;
|
|
|
|
|
|
2016-02-24 10:14:50 +01:00
|
|
|
// Stores file names
|
2011-01-06 18:27:30 +01:00
|
|
|
extern StringHeapLex filename_strings;
|
|
|
|
|
|
2016-03-16 06:27:03 +01:00
|
|
|
// Stores generated strings (e.g. scope names)
|
2016-02-24 10:14:50 +01:00
|
|
|
extern StringHeapLex gen_strings;
|
|
|
|
|
|
2014-07-23 22:39:29 +02:00
|
|
|
#endif /* IVL_compiler_H */
|