javascript - Get Transcrypt to output readable files -


i'm trying translate following test code transcrypt:

class a(object):     def __init__(self):         self.a = 5 

the output 2447 line file:

$ transcrypt test.py -fb -e 6 $ wc -l __javascript__/test.js 2447 __javascript__/test.js 

how can transcrypt generate sane output input? thanks

file test.js has got whole runtime lib in it. @ module file instead, it's called test.mod.js , has code 1 module. can reduce size further using -xc compiler switch.

if e.g. take at:

http://www.transcrypt.org/live/turtle_site/turtle_site.html

and change program, e.g. change 'red' 'pink', , press [compile , run], module file thing that's reloaded. that's why response fast.


Comments

Popular posts from this blog

android - InAppBilling registering BroadcastReceiver in AndroidManifest -

python Tkinter Capturing keyboard events save as one single string -

sql server - Why does Linq-to-SQL add unnecessary COUNT()? -