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.h | 26 +++++++++++++------------- 1 file changed, 13 insertions(+), 13 deletions(-) (limited to 'src/parser.h') diff --git a/src/parser.h b/src/parser.h index a925188..f4c4a74 100644 --- a/src/parser.h +++ b/src/parser.h @@ -1,7 +1,7 @@ #ifndef BU_PARSER_H #define BU_PARSER_H -#include "bu/fstring.h" +#include "bu/string.h" #include "bu/list.h" #include "bu/array.h" #include "bu/hash.h" @@ -43,7 +43,7 @@ namespace Bu void parse(); void setRootNonTerminal( int iRoot ); - void setRootNonTerminal( const Bu::FString &sRoot ); + void setRootNonTerminal( const Bu::String &sRoot ); typedef Bu::Signal1 Reduction; @@ -87,17 +87,17 @@ namespace Bu bool bCanSkip; }; - int addNonTerminal( const Bu::FString &sName, NonTerminal &nt ); - int addNonTerminal( const Bu::FString &sName ); - void setNonTerminal( const Bu::FString &sName, NonTerminal &nt ); - int getNonTerminalId( const Bu::FString &sName ); - bool hasNonTerminal( const Bu::FString &sName ); + int addNonTerminal( const Bu::String &sName, NonTerminal &nt ); + int addNonTerminal( const Bu::String &sName ); + void setNonTerminal( const Bu::String &sName, NonTerminal &nt ); + int getNonTerminalId( const Bu::String &sName ); + bool hasNonTerminal( const Bu::String &sName ); - int addReduction( const Bu::FString &sName, const Reduction &r ); - int addReduction( const Bu::FString &sName ); - void setReduction( const Bu::FString &sName, const Reduction &r ); - int getReductionId( const Bu::FString &sName ); - bool hasReduction( const Bu::FString &sName ); + int addReduction( const Bu::String &sName, const Reduction &r ); + int addReduction( const Bu::String &sName ); + void setReduction( const Bu::String &sName, const Reduction &r ); + int getReductionId( const Bu::String &sName ); + bool hasReduction( const Bu::String &sName ); private: bool selectProduction( int iNt, Lexer::Token *ptCur ); @@ -108,7 +108,7 @@ namespace Bu typedef Bu::List TokenStack; typedef Bu::List StateStack; typedef Bu::Array ReductionArray; - typedef Bu::Hash NameIndexHash; + typedef Bu::Hash NameIndexHash; typedef Bu::Array NonTerminalArray; LexerStack sLexer; -- cgit v1.2.3