source: src/Parser/ParserTypes.h @ ac10576

ADTaaron-thesisarm-ehast-experimentalcleanup-dtorsdeferred_resndemanglerenumforall-pointer-decayjacob/cs343-translationjenkins-sandboxnew-astnew-ast-unique-exprnew-envno_listpersistent-indexerpthread-emulationqualifiedEnumresolv-newwith_gc
Last change on this file since ac10576 was 44f44617, checked in by Thierry Delisle <tdelisle@…>, 7 years ago

Fix build for 16.04

  • Property mode set to 100644
File size: 1.1 KB
Line 
1//
2// Cforall Version 1.0.0 Copyright (C) 2015 University of Waterloo
3//
4// The contents of this file are covered under the licence agreement in the
5// file "LICENCE" distributed with Cforall.
6//
7// parser.hh --
8//
9// Author           : Peter A. Buhr
10// Created On       : Sat Sep 22 08:58:10 2001
11// Last Modified By : Peter A. Buhr
12// Last Modified On : Wed Jun 28 22:10:17 2017
13// Update Count     : 349
14//
15
16#ifndef PARSER_HH
17#define PARSER_HH
18
19int yylex();
20void yyerror( const char * );
21
22#include <string>
23#include "ParseNode.h"
24// External declarations for information sharing between lexer and scanner
25class TypedefTable;
26extern TypedefTable typedefTable;
27
28// current location in the input
29extern int yylineno;
30extern char *yyfilename;
31
32struct Location {
33    char *file;
34    int line;
35}; // Location
36
37struct Token {
38    std::string *str;                                                                   // must be pointer as used in union
39    Location loc;
40
41    operator std::string *() { return str; }
42}; // Token
43
44#endif // PARSER_HH
45
46// Local Variables: //
47// tab-width: 4 //
48// mode: c++ //
49// compile-command: "make install" //
50// End: //
Note: See TracBrowser for help on using the repository browser.