This repository has been archived by the owner on May 27, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Co-authored-by: HoshinoTented <hoshinotented@qq.com>
- Loading branch information
1 parent
3cf860e
commit 448f80e
Showing
51 changed files
with
91 additions
and
75 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,27 +1,13 @@ | ||
module aya.base { | ||
requires transitive aya.md; | ||
requires transitive aya.pretty; | ||
requires transitive aya.util; | ||
requires transitive aya.util.more; | ||
requires transitive kala.base; | ||
requires transitive kala.collection; | ||
requires transitive aya.syntax; | ||
|
||
requires static org.jetbrains.annotations; | ||
|
||
requires aya.ij.parsing.core; | ||
requires org.commonmark; | ||
|
||
exports org.aya.generic; | ||
exports org.aya.prelude; | ||
exports org.aya.resolve.context; | ||
exports org.aya.syntax.concrete.stmt.decl; | ||
exports org.aya.syntax.concrete.stmt; | ||
exports org.aya.syntax.concrete; | ||
exports org.aya.syntax.core.def; | ||
exports org.aya.syntax.core.pat; | ||
exports org.aya.syntax.core.term.call; | ||
exports org.aya.syntax.core.term; | ||
exports org.aya.syntax.ref; | ||
exports org.aya.tyck.tycker; | ||
exports org.aya.tyck; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
// Copyright (c) 2020-2024 Tesla (Yinsen) Zhang. | ||
// Use of this source code is governed by the MIT license that can be found in the LICENSE.md file. | ||
|
||
//CommonTasks.nativeImageConfig(project) | ||
|
||
dependencies { | ||
api(project(":tools-kala")) | ||
api(project(":pretty")) | ||
api(libs.aya.ij.core) | ||
testImplementation(libs.junit.params) | ||
testImplementation(libs.junit.jupiter) | ||
testImplementation(libs.hamcrest) | ||
} | ||
|
||
plugins { | ||
id("org.graalvm.buildtools.native") | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
module aya.syntax { | ||
requires transitive aya.pretty; | ||
requires transitive aya.util; | ||
requires transitive aya.util.more; | ||
requires transitive kala.base; | ||
requires transitive kala.collection; | ||
requires transitive aya.ij.parsing.core; | ||
|
||
requires static org.jetbrains.annotations; | ||
|
||
exports org.aya.generic; | ||
exports org.aya.syntax.concrete.stmt.decl; | ||
exports org.aya.syntax.concrete.stmt; | ||
exports org.aya.syntax.concrete; | ||
exports org.aya.syntax.core.def; | ||
exports org.aya.syntax.core.pat; | ||
exports org.aya.syntax.core.term.call; | ||
exports org.aya.syntax.core.term; | ||
exports org.aya.syntax.ref; | ||
} |
File renamed without changes.
File renamed without changes.
2 changes: 1 addition & 1 deletion
2
...c/main/java/org/aya/generic/Modifier.java → ...c/main/java/org/aya/generic/Modifier.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
...c/main/java/org/aya/generic/SortKind.java → ...c/main/java/org/aya/generic/SortKind.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
File renamed without changes.
5 changes: 2 additions & 3 deletions
5
...a/org/aya/resolve/context/ModuleName.java → .../aya/syntax/concrete/stmt/ModuleName.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
File renamed without changes.
File renamed without changes.
2 changes: 1 addition & 1 deletion
2
...ain/java/org/aya/syntax/core/def/Def.java → ...ain/java/org/aya/syntax/core/def/Def.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
File renamed without changes.
2 changes: 1 addition & 1 deletion
2
...java/org/aya/syntax/core/def/TeleDef.java → ...java/org/aya/syntax/core/def/TeleDef.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
2 changes: 2 additions & 0 deletions
2
...ava/org/aya/syntax/core/term/AppTerm.java → ...ava/org/aya/syntax/core/term/AppTerm.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
2 changes: 1 addition & 1 deletion
2
...a/org/aya/syntax/core/term/Formation.java → ...a/org/aya/syntax/core/term/Formation.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
2 changes: 2 additions & 0 deletions
2
...ava/org/aya/syntax/core/term/LamTerm.java → ...ava/org/aya/syntax/core/term/LamTerm.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
2 changes: 1 addition & 1 deletion
2
...va/org/aya/syntax/core/term/SortTerm.java → ...va/org/aya/syntax/core/term/SortTerm.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
.../org/aya/syntax/core/term/StableWHNF.java → .../org/aya/syntax/core/term/StableWHNF.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 0 additions & 2 deletions
2
...n/java/org/aya/syntax/core/term/Term.java → ...n/java/org/aya/syntax/core/term/Term.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
...ava/org/aya/syntax/core/term/TupTerm.java → ...ava/org/aya/syntax/core/term/TupTerm.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
2 changes: 1 addition & 1 deletion
2
...rg/aya/syntax/core/term/call/ConCall.java → ...rg/aya/syntax/core/term/call/ConCall.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
...ya/syntax/core/term/call/ConCallLike.java → ...ya/syntax/core/term/call/ConCallLike.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
2 changes: 1 addition & 1 deletion
2
...org/aya/syntax/core/term/call/FnCall.java → ...org/aya/syntax/core/term/call/FnCall.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 2 additions & 0 deletions
2
.../main/java/org/aya/syntax/ref/AnyVar.java → .../main/java/org/aya/syntax/ref/AnyVar.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 2 additions & 0 deletions
2
...ain/java/org/aya/syntax/ref/LocalVar.java → ...ain/java/org/aya/syntax/ref/LocalVar.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
// Copyright (c) 2020-2024 Tesla (Yinsen) Zhang. | ||
// Use of this source code is governed by the MIT license that can be found in the LICENSE.md file. | ||
package org.aya.syntax.ref; | ||
|
||
import kala.collection.immutable.ImmutableSeq; | ||
import org.jetbrains.annotations.NotNull; | ||
|
||
public record ModulePath(@NotNull ImmutableSeq<String> module) { | ||
public boolean isInModule(@NotNull ModulePath other) { | ||
var moduleName = other.module; | ||
if (module.sizeLessThan(moduleName.size())) return false; | ||
return module.sliceView(0, moduleName.size()).sameElements(moduleName); | ||
} | ||
} |