/[ff3d]/ff3d/language/POVLexer.cpp
ViewVC logotype

Diff of /ff3d/language/POVLexer.cpp

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1.1.1.1 by delpinux, Mon Feb 17 16:32:52 2003 UTC revision 1.2 by delpinux, Mon May 5 19:03:32 2003 UTC
# Line 81  POVLexer::POVLexer(std::istream& In, Line 81  POVLexer::POVLexer(std::istream& In,
81  /*! This function returns the token associated to the name "word" if it  /*! This function returns the token associated to the name "word" if it
82    corresponds to a Keyword, else, it returns "-1".    corresponds to a Keyword, else, it returns "-1".
83  */  */
84  const int POVLexer::isKeyword(const std::string& word)  int POVLexer::isKeyword(const std::string& word)
85  {  {
86    KeyWordList::iterator theKeyWord    KeyWordList::iterator theKeyWord
87      = __keyWordList.find(word.c_str());      = __keyWordList.find(word.c_str());
# Line 99  const int POVLexer::isKeyword(const std: Line 99  const int POVLexer::isKeyword(const std:
99  }  }
100    
101  //! The lexer function.  //! The lexer function.
102  const int POVLexer::yylex()  int POVLexer::yylex()
103  {  {
104    char readChar = ' ';    char readChar = ' ';
105    in.unsetf(std::ios::skipws);    in.unsetf(std::ios::skipws);

Legend:
Removed from v.1.1.1.1  
changed lines
  Added in v.1.2

savannah-hackers-public@gnu.org
ViewVC Help
Powered by ViewVC 1.1.26