rperl icon indicating copy to clipboard operation
rperl copied to clipboard

Implement Operator, Bitwise OrXor CPPOPS_CPPTYPES

Open wbraswell opened this issue 6 years ago • 7 comments

Implement the ast_to_cpp__generate__CPPOPS_CPPTYPES() C++ code generation subroutine for the "bitwise or/xor" operator:

https://github.com/wbraswell/rperl/blob/master/lib/RPerl/Operation/Expression/Operator/Bitwise/OrXor.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/Operator14BitwiseOrXor

Use the "logical or/xor" and "logical and" operators as reference:

https://github.com/wbraswell/rperl/blob/master/lib/RPerl/Operation/Expression/Operator/Logical/OrXor.pm

https://github.com/wbraswell/rperl/blob/master/lib/RPerl/Operation/Expression/Operator/Logical/And.pm

Use the "getting started" documentation for step-by-step instructions:

https://github.com/wbraswell/rperl/blob/master/docs/devs_getting_started.txt

Also, follow along with the Pull Request Challenge for the "bitwise and" operator:

https://github.com/wbraswell/rperl/issues/96

wbraswell avatar Apr 14 '19 01:04 wbraswell

@DrEuler Hello Mr. Rishabh Tewari,

Thank you for your interest in the Google Summer of Code, I'm sorry you were unable to complete your official proposal before the deadline, and I am very glad that you are still interested in participating in an unofficial capacity!

I hereby offer you the opportunity to work on this issue as your unofficial Pull Request Challenge, Round 1! :-)

(I'm sure Mr. Shiv Singh @shpsi will not mind if you take one of his numerous RPerl operators.)

Please use this comment thread for all discussions related to this Pull Request Challenge.

wbraswell avatar Apr 14 '19 01:04 wbraswell

@DrEuler In addition to all of the information I have provided in the main first comment above, please also carefully review this comment regarding upgrades to the Logical And operator, and how to run tests:

https://github.com/wbraswell/rperl/issues/96#issuecomment-482896899

I may be making similar upgrades to the Logical Or/Xor operator soon, if so I will let you know. Meanwhile, you can use the newly-upgraded Logical And operator as reference.

wbraswell avatar Apr 14 '19 01:04 wbraswell

@faradaym @edsfocci This is an open task!

wbraswell avatar Apr 20 '19 20:04 wbraswell

@faradaym Thank you for joining us during Day 1 of the Cloud Hackathon! Please do not hesitate to contact me here on GitHub or on IRC if you have any questions about how to implement the Bitwise OrXor operator...

server: irc.perl.org channel: #perl11 nickname: willthechill

wbraswell avatar Apr 22 '19 23:04 wbraswell

@faradaym You can now install RPerl using Docker: $ docker run -it wbraswell/rperl_github

wbraswell avatar Apr 27 '19 17:04 wbraswell

Please @DrEuler @faradaym and @edsfocci . i am picking this for now (if you have already started coding, let me know before end of 2nd May)

shpsi avatar May 01 '19 19:05 shpsi

https://github.com/wbraswell/rperl/pull/99/commits/4f95e9dc78e2693bf6bf06adc16b2e586a5c7f93

Sorry! I coded this part and will be testing this soon.You guys can pick some other task from @wbraswell .

shpsi avatar May 01 '19 22:05 shpsi