Reid Spencer | e7c3c60 | 2006-11-30 06:36:44 +0000 | [diff] [blame] | 1 | //===-- ParserInternals.h - Definitions internal to the parser --*- C++ -*-===// |
| 2 | // |
| 3 | // The LLVM Compiler Infrastructure |
| 4 | // |
| 5 | // This file was developed by Reid Spencer and is distributed under |
| 6 | // the University of Illinois Open Source License. See LICENSE.TXT for details. |
| 7 | // |
| 8 | //===----------------------------------------------------------------------===// |
| 9 | // |
| 10 | // This header file defines the variables that are shared between the lexer, |
| 11 | // the parser, and the main program. |
| 12 | // |
| 13 | //===----------------------------------------------------------------------===// |
| 14 | |
| 15 | #ifndef PARSER_INTERNALS_H |
| 16 | #define PARSER_INTERNALS_H |
| 17 | |
| 18 | #include <string> |
Reid Spencer | 96839be | 2006-11-30 16:50:26 +0000 | [diff] [blame] | 19 | #include <istream> |
Reid Spencer | e7c3c60 | 2006-11-30 06:36:44 +0000 | [diff] [blame] | 20 | |
| 21 | // Global variables exported from the lexer... |
| 22 | |
| 23 | extern std::string CurFileName; |
| 24 | extern std::string Textin; |
| 25 | extern int Upgradelineno; |
Reid Spencer | 96839be | 2006-11-30 16:50:26 +0000 | [diff] [blame] | 26 | extern std::istream* LexInput; |
Reid Spencer | e7c3c60 | 2006-11-30 06:36:44 +0000 | [diff] [blame] | 27 | |
Reid Spencer | e7c3c60 | 2006-11-30 06:36:44 +0000 | [diff] [blame] | 28 | |
Reid Spencer | 96839be | 2006-11-30 16:50:26 +0000 | [diff] [blame] | 29 | void UpgradeAssembly(const std::string & infile, std::istream& in, std::ostream &out); |
Reid Spencer | e7c3c60 | 2006-11-30 06:36:44 +0000 | [diff] [blame] | 30 | |
| 31 | // Globals exported by the parser... |
| 32 | extern char* Upgradetext; |
| 33 | extern int Upgradeleng; |
| 34 | |
| 35 | int yyerror(const char *ErrorMsg) ; |
| 36 | |
| 37 | #endif |