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