47 lines
1.2 KiB
C++
47 lines
1.2 KiB
C++
// Filename: lexerDefs.h
|
|
// Created by: drose (17Jan99)
|
|
//
|
|
////////////////////////////////////////////////////////////////////
|
|
//
|
|
// PANDA 3D SOFTWARE
|
|
// Copyright (c) 2001 - 2004, Disney Enterprises, Inc. All rights reserved
|
|
//
|
|
// All use of this software is subject to the terms of the Panda 3d
|
|
// Software license. You should have received a copy of this license
|
|
// along with this source code; you will also find a current copy of
|
|
// the license at http://etc.cmu.edu/panda3d/docs/license/ .
|
|
//
|
|
// To contact the maintainers of this program write to
|
|
// panda3d-general@lists.sourceforge.net .
|
|
//
|
|
////////////////////////////////////////////////////////////////////
|
|
|
|
#ifndef LEXER_H
|
|
#define LEXER_H
|
|
|
|
#include "pandabase.h"
|
|
|
|
#include "typedef.h"
|
|
|
|
#include <string>
|
|
|
|
void egg_init_lexer(istream &in, const string &filename);
|
|
void egg_start_group_body();
|
|
void egg_start_texture_body();
|
|
void egg_start_primitive_body();
|
|
int egg_error_count();
|
|
int egg_warning_count();
|
|
|
|
void eggyyerror(const string &msg);
|
|
void eggyyerror(ostringstream &strm);
|
|
|
|
void eggyywarning(const string &msg);
|
|
void eggyywarning(ostringstream &strm);
|
|
|
|
int eggyylex();
|
|
|
|
// always read from files
|
|
#define YY_NEVER_INTERACTIVE 1
|
|
|
|
#endif
|