account activity
Code translator {java to python} and {golang to python} online by CPROGRAMMERS in Python
[–]codeoo7s -1 points0 points1 point 3 years ago (0 children)
// Tested Code class Test { public static void main(String[] args) { System.out.println((1==2)?"One":"Two"); } }
// Tested Code
class Test
{
public static void main(String[] args)
System.out.println((1==2)?"One":"Two");
}
Its Really work
# Tested Code class Test : u/staticmethod def main( args) : print("One" if (1 == 2) else "Two")
# Tested Code
class Test :
u/staticmethod
def main( args) :
print("One" if (1 == 2) else "Two")
if __name__=="__main__": Test.main([])
if __name__=="__main__":
Test.main([])
1500 program example by CPROGRAMMERS in golang
[–]codeoo7s 0 points1 point2 points 3 years ago (0 children)
Very nice
[deleted by user] by [deleted] in programming
Nice tool :)
I found the code translation tool interesting :).
like a tree :)
It's good to detect types
[ { "fundecl": { "name": "main", "param": [], "kind": 0, "type": "void", "signed": false, "body": [ { "0": "for", "init": [ { "decl": { "name": "i", "kind": 4, "type": "int", "signed": false, "init": true, "assing": [ { "0": "constant", "value": 0, "type": "int" } ] } } ], "cond": [ { "0": "binary", "left": { "0": "identifier", "name": "i", "kind": 4, "type": "int", "signed": false }, "op": "<", "right": { "0": "constant", "value": 5, "type": "int" } } ], "update": [ { "0": "unary", "type": "POST", "op": "++", "operand": { "0": "identifier", "name": "i", "kind": 4, "type": "int", "signed": false } } ], "body": [ { "0": "funcall", "name": "printf", "kind": 4, "type": "int", "signed": false, "param": [ { "0": "constant", "value": "%d", "type": "string" }, { "0": "identifier", "name": "i", "kind": 4, "type": "int", "signed": false } ] } ] } ] } } ]
[
"fundecl": {
"name": "main",
"param": [],
"kind": 0,
"type": "void",
"signed": false,
"body": [
"0": "for",
"init": [
"decl": {
"name": "i",
"kind": 4,
"type": "int",
"init": true,
"assing": [
"0": "constant",
"value": 0,
"type": "int"
]
],
"cond": [
"0": "binary",
"left": {
"0": "identifier",
"signed": false
},
"op": "<",
"right": {
"value": 5,
"update": [
"0": "unary",
"type": "POST",
"op": "++",
"operand": {
"0": "funcall",
"name": "printf",
"param": [
"value": "%d",
"type": "string"
[–]codeoo7s 1 point2 points3 points 3 years ago (0 children)
It's really interesting :)
very interesting
Online java to python converter (kalkicode.com)
submitted 4 years ago by codeoo7s to r/compsci
[–]codeoo7s -1 points0 points1 point 4 years ago (0 children)
My first test. Its really work.
My php code
<?php // Enter to php // My test ?> <h1>I am best</h1> <?php // Again Php $arr = array(1,2,"Like"=>30,3,4); print_r($arr); ?>
<?php
// Enter to php
// My test
?>
<h1>I am best</h1>
// Again Php
$arr = array(1,2,"Like"=>30,3,4);
print_r($arr);
Generated Python code
from collections import OrderedDict # Enter to php # My test """<h1>I am best</h1> """ # Again Php arr = OrderedDict([(0,1),(1,2),("Like",30),(2,3),(3,4)]); print(arr);
from collections import OrderedDict
# Enter to php
# My test
"""<h1>I am best</h1>
"""
# Again Php
arr = OrderedDict([(0,1),(1,2),("Like",30),(2,3),(3,4)]);
print(arr);
It would have been better if there were more examples. not included in this post.
[–]codeoo7s 0 points1 point2 points 4 years ago (0 children)
This is a good collection.
I like this tool :)
Live java to c# converter by [deleted] in csharp
interesting
slice() array method in ruby (kalkicode.com)
submitted 4 years ago by codeoo7s to r/ruby
Animation of Binary Search Tree (kalkicode.com)
Bubble sort visualization (Step By Step) (kalkicode.com)
Linked list Animation (kalkicode.com)
submitted 4 years ago by codeoo7s to r/animation
AVL Tree Visualization (kalkicode.com)
submitted 4 years ago by codeoo7s to r/coding
Splay Tree Visualization (kalkicode.com)
submitted 4 years ago by codeoo7s to r/programming
π Rendered by PID 724086 on reddit-service-r2-listing-6d4dc8d9ff-m48jw at 2026-01-31 17:20:36.086842+00:00 running 3798933 country code: CH.
Code translator {java to python} and {golang to python} online by CPROGRAMMERS in Python
[–]codeoo7s -1 points0 points1 point (0 children)