📄 lexicon.h.svn-base
字号:
/*************************************************************************** * Copyright (C) 2007 by Orivaldo Vieira Santana Jr orivajr@dcc.ufba.br * * * * This program is free software; you can redistribute it and/or modify * * it under the terms of the GNU General Public License as published by * * the Free Software Foundation; either version 2 of the License, or * * (at your option) any later version. * * * * This program is distributed in the hope that it will be useful, * * but WITHOUT ANY WARRANTY; without even the implied warranty of * * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * * GNU General Public License for more details. * * * * You should have received a copy of the GNU General Public License * * along with this program; if not, write to the * * Free Software Foundation, Inc., * * 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. * ***************************************************************************//*! \file Lexicon.h<pre><b>File:</b> Lexicon.h<b>Project:</b> Robocup Soccer Simulation Team: MecaTeam<b>Authors:</b> Orivaldo Santana Jr <orivajr@dcc.ufba.br><b>Created:</b> 10/09/2006<b>Last Revision:</b> $ID$<b>Contents:</b> Este arquivo cont閙 a declara玢o da classe Lexicon. Esta classe faz a an醠ise l閤ica do analisador de regras do sistema baseado em conhecimento do agente. Ela foi projetada como trabalho da discicplina MAT153 - Compiladores - ministrada pelo professor Luciano Barreto.<hr size=2><h2><b>Changes</b></h2><b>Date</b> <b>Author</b> <b>Comment</b>19/09/2006 Orivaldo Vieira Documenta玢o</pre>*/#ifndef LEXICON_H#define LEXICON_H#include <iostream>#include <fstream>#include <string>#include <map>#include <vector>#include "TokenTypes.h"#include "Token.h"#include "Rule.h"using namespace std;struct lessThenStr{ bool operator()(string s1, string s2) { return s1 < s2; }}; /*!< estrura contendo uma fun玢o de avalia玢o utilizada pelo map */typedef map <string, TokenT, lessThenStr> tokensValuesT; /*!< tipo usado para associar um token string a token enumera玢o*//*! Esta clase implementa um analisador l閤ico para o arquivo de regras. Este analisador gera um lista de tokens, palavras extra韉as das regras, que
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -