https://github.com/kayjamlang/executor
Basic executor for KayJam Core
https://github.com/kayjamlang/executor
executor java java-8 kayjam kayjam-language language script scripting-language
Last synced: 9 months ago
JSON representation
Basic executor for KayJam Core
- Host: GitHub
- URL: https://github.com/kayjamlang/executor
- Owner: KayJamLang
- License: gpl-3.0
- Created: 2021-02-24T08:07:22.000Z (almost 5 years ago)
- Default Branch: main
- Last Pushed: 2021-08-23T13:37:35.000Z (over 4 years ago)
- Last Synced: 2025-05-07T06:15:45.973Z (9 months ago)
- Topics: executor, java, java-8, kayjam, kayjam-language, language, script, scripting-language
- Language: Java
- Homepage:
- Size: 194 KB
- Stars: 1
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# KayJam code executor
[](https://circleci.com/gh/KayJamLang/executor)
Basic code executor for KayJam Core
## How to use
1. Add the library depending on:
Maven:
```xml
com.github.kayjamlang
executor
0.1.3.21
```
Gradle:
(Groovy)
```groovy
implementation group: 'com.github.kayjamlang', name: 'executor', version: '0.1.3.21'
```
(Kts)
```kotlin
implementation("com.github.kayjamlang:executor:version: '0.1.3.21")
```
2. Call the method of the Executor class,
which will return the result of the code execution in Object:
```java
class Main {
public static void main(String[] args){
String code = "println(\"Hello, World\");";
Executor executor = new Executor();
//Default library
executor.addLibrary(new MainLibrary());
executor.execute(code);
}
}
```
## Additionally
[Library catalog for KayJam Executor](https://github.com/KayJamLang/executor/blob/main/libs.md)