commit | e410da37aa970865c457df880b39cb06c1343845 | [log] [tgz] |
---|---|---|
author | Tako Schotanus <tako@ceylon-lang.org> | Wed Jan 18 12:38:56 2012 +0100 |
committer | Tako Schotanus <tako@ceylon-lang.org> | Wed Jan 18 12:38:56 2012 +0100 |
tree | 6048b4dea002a5f42ddc6c8d228b4cb67ff351a9 | |
parent | f32e743b95eadc029cecd9acbea4016ba27720f5 [diff] |
Some changes in the handling of overloaded classes and methods
The content of this repository is released under the GPL v2 + Classpath Exception as provided in the LICENSE file that accompanied this code.
By submitting a "pull request" or otherwise contributing to this repository, you agree to license your contribution under the license mentioned above.
This software uses a number of other works, the license terms of which are documented in the NOTICE file that accompanied this code.
Directory structure:
bin
- the Ceylon tools binarieslib
- compile/runtime dependenciessrc
- the Ceylon compiler backend sourceslangtools
- the OpenJDK Javac compiler sourcestest-src
- the Ceylon compiler backend unit testssamples
- a few sample Ceylon programsFirst you must make sure you have built the ceylon.language and ceylon-spec projects. Go into ceylon.language first and run
ant clean publish
Then go into ceylon-spec and run
ant clean publish
To build and test the compiler return to ceylon-compiler and run
ant clean publish
To run the tests type
ant test
Note that some of the tests currently fail. See more info in README.tests.
Once built, the compiler lives in this jars:
~/ceylon/repo/com/redhat/ceylon/compiler/java/0.1/com.redhat.ceylon.compiler.java-0.1.jar
If you want to build and run the Ceylon compiler in Eclipse then please see README.eclipse for setup instructions.
The compiler can be run as follows:
bin/ceylonc -src samples -out build/ceylon-cars samples/helloworld.ceylon
The -src argument to the compiler is required in order for the compiler to figure out each class's full name. It is a colon-separated path, much like javac's -sourcepath argument.
You can add -rep arguments to add module repositories. Note that this is currently limited to local folders.
Right now the Ceylon runner doesn't support module repositories so you have to give it a valid classpath (this will be fixed soon):
bin/ceylon -cp build/ceylon-cars/unversioned/default_module-unversioned.car helloworld
The ceylondoc tool can be run as follows:
bin/ceylond -out api-docs -src ../ceylon.language/languagesrc/current