Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/kacperfkorban/wordle-compile

A Scala 3 compiler plugin, that requires you to solve a Wordle in order for the compilation to finish
https://github.com/kacperfkorban/wordle-compile

dotty scala scala3

Last synced: 4 days ago
JSON representation

A Scala 3 compiler plugin, that requires you to solve a Wordle in order for the compilation to finish

Awesome Lists containing this project

README

        


Scala 3 Wordle compile






A Scala 3 compiler plugin, that requires you to solve a Wordle in order for the compilation to finish.

### Demo

![](./docs/wordle_compile.gif)

### Running locally

```
sbt package
```

```
scala3 -Xplugin:path_to_pluginjar.jar file.scala
```

Default jar location after `sbt package`: `location_of_wordle-compile/target/scala-3.1.1/wordle-compile_3-0.1.0-SNAPSHOT.jar`

Obviously inspired by [Wordle](https://www.nytimes.com/games/wordle/index.html).

### Running locally (sbt)

```
sbt publishLocal
```

Add the following lines to sbt config (build.sbt):
```
autoCompilerPlugins := true

addCompilerPlugin("dev.korban" %% "wordle-compile" % "0.1.0-SNAPSHOT")
```

In order to be able to use it comfortably in sbt launch it using:
```
sbt -Dsbt.supershell=false
```