The RoboCup Client Parser Logo
Main Page   Namespace List   Class Hierarchy   Alphabetical List   Compound List   File List   Compound Members   File Members  

rcclexer.h

00001 // -*-c++-*-
00002 
00003 /***************************************************************************
00004                                  rcclexer.h
00005                          Lexer for RoboCup language
00006                              -------------------
00007     begin                : 24-JUNE-2002
00008     copyright            : (C) 2002 by Tom Howard
00009     email                : tomhoward@users.sf.net
00010  ***************************************************************************/
00011 
00012 /***************************************************************************
00013  *                                                                         *
00014  *   This program is free software; you can redistribute it and/or modify  *
00015  *   it under the terms of the GNU LGPL as published by the Free Software  *
00016  *   Foundation; either version 2 of the License, or (at your option) any  *
00017  *   later version.                                                        *
00018  *                                                                         *
00019  ***************************************************************************/
00020 
00021 #ifndef RCCLEXER_H
00022 #define RCCLEXER_H
00023 
00024 #undef yyFlexLexer
00025 #define yyFlexLexer RCCFlexLexer
00026 #include <rcssbase/FlexLexer.h>
00027 
00028 #include <string>
00029 
00030 #include "rccparser.h"
00031 
00032 class RCCLexer
00033   : public yyFlexLexer
00034 {
00035 public:
00036     typedef rcc::Holder Holder;
00037 
00038     virtual
00039     int
00040     yylex();
00041 
00042     inline
00043     int
00044     lex( Holder& holder )
00045     { M_lexed_val = &holder; return yylex(); }
00046 private:
00047     Holder* M_lexed_val;
00048 };
00049 
00050 namespace rcc
00051 {
00052     class Lexer
00053         : public RCCLexer
00054     {
00055     };
00056 }
00057 
00058 #endif

Make a PayPal donation - it's fast, easy and secure!

©2001-2003 Tom Howard. All Rights Reserved.

Suggestions? Email the Webmaster!

This document was created with
Doxygen

SourceForge.net Logo

Powered by MySQL

Powered by Perl