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> |
| 19 | |
| 20 | // Global variables exported from the lexer... |
| 21 | |
| 22 | extern std::string CurFileName; |
| 23 | extern std::string Textin; |
| 24 | extern int Upgradelineno; |
| 25 | |
| 26 | // functions exported from the lexer |
| 27 | void set_scan_bytes (const char * str, size_t len); |
| 28 | |
| 29 | void UpgradeAssembly(const std::string & infile, 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 |