summaryrefslogtreecommitdiffstats
path: root/src/parser.yy
diff options
context:
space:
mode:
authorTimothy Pearson <kb9vqf@pearsoncomputing.net>2011-12-15 15:29:00 -0600
committerTimothy Pearson <kb9vqf@pearsoncomputing.net>2011-12-15 15:29:00 -0600
commitb877728731c783fbd7370935a6733c78c25d5ce2 (patch)
tree93c019e65513df453864f3434bff0da826213ffd /src/parser.yy
parentd4eecf4afe4ddf66f4d00e1bcdab14f8d21655fb (diff)
downloadabakus-b877728731c783fbd7370935a6733c78c25d5ce2.tar.gz
abakus-b877728731c783fbd7370935a6733c78c25d5ce2.zip
Rename a number of old tq methods that are no longer tq specific
Diffstat (limited to 'src/parser.yy')
-rw-r--r--src/parser.yy30
1 files changed, 15 insertions, 15 deletions
diff --git a/src/parser.yy b/src/parser.yy
index b24dafb..6978cc1 100644
--- a/src/parser.yy
+++ b/src/parser.yy
@@ -100,7 +100,7 @@ S: error '=' {
// Can't assign to a function.
S: FUNC '=' {
- TQString s(i18n("You can't assign to function %1").tqarg($1->name()));
+ TQString s(i18n("You can't assign to function %1").arg($1->name()));
Result::setLastResult(s);
YYABORT;
@@ -116,14 +116,14 @@ ASSIGN: '(' { --gCheckIdents; } IDENT ')' '=' {
// since normally functions and variables with the same name can coexist, but
// I don't want to duplicate code all over the place.
S: SET DERIV {
- TQString s(i18n("Function %1 is built-in and cannot be overridden.").tqarg("deriv"));
+ TQString s(i18n("Function %1 is built-in and cannot be overridden.").arg("deriv"));
Result::setLastResult(s);
YYABORT;
}
S: DERIV '=' {
- TQString s(i18n("Function %1 is built-in and cannot be overridden.").tqarg("deriv"));
+ TQString s(i18n("Function %1 is built-in and cannot be overridden.").arg("deriv"));
Result::setLastResult(s);
YYABORT;
@@ -139,7 +139,7 @@ S: SET FUNC ASSIGN EXP {
FunctionManager *manager = FunctionManager::instance();
if(manager->isFunction(funcName) && !manager->isFunctionUserDefined(funcName)) {
- TQString s(i18n("Function %1 is built-in and cannot be overridden.").tqarg(funcName));
+ TQString s(i18n("Function %1 is built-in and cannot be overridden.").arg(funcName));
Result::setLastResult(s);
YYABORT;
@@ -150,7 +150,7 @@ S: SET FUNC ASSIGN EXP {
BaseFunction *newFn = new UserDefinedFunction(funcName.ascii(), $4);
if(!manager->addFunction(newFn, ident)) {
- TQString s(i18n("Unable to define function %1 because it is recursive.").tqarg(funcName));
+ TQString s(i18n("Unable to define function %1 because it is recursive.").arg(funcName));
Result::setLastResult(s);
YYABORT;
@@ -188,14 +188,14 @@ S: REMOVE FUNC '(' ')' {
// Can't remove an ident using remove-func syntax.
S: REMOVE IDENT '(' ')' {
// This is an error
- Result::setLastResult(Result(i18n("Function %1 is not defined.").tqarg($2->name())));
+ Result::setLastResult(Result(i18n("Function %1 is not defined.").arg($2->name())));
YYABORT;
}
// This happens when the user tries to remove a function that's not defined.
S: REMOVE IDENT '(' IDENT ')' {
// This is an error
- Result::setLastResult(Result(i18n("Function %1 is not defined.").tqarg($2->name())));
+ Result::setLastResult(Result(i18n("Function %1 is not defined.").arg($2->name())));
YYABORT;
}
@@ -211,9 +211,9 @@ S: REMOVE IDENT {
else {
TQString s;
if(manager->isValueSet($2->name()))
- s = i18n("Can't remove predefined variable %1.").tqarg($2->name());
+ s = i18n("Can't remove predefined variable %1.").arg($2->name());
else
- s = i18n("Can't remove undefined variable %1.").tqarg($2->name());
+ s = i18n("Can't remove undefined variable %1.").arg($2->name());
Result::setLastResult(s);
@@ -228,7 +228,7 @@ S: SET IDENT '=' EXP {
if($2->name() == "pi" && $4->value() == Abakus::number_t("3.0"))
Result::setLastResult(i18n("This isn't Indiana, you can't just change pi"));
else
- Result::setLastResult(i18n("%1 is a constant").tqarg($2->name()));
+ Result::setLastResult(i18n("%1 is a constant").arg($2->name()));
YYABORT;
}
@@ -247,7 +247,7 @@ S: IDENT '=' EXP {
if($1->name() == "pi" && $3->value() == Abakus::number_t("3.0"))
Result::setLastResult(i18n("This isn't Indiana, you can't just change pi"));
else
- Result::setLastResult(i18n("%1 is a constant").tqarg($1->name()));
+ Result::setLastResult(i18n("%1 is a constant").arg($1->name()));
YYABORT;
}
@@ -259,13 +259,13 @@ S: IDENT '=' EXP {
}
S: NUMBER '=' {
- Result::setLastResult(i18n("Can't assign to %1").tqarg($1->value().toString()));
+ Result::setLastResult(i18n("Can't assign to %1").arg($1->value().toString()));
YYABORT;
}
// Can't call this as a function.
TERM: IDENT '(' {
- Result::setLastResult(i18n("%1 isn't a function (or operator expected)").tqarg($1->name()));
+ Result::setLastResult(i18n("%1 isn't a function (or operator expected)").arg($1->name()));
YYABORT;
}
@@ -351,7 +351,7 @@ TERM: NUMBER '(' EXP ')' {
TERM: NUMBER IDENT {
if(gCheckIdents > 0 && !ValueManager::instance()->isValueSet($2->name())) {
- Result::setLastResult(i18n("Unknown variable %1").tqarg($2->name()));
+ Result::setLastResult(i18n("Unknown variable %1").arg($2->name()));
YYABORT;
}
@@ -362,7 +362,7 @@ VALUE: IDENT {
if(gCheckIdents <= 0 || ValueManager::instance()->isValueSet($1->name()))
$$ = $1;
else {
- Result::setLastResult(i18n("Unknown variable %1").tqarg($1->name()));
+ Result::setLastResult(i18n("Unknown variable %1").arg($1->name()));
YYABORT;
}
}