This repository was archived by the owner on May 15, 2023. 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.
Make Lixy a multiplatform project (fixes #4)
- Loading branch information
Showing
39 changed files
with
204 additions
and
129 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,63 @@ | ||
plugins { | ||
id "org.jetbrains.kotlin.multiplatform" version "1.3.72" | ||
//id "org.jetbrains.dokka" version "0.10.0" | ||
} | ||
|
||
repositories { | ||
mavenCentral() | ||
} | ||
|
||
kotlin { | ||
jvm() | ||
js { | ||
browser { | ||
} | ||
nodejs { | ||
} | ||
} | ||
|
||
sourceSets { | ||
commonMain { | ||
dependencies { | ||
implementation kotlin('stdlib-common') | ||
} | ||
} | ||
|
||
commonTest { | ||
dependencies { | ||
implementation kotlin('test-common') | ||
implementation kotlin('test-annotations-common') | ||
} | ||
} | ||
|
||
jvmMain { | ||
dependencies { | ||
implementation kotlin('stdlib-jdk8') | ||
implementation "org.jetbrains:annotations:18.0.0" | ||
} | ||
} | ||
|
||
jvmTest { | ||
dependencies { | ||
implementation kotlin('test-junit') | ||
} | ||
} | ||
|
||
nonJvmMain { | ||
dependsOn commonMain | ||
} | ||
|
||
jsMain { | ||
dependencies { | ||
implementation kotlin('stdlib-js') | ||
} | ||
dependsOn nonJvmMain | ||
} | ||
|
||
jsTest { | ||
dependencies { | ||
implementation kotlin('test-js') | ||
} | ||
} | ||
} | ||
} |
This file was deleted.
Oops, something went wrong.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
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.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
12 changes: 10 additions & 2 deletions
12
...n/guru/zoroark/lixy/OffsetCharSequence.kt → ...n/guru/zoroark/lixy/OffsetCharSequence.kt
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.
File renamed without changes.
File renamed without changes.
File renamed without changes.
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.
12 changes: 12 additions & 0 deletions
12
src/commonMain/kotlin/guru/zoroark/lixy/matchers/RegexPatternRecognizer.kt
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,12 @@ | ||
package guru.zoroark.lixy.matchers | ||
|
||
import guru.zoroark.lixy.LixyDslStateEnvironment | ||
|
||
/** | ||
* Create a recognizer that recognizes the given regular expression. Use | ||
* this before isToken to create a matcher that matches against a regular | ||
* expression. | ||
* | ||
* @param pattern The regular expression to use in the recognizer | ||
*/ | ||
expect fun LixyDslStateEnvironment.matches(pattern: String): LixyTokenRecognizer |
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
Oops, something went wrong.