Version 0.8.0 Alpha

Quickly produce robust, reusable client-side code for any browser.

Easily interface with existing Javascript using external classes.

Utilize any server-side framework available to Javascript.

Portal to the Milescript open-source development community.

Developer Log
RSS Feed  
05/02/2008 Milescript Invited to Ajax Experience 2008
01/18/2008 Using the Milescript Eclipse Plugin
01/17/2008 Milescript 0.8.0 Alpha Released
12/19/2007 Milescript Updates Coming Soon
10/16/2007 New Version of Milescript Compiler Binaries Available

What is Milescript?
Milescript is a strongly-typed language similar to C# and Java, but which compiles to Javascript. Milescript works with any legacy Javascript and any server framework available to Javascript, and provides many additional features.

The 'Parent' class to the right, together with the 'Child' class below, demonstrate specialized generics, function virtualization, inheritance and abstract classes.

When compiled, linked against LibDom and run, with Child as the 'main class,' these two classes alert "Hello World!"
1
package com.milescript.test;

2
3
import com.milescript.dom.*;

4
5
public abstract class Parent {

6
protected Array<String> messages =

7
new Array<String>();

8
9
protected void assembleMessage(){

10
messages.push("Hello ");

11
}

12
13
protected void alertMessage(){

14
assembleMessage();

15
String finalMessage = "";

16
for(String message in messages)

17
finalMessage += message;

18
window.alert(finalMessage);

19
}

20
}

1
package com.milescript.test;

2
3
public class Child extends Parent {

4
5
protected void assembleMessage(){

6
super.assembleMessage();

7
messages.push("World!");

8
}

9
10
public static void main() {

11
Child c = new Child();

12
c.alertMessage();

13
}

14
}


Eclipse Plugin Screenshot
What does Milescript do?
Milescript brings the robustness and structure of a high-level language to the client-side environment. It incorporates a set of tools which facilitate the development and distribution of Javascript programs.
  • Compile time error checking
  • Integrated unit testing
  • Automatically generated documentation
  • Distributable libraries which can provide Javascript hooks
  • External classes for interfacing with legacy Javascript
  • Code Condensation to reduce download size
  • Provides Generic Types, Logger API, and much more...
Interested? Look around our site to learn more; and welcome to the Milescript community.
Features
  • Unit Testing
  • Code Condensation
  • Generated Documentation
  • Distributable Libraries
  • External Libraries
  • Eclipse Plugin
Get Milescript
Code Condensation
The Compiler can generate condensed Javascript code which is significantly smaller than the original source.

Documentation
The Compiler generates inline documentation to XML. You can transform the XML to HTML or other formats via XSLT.

An XSLT is provided by default to generate HTML documentation. This XSLT can be modified to create custom tags.

Unit Testing
The Compiler utilizes the CrossCheck open source project to provide browser-less unit testing.

Units tests can be run in the Eclipse JUnit testing framework so you can see the green bar of programming happiness.

External Libraries
Several Javascript libraries have already been wrapped using Milescript external classes.
  • Ext 2.0
  • Dojo 0.4.3 Charting
  • Google Base
We are busy wrapping more Javascript libraries and we welcome any contributions to the project.

Contribute

Google Groups
Subscribe to the Milescript Google Group
Email:
Visit this group

About | Contact
Milescript is an open source project released under the Apache 2 license.
Copyright © 2007, Point5u, LLC. All rights reserved. Images, layout, text, and other design elements may not be used without permission. The Milescript brand, logo, and slogan are trademarks of Point5u, LLC and may not be used in any way without permission.