org.python.core
Class ParserFacade
- java.lang.Object
-
- org.python.core.ParserFacade
-
public class ParserFacade extends java.lang.ObjectFacade for the classes in the org.python.antlr package.
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method and Description static PyExceptionfixParseError(org.python.core.ParserFacade.ExpectedEncodingBufferedReader reader, java.lang.Throwable t, java.lang.String filename)static modparse(java.io.InputStream stream, CompileMode kind, java.lang.String filename, CompilerFlags cflags)static modparse(java.io.Reader reader, CompileMode kind, java.lang.String filename, CompilerFlags cflags)static modparse(java.lang.String string, CompileMode kind, java.lang.String filename, CompilerFlags cflags)static modparseExpressionOrModule(java.io.Reader reader, java.lang.String filename, CompilerFlags cflags)Parse Python source as either an expression (if possible) or module.static modpartialParse(java.lang.String string, CompileMode kind, java.lang.String filename, CompilerFlags cflags, boolean stdprompt)
-
-
-
Method Detail
-
fixParseError
public static PyException fixParseError(org.python.core.ParserFacade.ExpectedEncodingBufferedReader reader, java.lang.Throwable t, java.lang.String filename)
-
parseExpressionOrModule
public static mod parseExpressionOrModule(java.io.Reader reader, java.lang.String filename, CompilerFlags cflags)
Parse Python source as either an expression (if possible) or module. Designed for use by a JSR 223 implementation: "the Scripting API does not distinguish between scripts which return values and those which do not, nor do they make the corresponding distinction between evaluating or executing objects." (SCR.4.2.1)
-
parse
public static mod parse(java.io.Reader reader, CompileMode kind, java.lang.String filename, CompilerFlags cflags)
-
parse
public static mod parse(java.io.InputStream stream, CompileMode kind, java.lang.String filename, CompilerFlags cflags)
-
parse
public static mod parse(java.lang.String string, CompileMode kind, java.lang.String filename, CompilerFlags cflags)
-
partialParse
public static mod partialParse(java.lang.String string, CompileMode kind, java.lang.String filename, CompilerFlags cflags, boolean stdprompt)
-
-
DMelt 3.0 © DataMelt by jWork.ORG