File: parser_decls.h

package info (click to toggle)
guavac 1.0-5
  • links: PTS
  • area: main
  • in suites: hamm, slink
  • size: 2,716 kB
  • ctags: 2,357
  • sloc: cpp: 19,765; yacc: 1,629; makefile: 492; lex: 348; ansic: 284; sh: 280
file content (36 lines) | stat: -rw-r--r-- 883 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
// Copyright (c) 1995  David Engberg  All rights reserved
// $Id: parser_decls.h,v 1.3 1997/06/13 18:19:46 geppetto Exp $
#ifndef _parser_decls_h
#define _parser_decls_h

#include "string.h"
#include "JavaFieldSignature.h"
#include "VariableDeclaration.h"
#include <deque>
class CJavaAccessFlags;
class CJavaTypeSignature;
class CExpression;
class CStatement;
class CCompoundStatement;
class CCompiler;
class CCatchClause;

// These are global declarations needed for the lexer and parser files.

void InitializeParser(const string& inString, CCompiler* compilerAlias);
void FinishParser();

void InitializeLexer(const string& tokenizeString);
void FinishLexer();

extern char* yytext;
extern int yylineno;
extern bool yydeprecated;
int yylex();
int yyparse();
void yyerror(const char*);

typedef deque<CExpression*> ExpressionList;
typedef deque<CStatement*> StatementList;

#endif