aboutsummaryrefslogtreecommitdiff
path: root/src/parser.cpp
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--src/parser.cpp22
1 files changed, 11 insertions, 11 deletions
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 )
172 iRootNonTerminal = iRoot; 172 iRootNonTerminal = iRoot;
173} 173}
174 174
175void Bu::Parser::setRootNonTerminal( const Bu::FString &sRoot ) 175void Bu::Parser::setRootNonTerminal( const Bu::String &sRoot )
176{ 176{
177 setRootNonTerminal( hNonTerminalName.get( sRoot ) ); 177 setRootNonTerminal( hNonTerminalName.get( sRoot ) );
178} 178}
179 179
180int Bu::Parser::addNonTerminal( const Bu::FString &sName, NonTerminal &nt ) 180int Bu::Parser::addNonTerminal( const Bu::String &sName, NonTerminal &nt )
181{ 181{
182 int iId = aNonTerminal.getSize(); 182 int iId = aNonTerminal.getSize();
183 aNonTerminal.append( nt ); 183 aNonTerminal.append( nt );
@@ -186,7 +186,7 @@ int Bu::Parser::addNonTerminal( const Bu::FString &sName, NonTerminal &nt )
186 return iId; 186 return iId;
187} 187}
188 188
189int Bu::Parser::addNonTerminal( const Bu::FString &sName ) 189int Bu::Parser::addNonTerminal( const Bu::String &sName )
190{ 190{
191 int iId = aNonTerminal.getSize(); 191 int iId = aNonTerminal.getSize();
192 aNonTerminal.append( NonTerminal() ); 192 aNonTerminal.append( NonTerminal() );
@@ -195,22 +195,22 @@ int Bu::Parser::addNonTerminal( const Bu::FString &sName )
195 return iId; 195 return iId;
196} 196}
197 197
198void Bu::Parser::setNonTerminal( const Bu::FString &sName, NonTerminal &nt ) 198void Bu::Parser::setNonTerminal( const Bu::String &sName, NonTerminal &nt )
199{ 199{
200 aNonTerminal[hNonTerminalName.get(sName)] = nt; 200 aNonTerminal[hNonTerminalName.get(sName)] = nt;
201} 201}
202 202
203int Bu::Parser::getNonTerminalId( const Bu::FString &sName ) 203int Bu::Parser::getNonTerminalId( const Bu::String &sName )
204{ 204{
205 return hNonTerminalName.get( sName ); 205 return hNonTerminalName.get( sName );
206} 206}
207 207
208bool Bu::Parser::hasNonTerminal( const Bu::FString &sName ) 208bool Bu::Parser::hasNonTerminal( const Bu::String &sName )
209{ 209{
210 return hNonTerminalName.has( sName ); 210 return hNonTerminalName.has( sName );
211} 211}
212 212
213int Bu::Parser::addReduction( const Bu::FString &sName, const Reduction &r ) 213int Bu::Parser::addReduction( const Bu::String &sName, const Reduction &r )
214{ 214{
215 int iId = aReduction.getSize(); 215 int iId = aReduction.getSize();
216 aReduction.append( r ); 216 aReduction.append( r );
@@ -218,7 +218,7 @@ int Bu::Parser::addReduction( const Bu::FString &sName, const Reduction &r )
218 return iId; 218 return iId;
219} 219}
220 220
221int Bu::Parser::addReduction( const Bu::FString &sName ) 221int Bu::Parser::addReduction( const Bu::String &sName )
222{ 222{
223 int iId = aReduction.getSize(); 223 int iId = aReduction.getSize();
224 aReduction.append( Reduction() ); 224 aReduction.append( Reduction() );
@@ -226,17 +226,17 @@ int Bu::Parser::addReduction( const Bu::FString &sName )
226 return iId; 226 return iId;
227} 227}
228 228
229void Bu::Parser::setReduction( const Bu::FString &sName, const Reduction &r ) 229void Bu::Parser::setReduction( const Bu::String &sName, const Reduction &r )
230{ 230{
231 aReduction[hReductionName.get(sName)] = r; 231 aReduction[hReductionName.get(sName)] = r;
232} 232}
233 233
234int Bu::Parser::getReductionId( const Bu::FString &sName ) 234int Bu::Parser::getReductionId( const Bu::String &sName )
235{ 235{
236 return hReductionName.get( sName ); 236 return hReductionName.get( sName );
237} 237}
238 238
239bool Bu::Parser::hasReduction( const Bu::FString &sName ) 239bool Bu::Parser::hasReduction( const Bu::String &sName )
240{ 240{
241 return hReductionName.has( sName ); 241 return hReductionName.has( sName );
242} 242}