From 954462475587328dff6a86a6f37b178736abf09b Mon Sep 17 00:00:00 2001 From: Jon Renner Date: Fri, 27 Dec 2013 15:06:19 +0800 Subject: [PATCH] add Readme to kotlin-stdlib-gen explaining how to run code generation --- libraries/tools/kotlin-stdlib-gen/ReadMe.md | 11 +++++++++++ 1 file changed, 11 insertions(+) create mode 100644 libraries/tools/kotlin-stdlib-gen/ReadMe.md diff --git a/libraries/tools/kotlin-stdlib-gen/ReadMe.md b/libraries/tools/kotlin-stdlib-gen/ReadMe.md new file mode 100644 index 00000000000..29e4552e806 --- /dev/null +++ b/libraries/tools/kotlin-stdlib-gen/ReadMe.md @@ -0,0 +1,11 @@ +## Code Generation for Standard Library + +Some of the code in the standard library is created by code generation based on templates. +For example, many Array methods need to be implemented separately for Array, ByteArray, ShortArray, IntArray, etc. + +To run the code generator from a kotlin checkout + + cd libraries/tools/kotlin-stdlib-gen + mvn compile exec:java + +This then runs the [GenerateStandardLib.kt](https://github.com/JetBrains/kotlin/blob/master/libraries/tools/kotlin-stdlib-gen/src/generators/GenerateStandardLib.kt) script to create the source from the files for java.lang.Iterable and java.util.Collection etc.