All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.skillw.asahi.internal.function.lang.java.ExampleParser Maven / Gradle / Ivy

There is a newer version: 1.6.7-beta-6
Show newest version
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