jarble / transpiler

A universal translator for programming languages
https://jarble.github.io/transpiler
MIT License
472 stars 44 forks source link

ReferenceError: TypeInference is not defined. #1

Open KoolenDasheppi opened 8 years ago

KoolenDasheppi commented 8 years ago

It's in the title, help please? This looks really cool, and I really want to try it!

jarble commented 8 years ago

Universal-transpiler is compatible with SWI-Prolog. Which Prolog interpreter are you using?

KoolenDasheppi commented 8 years ago

Oh, I was using the javascript version, I'll try the Prolog version now though. :|

EDIT: SWI-Prolog gives me this error:

Warning: c:/users/coolj/documents/universal-transpiler-master/universal-transpiler-master/universal-transpiler.pl:25: Initialization goal failed

jarble commented 8 years ago

The latest version works correctly on Windows and Ubuntu. Which operating system are you using?

KoolenDasheppi commented 8 years ago

I am using Windows 10 currently.

jarble commented 8 years ago

I am using the latest version on Windows 10 and it runs correctly. Is input.txt saved in the same folder as universal-transpiler.pl on your machine?

KoolenDasheppi commented 8 years ago

Yes it is saved in the same directory... Maybe it's because I am on the Fast ring of the Insider Program???

EDIT: I am looking back at that error and it looks like it says there error is on line 25, which is "initialization"? I don't know anything about Prolog... so yeah.

jarble commented 8 years ago

You might be using an outdated version of universal-transpiler. Try using the latest version: when you open universal-transpiler.pl it should show a prompt like this one:

Edit the source code in input.txt, type the name of the the input language, and press Enter:
KoolenDasheppi commented 8 years ago

That's exactly what it says, and I just downloaded the day I submitted this issue... :\

EDIT: I just downloaded latest version, and now it just freezes when I give it the output language... How long does it take usually?

jarble commented 8 years ago

I made another update to the system now; the latest version will print the output in several languages after the console is opened.

KoolenDasheppi commented 8 years ago

I just redownloaded it, and now it's back to the initialization goal failed error.

jarble commented 8 years ago

You need to extract the folder in order to use universal-transpiler. Did you extract the files before opening universal-transpiler.pl?

KoolenDasheppi commented 8 years ago

Yes, it's extracted. I think my computer is just really crappy or something... :\