source: translator/Parser.old/lex.h @ 1db2c5be

ADTaaron-thesisarm-ehast-experimentalcleanup-dtorsctordeferred_resndemanglerenumforall-pointer-decaygc_noraiijacob/cs343-translationjenkins-sandboxmemorynew-astnew-ast-unique-exprnew-envno_listpersistent-indexerpthread-emulationqualifiedEnumresolv-newstringwith_gc
Last change on this file since 1db2c5be was 51b7345, checked in by Peter A. Buhr <pabuhr@…>, 10 years ago

initial commit

  • Property mode set to 100644
File size: 612 bytes
Line 
1/*
2 * This file is part of the Cforall project
3 *
4 * $Id: lex.h,v 1.1 2002/02/06 16:17:30 rcbilson Exp $
5 *
6 * Prototypes that enable Roskind's c5.y to compile with g++
7 * Richard Bilson       5 Jan 2001
8 *
9 */
10
11#ifndef PARSER_LEX_H
12#define PARSER_LEX_H
13
14int yylex();
15void yyerror(char *);
16extern int yylineno;
17extern char *yyfilename;
18extern "C" {
19#include <malloc.h>
20}
21
22struct token
23{
24  std::string *str;
25  char *filename;
26  int lineno;
27};
28
29/* External declarations for information sharing between lexer and scanner */
30#include "TypedefTable.h"
31extern TypedefTable typedefTable;
32
33#endif // ifndef PARSER_LEX_H
Note: See TracBrowser for help on using the repository browser.