From f5aca1a1b402bd7ebc944dc6e6fe65828d863365 Mon Sep 17 00:00:00 2001 From: Mike Buland Date: Thu, 20 Jan 2011 02:14:08 +0000 Subject: Bu::FString is now String, and there's a shell script to fix any other programs that were using fstring, I hope. --- src/parser.cpp | 22 +++++++++++----------- 1 file changed, 11 insertions(+), 11 deletions(-) (limited to 'src/parser.cpp') diff --git a/src/parser.cpp b/src/parser.cpp index 4ad4ff9..e46967c 100644 --- a/src/parser.cpp +++ b/src/parser.cpp @@ -172,12 +172,12 @@ void Bu::Parser::setRootNonTerminal( int iRoot ) iRootNonTerminal = iRoot; } -void Bu::Parser::setRootNonTerminal( const Bu::FString &sRoot ) +void Bu::Parser::setRootNonTerminal( const Bu::String &sRoot ) { setRootNonTerminal( hNonTerminalName.get( sRoot ) ); } -int Bu::Parser::addNonTerminal( const Bu::FString &sName, NonTerminal &nt ) +int Bu::Parser::addNonTerminal( const Bu::String &sName, NonTerminal &nt ) { int iId = aNonTerminal.getSize(); aNonTerminal.append( nt ); @@ -186,7 +186,7 @@ int Bu::Parser::addNonTerminal( const Bu::FString &sName, NonTerminal &nt ) return iId; } -int Bu::Parser::addNonTerminal( const Bu::FString &sName ) +int Bu::Parser::addNonTerminal( const Bu::String &sName ) { int iId = aNonTerminal.getSize(); aNonTerminal.append( NonTerminal() ); @@ -195,22 +195,22 @@ int Bu::Parser::addNonTerminal( const Bu::FString &sName ) return iId; } -void Bu::Parser::setNonTerminal( const Bu::FString &sName, NonTerminal &nt ) +void Bu::Parser::setNonTerminal( const Bu::String &sName, NonTerminal &nt ) { aNonTerminal[hNonTerminalName.get(sName)] = nt; } -int Bu::Parser::getNonTerminalId( const Bu::FString &sName ) +int Bu::Parser::getNonTerminalId( const Bu::String &sName ) { return hNonTerminalName.get( sName ); } -bool Bu::Parser::hasNonTerminal( const Bu::FString &sName ) +bool Bu::Parser::hasNonTerminal( const Bu::String &sName ) { return hNonTerminalName.has( sName ); } -int Bu::Parser::addReduction( const Bu::FString &sName, const Reduction &r ) +int Bu::Parser::addReduction( const Bu::String &sName, const Reduction &r ) { int iId = aReduction.getSize(); aReduction.append( r ); @@ -218,7 +218,7 @@ int Bu::Parser::addReduction( const Bu::FString &sName, const Reduction &r ) return iId; } -int Bu::Parser::addReduction( const Bu::FString &sName ) +int Bu::Parser::addReduction( const Bu::String &sName ) { int iId = aReduction.getSize(); aReduction.append( Reduction() ); @@ -226,17 +226,17 @@ int Bu::Parser::addReduction( const Bu::FString &sName ) return iId; } -void Bu::Parser::setReduction( const Bu::FString &sName, const Reduction &r ) +void Bu::Parser::setReduction( const Bu::String &sName, const Reduction &r ) { aReduction[hReductionName.get(sName)] = r; } -int Bu::Parser::getReductionId( const Bu::FString &sName ) +int Bu::Parser::getReductionId( const Bu::String &sName ) { return hReductionName.get( sName ); } -bool Bu::Parser::hasReduction( const Bu::FString &sName ) +bool Bu::Parser::hasReduction( const Bu::String &sName ) { return hReductionName.has( sName ); } -- cgit v1.2.3