Update of /cvsroot/cpptool/rfta/src/rfta
In directory sc8-pr-cvs1:/tmp/cvs-serv663/src/rfta
Modified Files:
ParserTools.cpp
Log Message:
* added expression skipper and makeComposite().
Index: ParserTools.cpp
===================================================================
RCS file: /cvsroot/cpptool/rfta/src/rfta/ParserTools.cpp,v
retrieving revision 1.5
retrieving revision 1.6
diff -C2 -d -r1.5 -r1.6
*** ParserTools.cpp 29 Apr 2003 09:46:10 -0000 1.5
--- ParserTools.cpp 3 May 2003 17:39:18 -0000 1.6
***************
*** 55,59 ****
}
! bool RFTAPARSER_API
tryReadIdentifier( Xtl::CStringEnumerator &enumerator, Xtl::CStringView& identifier )
{
--- 55,74 ----
}
!
! Xtl::CStringView
! readNextIdentifier( Xtl::CStringEnumerator &enumerator )
! {
! Xtl::CStringEnumerator identifierStart = enumerator;
! if ( !isValidIdentifierFirstLetter( *enumerator ) )
! throw ParseError( "expected identifier", enumerator );
!
! while ( isIdentifierLetter( *enumerator ) )
! ++enumerator;
!
! return Xtl::CStringView( identifierStart, enumerator );
! }
!
!
! bool
tryReadIdentifier( Xtl::CStringEnumerator &enumerator, Xtl::CStringView& identifier )
{
***************
*** 75,79 ****
}
! std::string RFTAPARSER_API
tryReadKeyword( Xtl::CStringEnumerator &enumerator,
std::set< std::string > keywords )
--- 90,94 ----
}
! std::string
tryReadKeyword( Xtl::CStringEnumerator &enumerator,
std::set< std::string > keywords )
|