x


Can I convert unityscript to boo?

Hiya all. Ive seen this fantastic snippet converter http://codeconverter.sharpdevelop.net/SnippetConverter.aspx which is OK for c# But as all UnityScript is converted to boo in its compilation process I was wondering if anyone was aware of a way to convert unityscript to boo? I imagine there should be a perfect converter (as its part of the US compilation process).

I come from a C/C++ background - have used JS/C# - but really dont like typing so much {(unnecesary,syntax)}; Having used python - I'm not going back :-) In many ways - I am starting to like boo more than python!

more ▼

asked Oct 20 '11 at 05:35 PM

chozabu gravatar image

chozabu
16 1 1 1

(comments are locked)
10|3000 characters needed characters left

1 answer: sort voted first

You can manually convert it by hand, like me. I've found no converter that'll work with unityscript to boo or js to boo. I've found unityscript to C# but often you have to fix up the C# code before even testing it, then you could take the produced C# code after fixing it up, and using the C# to boo converter.

more ▼

answered Jan 28 '12 at 06:07 PM

robbiek gravatar image

robbiek
126 3 4 6

Yes, reading and re-writing has been my method of choice (often comes out somewhat smaller looking too :) But I'm sure there must be an accurate automated way using unity (if not then there should be an easy way to make it so - assuming I am correct about the inhouse conversion of JS/US to Boo)

Jan 28 '12 at 06:18 PM chozabu

Not sure what you mean about "assuming I am correct about the inhouse conversion of JS/US to Boo". US is written in Boo, but it really doesn't matter what it's written in, since it's no easier to convert between them in an automated way than it is for any other languages.

Jan 30 '12 at 08:54 PM Eric5h5

I've read in quite a few places That us/js is converted to boo at compile time, then from boo to CLI.

Jan 30 '12 at 08:56 PM chozabu

I've never read that. US has features that Boo doesn't have, so it couldn't possibly work that way.

Jan 30 '12 at 09:04 PM Eric5h5
(comments are locked)
10|3000 characters needed characters left
Your answer
toggle preview:

Up to 2 attachments (including images) can be used with a maximum of 524.3 kB each and 1.0 MB total.

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here

By RSS:

Answers

Answers and Comments

Topics:

x3570
x303
x71
x7

asked: Oct 20 '11 at 05:35 PM

Seen: 1128 times

Last Updated: Jan 30 '12 at 09:04 PM