our
$VERSION
= 0.001_000;
our
hashref
$properties
= {};
our
string_hashref_method
$ast_to_rperl__generate
=
sub
{
(
my
object
$self
,
my
string_hashref
$modes
) =
@_
;
my
string_hashref
$rperl_source_group
= {
PMC
=>
q{}
};
my
string_hashref
$rperl_source_subgroup
;
if
( (
ref
$self
) ne
'Expression_127'
) {
die
RPerl::Parser::rperl_rule__replace(
'ERROR ECVGEASRP00, CODE GENERATOR, ABSTRACT SYNTAX TO RPERL: grammar rule '
. (
ref
$self
)
.
' found where Expression_127 expected, dying'
)
.
"\n"
;
}
my
object
$variable
=
$self
->{children}->[0];
my
string
$thin_arrow_name
=
$self
->{children}->[1];
my
string
$left_paren
=
$self
->{children}->[2];
my
object
$arguments_optional
=
$self
->{children}->[3];
my
string
$right_paren
=
$self
->{children}->[4];
$rperl_source_subgroup
=
$variable
->ast_to_rperl__generate(
$modes
);
RPerl::Generator::source_group_append(
$rperl_source_group
,
$rperl_source_subgroup
);
$rperl_source_group
->{PMC} .=
$thin_arrow_name
.
$left_paren
;
if
(
exists
$arguments_optional
->{children}->[0] ) {
$rperl_source_subgroup
=
$arguments_optional
->{children}->[0]
->ast_to_rperl__generate(
$modes
);
RPerl::Generator::source_group_append(
$rperl_source_group
,
$rperl_source_subgroup
);
}
$rperl_source_group
->{PMC} .=
$right_paren
;
return
$rperl_source_group
;
};
our
string_hashref_method
$ast_to_cpp__generate__CPPOPS_PERLTYPES
=
sub
{
(
my
object
$self
,
my
string_hashref
$modes
) =
@_
;
my
string_hashref
$cpp_source_group
= {
CPP
=>
q{// <<< RP::O::E::SC::MC __DUMMY_SOURCE_CODE CPPOPS_PERLTYPES >>>}
.
"\n"
};
return
$cpp_source_group
;
};
our
string_hashref_method
$ast_to_cpp__generate__CPPOPS_CPPTYPES
=
sub
{
(
my
object
$self
,
my
string_hashref
$modes
) =
@_
;
my
string_hashref
$cpp_source_group
= {
CPP
=>
q{// <<< RP::O::E::SC::MC __DUMMY_SOURCE_CODE CPPOPS_CPPTYPES >>>}
.
"\n"
};
return
$cpp_source_group
;
};
1;