blob: 64fad70f714dd93ffbf82063296d0dbb4a7fcd80 [file] [log] [blame]
Reid Spencere7c3c602006-11-30 06:36:44 +00001//===-- 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 Spencer96839be2006-11-30 16:50:26 +000019#include <istream>
Reid Spencere7c3c602006-11-30 06:36:44 +000020
21// Global variables exported from the lexer...
22
23extern std::string CurFileName;
24extern std::string Textin;
25extern int Upgradelineno;
Reid Spencer96839be2006-11-30 16:50:26 +000026extern std::istream* LexInput;
Reid Spencere7c3c602006-11-30 06:36:44 +000027
Reid Spencere7c3c602006-11-30 06:36:44 +000028
Reid Spencer96839be2006-11-30 16:50:26 +000029void UpgradeAssembly(const std::string & infile, std::istream& in, std::ostream &out);
Reid Spencere7c3c602006-11-30 06:36:44 +000030
31// Globals exported by the parser...
32extern char* Upgradetext;
33extern int Upgradeleng;
34
35int yyerror(const char *ErrorMsg) ;
36
37#endif