Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 0 additions & 1 deletion build.gradle.kts
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
import org.gradle.kotlin.dsl.cpp
import java.nio.file.Files
import java.nio.file.Paths
import java.util.Optional

plugins {
Expand Down
1 change: 0 additions & 1 deletion src/main/java/top/mcfpp/jni/Test.java
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
package top.mcfpp.jni;

import java.io.File;
import java.net.URL;

public class Test {
static {
Expand Down
2 changes: 0 additions & 2 deletions src/main/java/top/mcfpp/lang/MCAnyData.java
Original file line number Diff line number Diff line change
@@ -1,9 +1,7 @@
package top.mcfpp.lang;

import kotlin.NotImplementedError;
import kotlin.jvm.functions.Function4;
import org.jetbrains.annotations.NotNull;
import top.mcfpp.annotations.MCFPPNative;
import top.mcfpp.lib.function.Function;
import top.mcfpp.lib.function.MNIMethodContainer;
import top.mcfpp.util.ValueWrapper;
Expand Down
2 changes: 0 additions & 2 deletions src/main/java/top/mcfpp/lang/MCIntData.java
Original file line number Diff line number Diff line change
@@ -1,9 +1,7 @@
package top.mcfpp.lang;

import kotlin.NotImplementedError;
import kotlin.jvm.functions.Function4;
import org.jetbrains.annotations.NotNull;
import top.mcfpp.annotations.MCFPPNative;
import top.mcfpp.lib.function.Function;
import top.mcfpp.lib.function.MNIMethodContainer;
import top.mcfpp.util.ValueWrapper;
Expand Down
1 change: 0 additions & 1 deletion src/main/java/top/mcfpp/lang/NBTDictionaryData.java
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
package top.mcfpp.lang;

import kotlin.NotImplementedError;
import kotlin.jvm.functions.Function4;
import org.jetbrains.annotations.NotNull;
import top.mcfpp.lib.function.MNIMethodContainer;
Expand Down
8 changes: 0 additions & 8 deletions src/main/java/top/mcfpp/lang/NBTListData.java
Original file line number Diff line number Diff line change
@@ -1,23 +1,15 @@
package top.mcfpp.lang;

import kotlin.NotImplementedError;
import kotlin.jvm.functions.Function4;
import net.querz.nbt.io.SNBTUtil;
import net.querz.nbt.tag.IntTag;
import net.querz.nbt.tag.ListTag;
import net.querz.nbt.tag.Tag;
import org.jetbrains.annotations.NotNull;
import top.mcfpp.Project;
import top.mcfpp.annotations.MCFPPNative;
import top.mcfpp.lib.function.Function;
import top.mcfpp.lib.function.MNIMethodContainer;
import top.mcfpp.util.LogProcessor;
import top.mcfpp.util.NBTUtil;
import top.mcfpp.util.ValueWrapper;

import java.io.IOException;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.HashMap;

public class NBTListData extends MNIMethodContainer {
Expand Down
1 change: 0 additions & 1 deletion src/main/java/top/mcfpp/lang/NBTMapData.java
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
package top.mcfpp.lang;

import kotlin.NotImplementedError;
import kotlin.jvm.functions.Function4;
import org.jetbrains.annotations.NotNull;
import top.mcfpp.lib.function.MNIMethodContainer;
Expand Down
3 changes: 0 additions & 3 deletions src/main/java/top/mcfpp/lang/System.java
Original file line number Diff line number Diff line change
@@ -1,15 +1,12 @@
package top.mcfpp.lang;

import kotlin.jvm.functions.Function4;
import net.querz.nbt.tag.StringTag;
import org.jetbrains.annotations.NotNull;
import top.mcfpp.annotations.InsertCommand;
import top.mcfpp.annotations.MCFPPNative;
import top.mcfpp.lib.function.Function;
import top.mcfpp.lib.function.MNIMethodContainer;
import top.mcfpp.util.ValueWrapper;

import java.util.ArrayList;
import java.util.HashMap;

public class System extends MNIMethodContainer {
Expand Down
2 changes: 0 additions & 2 deletions src/main/kotlin/top/mcfpp/antlr/McfppGenericClassVisitor.kt
Original file line number Diff line number Diff line change
@@ -1,10 +1,8 @@
package top.mcfpp.antlr

import top.mcfpp.Project
import top.mcfpp.exception.UndefinedException
import top.mcfpp.io.McfppFile
import top.mcfpp.lib.Class
import top.mcfpp.lib.field.GlobalField
import top.mcfpp.lib.function.Constructor
import top.mcfpp.lib.function.Function
import top.mcfpp.util.LogProcessor
Expand Down
1 change: 0 additions & 1 deletion src/main/kotlin/top/mcfpp/antlr/McfppLeftExprVisitor.kt
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@ package top.mcfpp.antlr
import top.mcfpp.Project
import top.mcfpp.annotations.InsertCommand
import top.mcfpp.lang.*
import top.mcfpp.lang.type.MCFPPGenericClassType
import top.mcfpp.lib.*
import top.mcfpp.lib.function.Function
import top.mcfpp.lib.field.GlobalField
Expand Down
1 change: 0 additions & 1 deletion src/main/kotlin/top/mcfpp/antlr/McfppTypeVisitor.kt
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@ import top.mcfpp.lang.type.MCFPPType
import top.mcfpp.lib.*
import top.mcfpp.lib.field.GlobalField
import top.mcfpp.lib.field.NamespaceField
import top.mcfpp.lib.function.FunctionParam
import top.mcfpp.lib.generic.ClassParam
import top.mcfpp.lib.generic.GenericClass
import top.mcfpp.util.LazyWrapper
Expand Down
2 changes: 0 additions & 2 deletions src/main/kotlin/top/mcfpp/compiletime/MCControl.kt
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
package top.mcfpp.compiletime

import top.mcfpp.lang.Var

sealed class MCControl {
object Break:MCControl();
object Continue:MCControl();
Expand Down
1 change: 0 additions & 1 deletion src/main/kotlin/top/mcfpp/io/LibReader.kt
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@ package top.mcfpp.io

import com.alibaba.fastjson2.JSONArray
import com.alibaba.fastjson2.JSONObject
import top.mcfpp.Project
import top.mcfpp.exception.IllegalFormatException
import top.mcfpp.lang.UnresolvedVar
import top.mcfpp.lang.type.MCFPPBaseType
Expand Down
2 changes: 0 additions & 2 deletions src/main/kotlin/top/mcfpp/lang/MCFPPTypeVar.kt
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,6 @@ import top.mcfpp.lang.type.MCFPPType
import top.mcfpp.lib.CompoundData
import top.mcfpp.lib.function.Function
import top.mcfpp.lib.Member
import top.mcfpp.lib.field.IFieldWithType
import java.util.*

class MCFPPTypeVar : Var<MCFPPType> {

Expand Down
2 changes: 0 additions & 2 deletions src/main/kotlin/top/mcfpp/lang/NBTDictionary.kt
Original file line number Diff line number Diff line change
@@ -1,9 +1,7 @@
package top.mcfpp.lang

import net.querz.nbt.tag.CompoundTag
import net.querz.nbt.tag.ListTag
import net.querz.nbt.tag.StringTag
import net.querz.nbt.tag.Tag
import top.mcfpp.exception.VariableConverseException
import top.mcfpp.lang.type.*
import top.mcfpp.lib.*
Expand Down
2 changes: 0 additions & 2 deletions src/main/kotlin/top/mcfpp/lang/NBTMap.kt
Original file line number Diff line number Diff line change
@@ -1,14 +1,12 @@
package top.mcfpp.lang

import net.querz.nbt.tag.CompoundTag
import net.querz.nbt.tag.Tag
import top.mcfpp.exception.VariableConverseException
import top.mcfpp.lang.type.*
import top.mcfpp.lib.CompoundData
import top.mcfpp.lib.FieldContainer
import top.mcfpp.lib.function.NativeFunction
import java.util.*
import kotlin.reflect.jvm.javaMethod

class NBTMap : NBTDictionary{

Expand Down
1 change: 0 additions & 1 deletion src/main/kotlin/top/mcfpp/lang/type/MCFPPBaseType.kt
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
package top.mcfpp.lang.type

import top.mcfpp.lang.*
import top.mcfpp.lang.Void
import top.mcfpp.util.ResourceLocation

/**
Expand Down
1 change: 0 additions & 1 deletion src/main/kotlin/top/mcfpp/lib/NativeClass.kt
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@ package top.mcfpp.lib

import top.mcfpp.Project
import top.mcfpp.lang.*
import java.lang.reflect.InvocationTargetException
import java.lang.Class

/**
Expand Down
1 change: 0 additions & 1 deletion src/main/kotlin/top/mcfpp/lib/Template.kt
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@ import top.mcfpp.Project
import top.mcfpp.lang.type.MCFPPTemplateType
import top.mcfpp.lang.type.MCFPPType
import top.mcfpp.lib.field.CompoundDataField
import top.mcfpp.lib.function.Constructor
import top.mcfpp.lib.function.TemplateConstructor
import top.mcfpp.util.LazyWrapper

Expand Down
2 changes: 0 additions & 2 deletions src/main/kotlin/top/mcfpp/lib/UnknownClass.kt
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
package top.mcfpp.lib

import top.mcfpp.Project

class UnknownClass(identifier: String, namespace: String): Class(identifier, namespace) {

}
1 change: 0 additions & 1 deletion src/main/kotlin/top/mcfpp/lib/field/CompoundDataField.kt
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@ import top.mcfpp.lang.Var
import top.mcfpp.lang.type.MCFPPType
import top.mcfpp.lib.*
import top.mcfpp.lib.function.Function
import top.mcfpp.lib.function.FunctionParam
import top.mcfpp.lib.function.UnknownFunction
import top.mcfpp.lib.generic.Generic
import top.mcfpp.util.LazyWrapper
Expand Down
3 changes: 0 additions & 3 deletions src/main/kotlin/top/mcfpp/lib/field/IField.kt
Original file line number Diff line number Diff line change
@@ -1,8 +1,5 @@
package top.mcfpp.lib.field

import java.io.Serializable


/**
* 一个域。在编译过程中,编译器读取到的变量,函数等会以键值对的方式储存在其中。键为函数的id或者变量的
* 标识符,而值则是这个函数或者变量的对象。
Expand Down
1 change: 0 additions & 1 deletion src/main/kotlin/top/mcfpp/lib/field/IFieldWithType.kt
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
package top.mcfpp.lib.field

import top.mcfpp.lang.Var
import top.mcfpp.lang.type.MCFPPType

interface IFieldWithType : IField {
Expand Down
1 change: 0 additions & 1 deletion src/main/kotlin/top/mcfpp/lib/field/NamespaceField.kt
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@ import top.mcfpp.lang.*
import top.mcfpp.lang.type.MCFPPType
import top.mcfpp.lib.*
import top.mcfpp.lib.function.Function
import top.mcfpp.lib.function.FunctionParam
import top.mcfpp.lib.generic.Generic
import kotlin.collections.ArrayList
import kotlin.collections.HashMap
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@ package top.mcfpp.lib.field
import org.jetbrains.annotations.Nullable
import top.mcfpp.lang.type.MCFPPType
import top.mcfpp.lib.function.Function
import top.mcfpp.lib.function.FunctionParam
import top.mcfpp.lib.generic.Generic

/**
Expand Down
4 changes: 0 additions & 4 deletions src/main/kotlin/top/mcfpp/lib/function/NativeFunction.kt
Original file line number Diff line number Diff line change
Expand Up @@ -4,12 +4,8 @@ import top.mcfpp.Project
import top.mcfpp.lang.*
import top.mcfpp.lang.type.MCFPPType
import top.mcfpp.lib.Native
import top.mcfpp.util.LogProcessor
import top.mcfpp.util.ValueWrapper
import java.lang.reflect.InvocationTargetException
import java.lang.Class
import java.lang.Void
import java.util.Dictionary

/**
* 表示了一个native方法
Expand Down
12 changes: 0 additions & 12 deletions src/main/kotlin/top/mcfpp/lib/generic/GenericClass.kt
Original file line number Diff line number Diff line change
Expand Up @@ -2,23 +2,11 @@ package top.mcfpp.lib.generic

import top.mcfpp.antlr.mcfppParser
import top.mcfpp.Project
import top.mcfpp.antlr.McfppFieldVisitor
import top.mcfpp.antlr.McfppGenericClassVisitor
import top.mcfpp.io.McfppFile
import top.mcfpp.lang.MCAny
import top.mcfpp.lang.MCFPPTypeVar
import top.mcfpp.lang.Var
import top.mcfpp.lang.type.MCFPPGenericClassType
import top.mcfpp.lang.type.MCFPPType
import top.mcfpp.lib.Class
import top.mcfpp.lib.CompoundData
import top.mcfpp.lib.field.GlobalField
import top.mcfpp.lib.field.SimpleFieldWithVar
import top.mcfpp.lib.function.Constructor
import top.mcfpp.lib.function.Function
import top.mcfpp.lib.function.FunctionParam
import top.mcfpp.util.LogProcessor
import top.mcfpp.util.StringHelper

class GenericClass : Class {

Expand Down
1 change: 0 additions & 1 deletion src/main/kotlin/top/mcfpp/util/AntlrUtil.kt
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
package top.mcfpp.util

import org.antlr.v4.runtime.ParserRuleContext
import org.antlr.v4.runtime.tree.ParseTree

object AntlrUtil {
Expand Down
3 changes: 0 additions & 3 deletions src/main/kotlin/top/mcfpp/util/LazyWrapper.kt
Original file line number Diff line number Diff line change
@@ -1,8 +1,5 @@
package top.mcfpp.util

import top.mcfpp.lang.Var


/**
* 懒加载包装器
* @param T 被包装的对象的类型
Expand Down
1 change: 0 additions & 1 deletion src/main/kotlin/top/mcfpp/util/Utils.kt
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
package top.mcfpp.util

import net.querz.nbt.tag.IntArrayTag
import top.mcfpp.Project
import java.util.UUID
import kotlin.system.exitProcess

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@ import top.mcfpp.Project
import top.mcfpp.command.tree.CommandTreeNode
import top.mcfpp.command.tree.DownloadHelper
import java.nio.file.Path
import kotlin.io.path.absolutePathString
import kotlin.test.Test
class CommandTreeDeserializeTest {
@Test
Expand Down
1 change: 0 additions & 1 deletion src/test/kotlin/top/mcfpp/test/NBTAnyDataTypeTest.kt
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
package top.mcfpp.test

import top.mcfpp.lib.field.GlobalField
import kotlin.test.Test

class NBTTypeTest {
Expand Down