One Paragraph of project description goes here
These instructions will get you a copy of the project up and running on your local machine for development and testing purposes. See deployment for notes on how to deploy the project on a live system.
#Heading 1 ##Heading 2 ###Heading 3 ####Heading 4 #####Heading 5 ######Heading 6
Paragraph
This is an ad-hoc Java-to-Dart translator originally written on two (admittedly long) evenings.
See http://sma.github.io/stuff/java2dartweb/java2dartweb.html for a demo.
Note: It doesn't support the complete Java grammar specification and cannot translate everything. It only translates syntax and does not attempt to translate Java library classes and methods to Dart equivalents (with the exception of String.charAt
and StringBuffer.append
). You will have to make changes to the resulting Dart code. It does not support anonymous inner classes.
However, I was able to successfully convert a 7000+ line command line application with only minimal fixes in 30 minutes.
Key/Command | Description |
---|---|
Tab | Auto-complete files and folder names |
Ctrl + A | Go to the beginning of the line you are currently typing on |
Ctrl + E | Go to the end of the line you are currently typing on |
Ctrl + U | Clear the line before the cursor |
Ctrl + K | Clear the line after the cursor |
Ctrl + W | Delete the word before the cursor |
Ctrl + T | Swap the last two characters before the cursor |
# built application files | |
*.apk | |
*.ap_ | |
# files for the dex VM | |
*.dex | |
# Java class files | |
*.class |
function onOpen() { | |
// Add a menu with some items, some separators, and a sub-menu. | |
DocumentApp.getUi().createMenu('Custom') | |
.addItem('Show Document Map', 'showDocumentMap') | |
.addToUi(); | |
} | |
function showDocumentMap() { | |
// based on http://stackoverflow.com/a/12244248/1027723 |
using System; | |
namespace Supercoder.Tools | |
{ | |
public class Platform | |
{ | |
public static string PlatformString() | |
{ | |
const string msg1 = "This is a Windows operating system."; | |
const string msg2 = "This is a Unix operating system."; |
#EXTM3U | |
#EXTINF:0,Bassoradio | |
http://83.145.201.209:8000/ | |
#EXTINF:0,Classic Radio | |
http://217.30.180.242:8000/clsr.ogg | |
#EXTINF:0,Groove FM | |
http://217.30.180.242:8000/gvfm.ogg |