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

javax0.jamal.prog.Expression Maven / Gradle / Ivy

There is a newer version: 2.8.1
Show newest version
package javax0.jamal.prog;

import javax0.jamal.api.BadSyntax;
import javax0.jamal.api.Input;
import javax0.jamal.api.Macro;
import javax0.jamal.api.Processor;
import javax0.jamal.prog.analyzer.Block;
import javax0.jamal.prog.analyzer.Lexer;
import javax0.jamal.prog.commands.Context;

public class Expression implements Macro {
    @Override
    public String evaluate(final Input in, final Processor processor) throws BadSyntax {
        return Block.analyze(new Lexer().analyze(in)).execute(new Context(processor));
    }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy