64fad70f714dd93ffbf82063296d0dbb4a7fcd80
[oota-llvm.git] / tools / llvm-upgrade / ParserInternals.h
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>
19 #include <istream>
20
21 // Global variables exported from the lexer...
22
23 extern std::string CurFileName;
24 extern std::string Textin;
25 extern int Upgradelineno;
26 extern std::istream* LexInput;
27
28
29 void UpgradeAssembly(const std::string & infile, std::istream& in, std::ostream &out);
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