pseudo icon indicating copy to clipboard operation
pseudo copied to clipboard

transpile algorithms/libs to idiomatic JS, Go, C#, Ruby

Results 8 pseudo issues
Sort by recently updated
recently updated
newest added

# Issue Type [x] Bug (Typo) # Steps to Replicate and Expected Behaviour - Examine docs/ast.md, pseudo/__init__.py and observe `translateable`, however expect to see `translatable`. - Examine README.md and observe...

Is it merely the usual reason (time/money), or have you, to some extent, lost confidence in the ideas? I think many of the 625 people who starred this project, including...

To replicate: ``` >cat add_two_arrays.py def add_two_arrays(arrayA, arrayB): return arrayA + arrayB print(add_two_arrays([1,2,3], [4,5,6])) >pseudo-python add_two_arrays.py OK saved pseudo ast as add_two_arrays.pseudo.yaml >pseudo add_two_arrays.pseudo.yaml go Traceback (most recent call last):...

... this would allow for some of porting from Go to Python, etc,...

Input ``` python class Barney: def __init__(self): self.status = 'not ok' barney = Barney() barney.status = "ok" print(barney.status) ``` Output ``` ruby class Barney def initialize @status = 'not ok'...

In Python the `not` operator has [low precedence](https://docs.python.org/3/reference/expressions.html#operator-precedence). In JS the `!` operator has [high precedence](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Operators/Operator_Precedence#Table). To be on the safe side, generators should wrap all operators in parens by...

bug

I've been playing around with similar ideas recently and was considering what kind of information you'd need to encode the same logic that could be transpiled to Java as well...