ASTNode::ASTNodeHasher,
ASTNode::ASTNodeEqual> ASTNodeMultiSet;
- //external parser table for declared symbols.
- //FIXME: move to a more appropriate place
- extern ASTNodeSet _parser_symbol_table;
/***************************************************************************
* Class BeevMgr. This holds all "global" variables for the system, such as
%{
-/********************************************************************
- * AUTHORS: Vijay Ganesh
- *
- * BEGIN DATE: November, 2005
- *
- * LICENSE: Please view LICENSE file in the home dir of this Program
- ********************************************************************/
-// -*- c++ -*-
-
-#include "../AST/AST.h"
+ // -*- c++ -*-
+ /********************************************************************
+ * AUTHORS: Vijay Ganesh
+ *
+ * BEGIN DATE: November, 2005
+ *
+ * LICENSE: Please view LICENSE file in the home dir of this Program
+ ********************************************************************/
+
+#include "parser.h"
+
using namespace std;
using namespace BEEV;
// Suppress the bogus warning suppression in bison (it generates
// compile error)
#undef __GNUC_MINOR__
-
+
#define YYLTYPE_IS_TRIVIAL 1
#define YYMAXDEPTH 10485760
#define YYERROR_VERBOSE 1
#define YYPARSE_PARAM AssertsQuery
- extern int cvclex(void);
- extern char* yytext;
- extern int cvclineno;
- int yyerror(const char *s) {
- cout << "syntax error: line " << cvclineno << "\n" << s << endl;
- FatalError("");
- return YY_EXIT_FAILURE;
- };
-%}
+ extern int cvclex(void);
+ extern char* yytext;
+ extern int cvclineno;
+ int yyerror(const char *s) {
+ cout << "syntax error: line " << cvclineno << "\n" << s << endl;
+ FatalError("");
+ return YY_EXIT_FAILURE;
+ };
+ %}
%union {
--- /dev/null
+// -*- c++ -*-
+/********************************************************************
+ * AUTHORS: Vijay Ganesh
+ *
+ * BEGIN DATE: November, 2005
+ *
+ * LICENSE: Please view LICENSE file in the home dir of this Program
+ ********************************************************************/
+
+#ifndef PARSER_H
+#define PARSER_H
+#include "../AST/AST.h"
+namespace BEEV
+{
+ //external parser table for declared symbols.
+ extern ASTNodeSet _parser_symbol_table;
+
+}; //end of namespace
+#endif