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
20 // Global variables exported from the lexer...
22 extern std::string CurFileName;
23 extern std::string Textin;
24 extern int Upgradelineno;
26 // functions exported from the lexer
27 void set_scan_bytes (const char * str, size_t len);
29 void UpgradeAssembly(const std::string & infile, std::ostream &out);
31 // Globals exported by the parser...
32 extern char* Upgradetext;
33 extern int Upgradeleng;
35 int yyerror(const char *ErrorMsg) ;