Commit Graph

201 Commits

Author SHA1 Message Date
Stepan Koltsov 30e44fdc5f script parameters
still a lot of things to do
2012-05-28 20:31:29 +04:00
Svetlana Isakova 0bf65bfe1e get rid of JetPseudocodeTrace
and JetControlFlowDataTraceFactory
2012-05-28 12:09:44 +04:00
Nikolay Krasko e946a0f908 - Out of block modification strategy for Kotlin block expression
- Separate project analysis for IDEA needs: headers + bodies
2012-05-27 17:39:56 +04:00
Evgeny Gerashchenko ea36cf9fb0 Reverted all changes related to renaming jdkHeaders to altHeaders. 2012-05-23 17:05:09 +04:00
Stepan Koltsov 33a59ff5fe Name class
In the most places in frontend identifier is stored in Name class, was in String.
Name has two advantages over String:
* validation: you cannot accidentally create identifier with dot, for example
* readability: if you see String, you don't now whether it is
  identifier, fq name, jvm class name or something else

Name's disadvantage is (small) performance overhead. We have no value types in JVM.
2012-05-23 02:52:32 +04:00
Stepan Koltsov ecc4c484a6 move NameUtils, FqName into name subpackage 2012-05-23 02:52:30 +04:00
Stepan Koltsov 6063c01a1c command line script launcher
% ./bin/kotlin -script hello.ktscript
hello world

% cat hello.ktscript
fun hello(what: String) = println("hello $what")
hello("world")

Note it currently takes 8 seconds to evaluate hello world script.
2012-05-23 02:52:30 +04:00
Stepan Koltsov 5fc73a4cd4 parse kotlin scripts
http://confluence.jetbrains.net/display/~stepan.koltsov/REPL
2012-05-23 02:52:29 +04:00
Svetlana Isakova b63d3905f9 KT-1256 Error highlighting in IDE should be less annoying
#KT-1256 fixed
2012-05-22 18:23:51 +04:00
Stepan Koltsov 8623fba01b cli: store unused arguments 2012-05-22 00:02:56 +04:00
James Strachan cf6622b4fa added workaround to maven compiler bug; we may want to throw an exception though if its really a problem 2012-05-18 19:50:27 +01:00
pTalanov c8fe0080c7 Fix compilation for maven build 2012-05-16 17:43:12 +04:00
pTalanov a9af4960cb Introduce some convenience methods related to EcmaVersion 2012-05-15 22:20:13 +04:00
pTalanov b9b9e46275 Clean up and stylistic changes after merging in https://github.com/JetBrains/kotlin/pull/55 2012-05-15 22:20:11 +04:00
develar e0be72d5b5 http://devnet.jetbrains.net/thread/436214?tstart=0 2012-05-15 22:20:10 +04:00
Evgeny Gerashchenko 15f6e7403e Renamed jdkHeaders to altHeaders in all places where it makes sense. 2012-05-15 15:19:55 +04:00
Evgeny Gerashchenko 4ab2588cbd Made compiler aware of multiple alt-header paths. 2012-05-15 15:19:55 +04:00
pTalanov 869a8ab1ba Refactoring of K2JSTranslator and neighboring classes
Drop GenerationUtils
Introduce MainCallParameters
Generate calls to main function together with the other code in contrast to as text afterwards
Enhance tests a bit
2012-05-05 18:50:02 +04:00
pTalanov 9681a61fd2 Pure cosmetics in K2JSCompiler* 2012-05-05 17:10:58 +04:00
Stepan Koltsov 80aee299ba remove nop code 2012-05-04 23:57:14 +04:00
Stepan Koltsov dd332bc08c -mode idea
#KT-1893 Fixed
2012-05-04 23:57:13 +04:00
Leonid Shalupov 4a0f929fc3 bin scripts to call js compiler 2012-05-04 23:50:41 +04:00
pTalanov 397928c4e4 K2JSCompiler cli:
Refactor.
Support zipped library sources as parameter.
Support output file path as parameter.
2012-05-04 23:15:37 +04:00
pTalanov d23cca223d K2JSCompiler generates output file 2012-05-04 23:15:36 +04:00
Leonid Shalupov 4eae229127 reworked kotlin compiler dist 2012-05-04 19:12:02 +04:00
pTalanov d327777821 Verbose parameter treated correctly
Fixes CompilerSmokeTest broken by previous commit
2012-05-04 18:14:11 +04:00
pTalanov 3e3a22a5c9 CLI refactoring.
Some steps towards nice K2JS cli.
2012-05-04 16:23:31 +04:00
pTalanov 359778906d Fix maven build. 2012-05-02 16:38:50 +04:00
pTalanov f3e2a94745 Rename K2JVMCompilerVersion -> CompilerVersion, move to common. 2012-05-02 15:28:46 +04:00
pTalanov 7e58e4d919 Add srcdir as K2JSCompiler parameter. 2012-05-02 15:24:25 +04:00
pTalanov ce929fab49 Rename CompileEnvironmentConfiguration. Drop ArgsUtil class. Add CompilerSpecialMode.JS. 2012-05-02 15:23:40 +04:00
pTalanov c7d5f79ec8 Finish merge. 2012-05-02 15:20:47 +04:00
pTalanov 7da1e31eca Merge remote-tracking branch 'origin/master'
Conflicts:
	build-tools/core/src/org/jetbrains/jet/buildtools/core/BytecodeCompiler.java
	compiler/cli/src/org/jetbrains/jet/cli/jvm/K2JVMCompiler.java
	compiler/cli/src/org/jetbrains/jet/cli/jvm/compiler/CompileEnvironmentConfiguration.java
	compiler/cli/src/org/jetbrains/jet/cli/jvm/compiler/JetCoreEnvironment.java
	compiler/tests/org/jetbrains/jet/JetTestUtils.java
	compiler/tests/org/jetbrains/jet/codegen/CompileTextTest.java
2012-05-02 13:39:36 +04:00
Stepan Koltsov 518f50692f kotlin runtime must be added to classpath
(not just to library root)
2012-05-01 23:49:19 +04:00
Stepan Koltsov b109ac5ad4 store CompilerDependencies in JetCoreEnvironment 2012-05-01 22:59:42 +04:00
Stepan Koltsov 58b706c12e Revert "kotlin runtime must be added to classpath" temporarily
This reverts commit 90910cae34.
2012-05-01 21:22:06 +04:00
Stepan Koltsov d71723131d Revert "enhance tests (mostly codegen)" temporarily
This reverts commit 95f9bcbacb.
2012-05-01 21:21:46 +04:00
Stepan Koltsov 95f9bcbacb enhance tests (mostly codegen)
* drop dependency on stdlib/alt-headers in the most tests
* assign to myEnvironment at most once in JetLiteFixture
* more tests do not compile runtime
2012-05-01 19:11:48 +04:00
Stepan Koltsov 90910cae34 kotlin runtime must be added to classpath
(not just to library root)
2012-05-01 17:39:56 +04:00
pTalanov 3e8624b440 Add test which checks whether compiler messages are understood correctly by the plugin. 2012-04-28 23:03:55 +04:00
pTalanov 063ece5ad5 Add js.translator dependency to cli. Draft K2JSCompiler (just a placeholder) 2012-04-28 22:47:37 +04:00
pTalanov e4e4fb256a Pull some code from K2JVMCompiler to CLICompiler. Also requires a hack due to compiler bug. 2012-04-28 22:47:36 +04:00
pTalanov 16cc4bc8d7 Add abstract methods to CompilerArguments. Add parameters to K2JSCompilerArguments. 2012-04-28 22:47:36 +04:00
pTalanov 66e10a18a3 JetCoreEnvironment for JS and JVM are separated. 2012-04-28 22:47:35 +04:00
pTalanov f9d87cbf4b Move doMain method to CLICompiler. 2012-04-28 22:47:34 +04:00
pTalanov cdfa0678cf Extract reusable functionality from K2JVMCompiler, K2JVMCompilerArguments, CompilerEnvironmentConfiguration. 2012-04-28 22:47:33 +04:00
pTalanov 9f92b0b5d7 Refactor cli: all the jvm stuff goes under org.jetbrains.jet.cli.jvm, common stuff under org.jetbrains.jet.cli.common 2012-04-25 20:39:44 +04:00
pTalanov d0d5b147f2 Refactor cli: all the jvm stuff goes under org.jetbrains.jet.cli.jvm, common stuff under org.jetbrains.jet.cli.common 2012-04-25 20:19:15 +04:00
Stepan Koltsov 3b43f30824 add JDK to CompilerDependencies 2012-04-25 19:36:22 +04:00
Pavel V. Talanov 6e3d7cce61 Remove redundant analyzer wrapper. 2012-04-25 14:24:05 +04:00