ADT
aaron-thesis
arm-eh
ast-experimental
cleanup-dtors
ctor
deferred_resn
demangler
enum
forall-pointer-decay
gc_noraii
jacob/cs343-translation
jenkins-sandbox
memory
new-ast
new-ast-unique-expr
new-env
no_list
persistent-indexer
pthread-emulation
qualifiedEnum
resolv-new
string
with_gc
Last change
on this file since db82596 was 843054c2, checked in by Peter A. Buhr <pabuhr@…>, 10 years ago |
licencing: seventh groups of files
|
-
Property mode
set to
100644
|
File size:
1.0 KB
|
Rev | Line | |
---|
[b87a5ed] | 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 | // lex.h --
|
---|
| 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 : Sat May 16 12:18:48 2015
|
---|
| 13 | // Update Count : 334
|
---|
| 14 | //
|
---|
[51b73452] | 15 |
|
---|
| 16 | #ifndef PARSER_LEX_H
|
---|
| 17 | #define PARSER_LEX_H
|
---|
| 18 |
|
---|
| 19 | int yylex();
|
---|
| 20 | void yyerror(char *);
|
---|
| 21 |
|
---|
[b87a5ed] | 22 | // External declarations for information sharing between lexer and scanner
|
---|
[51b73452] | 23 | #include "TypedefTable.h"
|
---|
| 24 | extern TypedefTable typedefTable;
|
---|
| 25 |
|
---|
[b87a5ed] | 26 | // current location in the input
|
---|
[51b73452] | 27 | extern int yylineno;
|
---|
| 28 | extern char *yyfilename;
|
---|
| 29 |
|
---|
[b87a5ed] | 30 | struct Location {
|
---|
| 31 | char *file;
|
---|
| 32 | int line;
|
---|
[51b73452] | 33 | };
|
---|
| 34 |
|
---|
[b87a5ed] | 35 | class Token {
|
---|
| 36 | public:
|
---|
| 37 | std::string *str;
|
---|
| 38 | Location loc;
|
---|
[51b73452] | 39 |
|
---|
[b87a5ed] | 40 | operator std::string *() { return str; }
|
---|
[51b73452] | 41 | };
|
---|
| 42 |
|
---|
[b87a5ed] | 43 | #endif // PARSER_LEX_H
|
---|
| 44 |
|
---|
| 45 | // Local Variables: //
|
---|
| 46 | // fill-column: 110 //
|
---|
| 47 | // tab-width: 4 //
|
---|
| 48 | // mode: c++ //
|
---|
| 49 | // compile-command: "make install" //
|
---|
| 50 | // End: //
|
---|
Note:
See
TracBrowser
for help on using the repository browser.