1 //===-- ParserInternals.h - Definitions internal to the parser --*- C++ -*-===//
3 // The LLVM Compiler Infrastructure
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.
8 //===----------------------------------------------------------------------===//
10 // This header file defines the variables that are shared between the lexer,
11 // the parser, and the main program.
13 //===----------------------------------------------------------------------===//
15 #ifndef PARSER_INTERNALS_H
16 #define PARSER_INTERNALS_H
21 // Global variables exported from the lexer...
23 extern std::string CurFileName;
24 extern std::string Textin;
25 extern int Upgradelineno;
26 extern std::istream* LexInput;
29 void UpgradeAssembly(const std::string & infile, std::istream& in, std::ostream &out);
31 // Globals exported by the parser...
32 extern char* Upgradetext;
33 extern int Upgradeleng;
35 int yyerror(const char *ErrorMsg) ;