com.skillw.asahi.internal.function.lang.java.ExampleParser Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of Pouvoir Show documentation
Show all versions of Pouvoir Show documentation
Bukkit Script Engine Plugin.
package com.skillw.asahi.internal.function.lang.java;
import com.skillw.asahi.api.member.lexer.JavaLexer;
import com.skillw.asahi.api.member.parser.prefix.type.JavaTypeParser;
import com.skillw.asahi.api.member.quest.Quester;
import org.jetbrains.annotations.NotNull;
import static com.skillw.asahi.api.ExtensionKt.quester;
//@AsahiParser
public class ExampleParser extends JavaTypeParser {
@NotNull
@Override
protected Quester parse(@NotNull JavaLexer reader) {
String str = reader.next();
return quester((context) -> {
System.out.println(str);
return str;
});
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy