mirror of
https://github.com/pragma-/pbot.git
synced 2024-11-26 22:09:26 +01:00
CGrammar: Do not use "result of the expression" for single terms
This commit is contained in:
parent
4520be1a2c
commit
fab1986a3e
@ -13,7 +13,7 @@ use warnings;
|
|||||||
# These are set automatically by the build/commit script
|
# These are set automatically by the build/commit script
|
||||||
use constant {
|
use constant {
|
||||||
BUILD_NAME => "PBot",
|
BUILD_NAME => "PBot",
|
||||||
BUILD_REVISION => 722,
|
BUILD_REVISION => 723,
|
||||||
BUILD_DATE => "2014-07-09",
|
BUILD_DATE => "2014-07-09",
|
||||||
};
|
};
|
||||||
|
|
||||||
|
@ -623,10 +623,11 @@ rel_add_mul_shift_expression:
|
|||||||
{ $return = $item{cast_expression}; }
|
{ $return = $item{cast_expression}; }
|
||||||
| <leftop: cast_expression rel_mul_add_ex_op cast_expression>
|
| <leftop: cast_expression rel_mul_add_ex_op cast_expression>
|
||||||
{
|
{
|
||||||
if($arg{context} =~ /expression/) {
|
my $expression = join('', @{$item[1]});
|
||||||
|
if($arg{context} =~ /expression/ and $expression =~ / /) {
|
||||||
$return = 'the result of the expression ';
|
$return = 'the result of the expression ';
|
||||||
}
|
}
|
||||||
$return .= join('' , @{$item[1]});
|
$return .= $expression;
|
||||||
}
|
}
|
||||||
|
|
||||||
closure:
|
closure:
|
||||||
|
Loading…
Reference in New Issue
Block a user