14 lines
366 B
Java
14 lines
366 B
Java
|
package io.gitlab.jfronny.muscript.ast.context;
|
||
|
|
||
|
import io.gitlab.jfronny.muscript.ast.Expr;
|
||
|
|
||
|
import java.util.ServiceLoader;
|
||
|
|
||
|
public interface IExprParser {
|
||
|
IExprParser INSTANCE = ServiceLoader.load(IExprParser.class)
|
||
|
.findFirst()
|
||
|
.orElseGet(() -> expr -> { throw new UnsupportedOperationException(); });
|
||
|
|
||
|
Expr parse(String expr);
|
||
|
}
|