Uses of Class
ch.turic.BadSyntax

  • Uses of BadSyntax in ch.turic

    Methods in ch.turic that throw BadSyntax
    Modifier and Type
    Method
    Description
    Interpreter.compileAndExecute()
    Executes the source code, compiling it first if necessary.
    Repl.execute(String source)
    Executes the provided source code and returns the result of the execution.
    static void
    BadSyntax.when(ch.turic.analyzer.LexList lexes, boolean b, String msg, Object... parameters)
    Throws a BadSyntax exception when the given condition is true using lexer position information.
    static void
    BadSyntax.when(ch.turic.analyzer.Pos position, boolean b, String msg, Object... parameters)
    Throws a BadSyntax exception when the given condition is true using explicit position information.
    static void
    BadSyntax.when(ch.turic.analyzer.Pos position, boolean b, Supplier<String> msg)
    Throws a BadSyntax exception when the given condition is true using a message supplier.