Compare commits
2 Commits
Author | SHA1 | Date | |
---|---|---|---|
364176057d | |||
d5c0717763 |
.gitignoreJavaTXCompiler.jarJavaTXcompiler.jarREADME.mdapplyLambda.javcompile.sherrorsfunnclass
java-compiler-classes
Main.class
de/dhbwstuttgart
bytecode
CodeGenException.classCodegen$1.classCodegen$BreakEnv.classCodegen$LocalVar.classCodegen$Scope.classCodegen$State.classCodegen.classFunNGenerator$GenericParameters.classFunNGenerator.classJavaTXSignatureAttribute.class
core
ConsoleInterface.classIItemWithOffset.classJavaTXCompiler$ClassEntry.classJavaTXCompiler$TypeExchanger.classJavaTXCompiler.class
environment
ByteArrayClassLoader.classCompilationEnvironment.classDirectoryClassLoader.classIByteArrayClassLoader.classPackageCrawler.class
exceptions
parser
JavaTXParser.classNullToken.classSourceLoc.class
SyntaxTreeGenerator
AssignToLocal.classFCGenerator$TypeExchanger.classFCGenerator.classFieldEntry.classGenericContext.classStatementGenerator.classSyntacticSugar$ReturnFinder.classSyntacticSugar.classSyntaxTreeGenerator.classTypeGenerator.class
antlr
Java17Lexer.classJava17Parser$AltAnnotationQualifiedNameContext.classJava17Parser$AndexpressionContext.classJava17Parser$AnnotationConstantRestContext.classJava17Parser$AnnotationContext.classJava17Parser$AnnotationMethodOrConstantRestContext.classJava17Parser$AnnotationMethodRestContext.classJava17Parser$AnnotationTypeBodyContext.classJava17Parser$AnnotationTypeDeclarationContext.classJava17Parser$AnnotationTypeElementDeclarationContext.classJava17Parser$AnnotationTypeElementRestContext.classJava17Parser$AnnotationvarmodContext.classJava17Parser$ArgumentsContext.classJava17Parser$ArrayCreatorRestContext.classJava17Parser$ArrayInitializerContext.classJava17Parser$ArrayaccessexpressionContext.classJava17Parser$AssertstmtContext.classJava17Parser$AssignexpressionContext.classJava17Parser$BitwiseandexpressionContext.classJava17Parser$BitwiseorexpressionContext.classJava17Parser$BitwisexorexpressionContext.classJava17Parser$BlockContext.classJava17Parser$BlockStatementContext.classJava17Parser$BlockstmtContext.classJava17Parser$BoolLiteralContext.classJava17Parser$BreakstmtContext.classJava17Parser$CastexpressionContext.classJava17Parser$CatchClauseContext.classJava17Parser$CatchTypeContext.classJava17Parser$CharLiteralContext.classJava17Parser$ClassBodyContext.classJava17Parser$ClassBodyDeclarationContext.classJava17Parser$ClassCreatorRestContext.classJava17Parser$ClassDeclarationContext.classJava17Parser$ClassOrInterfaceContext.classJava17Parser$ClassOrInterfaceModifierContext.classJava17Parser$ClassOrInterfaceTypeContext.classJava17Parser$ClassTypeContext.classJava17Parser$ClassblockContext.classJava17Parser$ClassorinterfacedeclContext.classJava17Parser$ConditionalassignexpressionContext.classJava17Parser$ConditionalstmtContext.classJava17Parser$ConstDeclarationContext.classJava17Parser$ConstantDeclaratorContext.classJava17Parser$ConstructorContext.classJava17Parser$ConstructorDeclarationContext.classJava17Parser$ConstructordeclContext.classJava17Parser$ContinuestmtContext.classJava17Parser$CreatedNameContext.classJava17Parser$CreatorContext.classJava17Parser$CreatorreferenceexpressionContext.classJava17Parser$DefaultValueContext.classJava17Parser$DottedexpressionContext.classJava17Parser$DowhileloopContext.class
7
.gitignore
vendored
7
.gitignore
vendored
@ -4,7 +4,7 @@
|
||||
|
||||
# But do not ignore .class files in resources/bytecode/javFiles (necessary for tests)
|
||||
!/resources/bytecode/javFiles/**/*.class
|
||||
!/lib/classes/**/*.class
|
||||
!/java-compiler-classes/**/*.class
|
||||
|
||||
# Log file
|
||||
*.log
|
||||
@ -30,7 +30,4 @@ replay_pid*
|
||||
#compiled files
|
||||
out
|
||||
|
||||
logFiles
|
||||
|
||||
*.iml
|
||||
.idea/
|
||||
logFiles
|
Binary file not shown.
Binary file not shown.
@ -11,7 +11,7 @@ To remove all compile files, use
|
||||
./compile.sh clean
|
||||
```
|
||||
|
||||
|
||||
To run all junit tests on the files, use
|
||||
```
|
||||
./test.sh
|
||||
```
|
||||
|
@ -3,7 +3,7 @@ class Apply { }
|
||||
|
||||
public class applyLambda {
|
||||
|
||||
public m () {
|
||||
m () {
|
||||
var lam1 = (x) -> {
|
||||
return x;
|
||||
};
|
29
compile.sh
29
compile.sh
@ -3,10 +3,9 @@
|
||||
SRCDIR="javatx-src/main/java"
|
||||
DESTDIR="out/src"
|
||||
TESTDESTDIR="out/tests"
|
||||
DEPENDENCIES="dependencies/*"
|
||||
DEPENDENCIES="dependencies"
|
||||
JAVAC_FLAGS="-g:none -nowarn"
|
||||
JAVATX_COMPILER_PATH="JavaTXcompiler.jar"
|
||||
COMPILED_CLASSES="lib/classes"
|
||||
JAVATX_COMPILER_PATH="JavaTXCompiler.jar"
|
||||
|
||||
#remove all files, if the script is called with parameter "clear"
|
||||
if [ "$1" = "clean" ]; then
|
||||
@ -14,7 +13,7 @@ if [ "$1" = "clean" ]; then
|
||||
exit 0
|
||||
fi
|
||||
|
||||
if [ "$1" != "debug" ] && [ "$1" != "" ]; then
|
||||
if [ "$1" != "" ]; then
|
||||
echo "invalid argument: $1"
|
||||
exit 1
|
||||
fi
|
||||
@ -62,23 +61,29 @@ for file in "${JAV_FILES[@]}"; do
|
||||
fi
|
||||
done
|
||||
|
||||
if [ "$1" == "debug" ]; then
|
||||
echo "-d \"$(realpath $DESTDIR)\" -cp \"$(realpath $SRCDIR):$(realpath $DESTDIR):$(realpath $COMPILED_CLASSES)\" $(realpath ${JAV_CHANGED[@]})"
|
||||
exit 0
|
||||
fi
|
||||
|
||||
if [ "${#JAV_CHANGED[@]}" -ne 0 ]; then
|
||||
echo "java -jar $JAVATX_COMPILER_PATH -d $DESTDIR -cp "$SRCDIR:$DEPENDENCIES:$COMPILED_CLASSES" ${JAV_CHANGED[@]}"
|
||||
java -jar $JAVATX_COMPILER_PATH -d $DESTDIR -cp "$SRCDIR:$DEPENDENCIES:$COMPILED_CLASSES" "${JAV_CHANGED[@]}"
|
||||
echo "java -jar $JAVATX_COMPILER_PATH -d $DESTDIR -cp "$SRCDIR:dependencies/" ${JAV_CHANGED[@]}"
|
||||
java -jar $JAVATX_COMPILER_PATH -d $DESTDIR -cp "$SRCDIR:dependencies/:java-compiler-classes/" "${JAV_CHANGED[@]}"
|
||||
if [ $? -ne 0 ]; then
|
||||
echo "Fehler beim Kompilieren der Jav-Dateien. Beende das Skript."
|
||||
exit 1
|
||||
fi
|
||||
fi
|
||||
|
||||
#if [ "${#JAV_CHANGED[@]}" -ne 0 ]; then
|
||||
# for ((i = 0; i < "${#JAV_CHANGED[@]}"; i++)); do
|
||||
# echo "java -jar $(realpath $JAVATX_COMPILER_PATH) -d $(realpath "$DESTDIR") -cp "$(realpath $SRCDIR):$(realpath $DESTDIR):$(realpath "target/dependencies/")" ${JAV_CHANGED[i]}"
|
||||
# java -jar $JAVATX_COMPILER_PATH -d "$DESTDIR" -cp "$SRCDIR:$DESTDIR:target/dependencies/" "${JAV_CHANGED[i]}"
|
||||
# if [ $? -eq 1 ]; then
|
||||
# exit 1;
|
||||
# fi
|
||||
# done
|
||||
#fi
|
||||
|
||||
if [ "${#JAVA_CHANGED[@]}" -ne 0 ]; then
|
||||
echo "javac -d $DESTDIR -cp "$SRCDIR:$DESTDIR:$DEPENDENCIES" $JAVAC_FLAGS ${JAVA_CHANGED[@]}"
|
||||
javac -d $DESTDIR -cp "$SRCDIR:$DESTDIR:$DEPENDENCIES" $JAVAC_FLAGS "${JAVA_CHANGED[@]}"
|
||||
echo "javac -d $DESTDIR -cp "$SRCDIR:$DESTDIR:dependencies/*:java-compiler-classes/*" $JAVAC_FLAGS ${JAVA_CHANGED[@]}"
|
||||
javac -d $DESTDIR -cp "$SRCDIR:$DESTDIR:dependencies/*:java-compiler-classes/*" $JAVAC_FLAGS "${JAVA_CHANGED[@]}"
|
||||
fi
|
||||
|
||||
# if [ $? -eq 0 ]; then
|
||||
|
232
errors
Normal file
232
errors
Normal file
File diff suppressed because one or more lines are too long
3470
funnclass
Normal file
3470
funnclass
Normal file
File diff suppressed because one or more lines are too long
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Some files were not shown because too many files have changed in this diff Show More
Loading…
x
Reference in New Issue
Block a user