-
Notifications
You must be signed in to change notification settings - Fork 34
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Implement Operator, String Repeat CPPOPS_CPPTYPES #95
Comments
@jsxs0 This is your issue for GSoC Pull Request Challenge, Round 1! :-) Please use this comment thread for all discussions related to this Pull Request Challenge. |
I've installed the necessary software(s) required on my machine, but I'm still not able to open it/ execute it. |
Please Jasveen remember that this is a test to evaluate your capability to
act on your proposal for GSoC should we decide to request a slot for it. It
would be the best if you would treat it as such.
El mié., 10 abr. 2019 19:12, Jasveen <notifications@github.com> escribió:
… I've installed the necessary software(s) required on my machine, but I'm
still not able to open it/ execute it.
PS. I'm using MS Windows 10
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
<#95 (comment)>, or mute
the thread
<https://github.com/notifications/unsubscribe-auth/AAAB9IqQkkfqRRKMetbz7wVMoAXLOYZQks5vfg1jgaJpZM4clCVK>
.
|
@jsxs0 |
Hi mentors, I'm working over it. Do not mark me inactive. Cause of my exams, I've been highly preoccupied but I'm still figuring out a way through it. |
Alright, so I've got started with RPerl, and the issue of course. So, our main intention here is to implement an operator, for the purpose of string repeat with the help of CPPOPS_CPPTYPES.
Yielding us: RPerl Operators.
gives us:
These were all my approaches to the given assignment, now talking of this with respect to the the string repeat operator, rperl/Repeat.pm: |
Mr. Sandral, It seems that you might be on the right track, but it will be impossible to know until you begin actually writing & running code. |
Working over it. |
My basic logic of string repeat is correct. Whenever I'm trying to run it in normal Perl compiler with a simple logic, I'm getting the output, correctly, but whenever this RPerl module is being compiled, it shows this error (from quite a lot of time, now):
I've installed the RPerl module, and it is in the PATH of the rest RPerl files. It does not even compile, you see. |
And, for the ++ on a string: my $x = "rperl"; $x++; $x++; $x--; Just wanted to know, are these approaches correct, is this the correct way to get going with it? |
@jsxs0 RPerl is now available on Docker, I suggest you start there. |
Alright, I'd be doing that. |
Please read the documentation: https://github.com/wbraswell/rperl/blob/master/docs/devs_getting_started.txt |
I'm not able to use Docker for Windows. |
Hey Jasveen if you want to setup or install rperl correctly, i can give you my install_notes which was written while installing rperl in my system. |
Thanks, @shpsi! Sure, let us catch up over it, over the emails. |
@jsxs0 If you are unable to use Docker, then you can try creating a full virtual machine using VirtualBox or VMware, then install real Xubuntu 16.04 Linux inside the VM. If you are unable to use native Linux or Docker or a virtual machine, then I can't help you. |
The install notes from @shpsi are for Linux installed inside a virtual machine. You are much better off using Docker, which does it all for you. And also there are ongoing issues with many other people's software on CPAN at this time, which makes installation tricky or impossible. |
@jsxs0 |
Implement the ast_to_cpp__generate__CPPOPS_CPPTYPES() C++ code generation subroutine for the string repeat operator:
https://github.com/wbraswell/rperl/blob/master/lib/RPerl/Operation/Expression/Operator/String/Repeat.pm
Ensure all tests continue to pass in both the existing PERLOPS_PERLTYPES mode as well as the new CPPOPS_CPPTYPES mode:
https://github.com/wbraswell/rperl/tree/master/lib/RPerl/Test/Operator07StringRepeat
Use the string concatenation operator as reference:
https://github.com/wbraswell/rperl/blob/master/lib/RPerl/Operation/Expression/Operator/String/Concatenate.pm
Use the "getting started" documentation for step-by-step instructions:
https://github.com/wbraswell/rperl/blob/master/docs/devs_getting_started.txt
The text was updated successfully, but these errors were encountered: