code-translation Questions

3

Solved

Is there a way to transpile TypeScript in memory with Node? I would like to be able to get the generated JavaScript in memory.
Dramshop asked 25/2, 2015 at 21:20

8

Given a set of Java source code files, how can I compile them into one or more JavaScript files that can be used with hand-crafted JavaScript? GWT is one option, but every example I've seen so far...
Aluminothermy asked 13/1, 2009 at 19:1

2

Solved

Pythran is a Python-to-C++ compiler for a subset of Python that includes partial numpy support. It acts a little like Numba and Cython—you annotate a function’s arguments, and then it takes ove...
Hoopes asked 5/8, 2019 at 9:47

4

I would like to transform java source code at compile time just before passing the source code to the compiler. In other word I would like to create a preprocessor able to transform "bla bla bla"...
Longeron asked 7/5, 2012 at 13:58

3

Solved

I need to write a program that will translate imperative code to pure functional style. I'm not worried about I/O - I have some solutions in mind for that - but I do need to deal with heap objects ...

2

I want to understand how a transpiler works. The best to do this is to write one ofcourse. I've been looking into a few resources to understand how this works, theoretically. And i understand the ...

3

Solved

I have recently had the need to create an ANTLR language grammar for the purpose of a transpiler (Converting one scripting language to another). It occurs to me that Google Translate does a pretty ...

3

Solved

Just came across a .do file that I need to translate into R because I don't have a Stata license; my Stata is rusty, so can someone confirm that the code is doing what I think it is? For reproduci...
Archenemy asked 22/6, 2015 at 19:13

6

Solved

Is there a software converter out there that can automatically convert this python code to PHP? #!/usr/bin/python import math def calcNumEntropyBits(s): if len(s) <= 0: return 0.0 symC...
Tumefaction asked 7/11, 2010 at 5:18

2

I have a numerical library in FORTRAN (I believe FORTRAN IV) and I want to convert it to Python code. I want real source code that I can import on any Python virtual machine --- Windows, MacOS-X, L...
Mayhew asked 14/8, 2013 at 3:3

2

I'm using a javascript build environment that supports es6 modules (using es6-module-transpiler) so you can simply import stuff across different files. Now I got a third party library that I'd lik...
Awad asked 15/9, 2014 at 4:20

8

Solved

I have inherited significant amounts of Groovy code, and I have found it difficult to maintain for several reasons: Very often it's hard to tell what's the type of a variable. Corollary: it's ea...
Embodiment asked 14/3, 2011 at 17:27

2

Solved

For the asm emulator i'm trying to write to convert ASM code to equivalent working code just working.. best code would be the one that can either be done in one line or two-three the most, don't ca...
Iou asked 14/10, 2011 at 1:28

6

Solved

What tool to use to convert C source code into Go source code? For example, if the C code contains: struct Node { struct Node *left, *right; void *data; }; char charAt(char *s, int i) { ...
Gavial asked 9/1, 2012 at 13:6

3

Is there any way to automatically convert Ruby code to Lua? My question is: What kinds of tools exist for this purpose? What are their limitations? One primary goal of this is to be able to by...
Consortium asked 7/11, 2012 at 2:18

2

Apologies for this kind of question, but I can't find an answer on You Might Not Need jQuery or anywhere else online and I'd really like to know: What is the pure JavaScript equivalent of jQ...
Monney asked 19/7, 2016 at 22:57

1

Solved

I'm trying to replicate in R a bit of code someone else wrote in Stata, and have hit a wall trying to predict the behavior of their p-RNG. Their code has this snippet: set seed 123456 Unfortuna...
Longdistance asked 23/3, 2016 at 17:33

14

Is there an effective tool to convert C# code to Java code?
Yvonneyvonner asked 17/9, 2008 at 1:4

1

Solved

error message after transpiling code below: [tsc] > C:/Workarea/MyFirstAngular/src/enum/msg.ts(35,33): error TS2349: Cannot invoke an expression whose type lacks a call signature. Failed to com...
Starnes asked 11/6, 2015 at 7:50

3

Solved

Is there an automatic converter of javascript code to Dart? Or is it too soon?
Garlan asked 10/10, 2011 at 23:0

4

Solved

Is there a relatively quick program out there to accomplish at least the basics of this? Just a few regexes? I'm willing to do some manual conversion, but this is a pretty big set of scripts....
Handicap asked 27/2, 2010 at 7:43

5

Solved

I have an app written in Scala and some of my team members want a Java version of it. It is a demo app to use another API written in Scala, and they want a Java version of the app to be able ...
Plath asked 26/3, 2012 at 22:28

3

Solved

I am looking for an automatic code translator for Matlab to Python. I downloaded and installed LiberMate but it is not documented anywhere and I wasn't able to make it work. Has anybody deal...
Mareld asked 17/9, 2010 at 11:10

1

Solved

I'm learning Haskell after Python, and I thought that making a function that finds all the items in a sequence that aren't in another (where both sequences have elements that can be compared) would...
Overtrade asked 19/3, 2014 at 16:12

2

Solved

As far as I know, do blocks in Haskell are just some kind of syntactic sugar for monadic bind operators. For example, one could convert main = do f <- readFile "foo.txt" print f print "Finish...
Trollop asked 22/2, 2014 at 16:14

© 2022 - 2024 — McMap. All rights reserved.