Top Fields Constructors Methods
org.python.antlr

public Class BaseParser

extends Object
Class Inheritance
Known Direct Subclasses
org.python.antlr.AnalyzingParser
Imports
org.antlr.runtime.CharStream, .CommonTokenStream, .RecognitionException, org.python.antlr.base.mod, org.python.core.CodeFlag, .CompilerFlags

Field Summary

Modifier and TypeField and Description
protected final CharStream
protected final String
protected ErrorHandler
protected final String
protected final boolean
partial

Deprecated
protected final boolean
protected final boolean

Constructor Summary

AccessConstructor and Description
public
BaseParser(CharStream stream, String filename, CompilerFlags flags)

public
BaseParser(CharStream stream, String filename, String encoding)

public
BaseParser(CharStream stream, String filename, String encoding, boolean partial)
Deprecated

private
BaseParser(CharStream stream, String filename, String encoding, boolean partial, boolean printFunction, boolean unicodeLiterals)

Method Summary

Modifier and TypeMethod and Description
public mod
public mod
public mod
public void
protected PythonParser
setupParser(boolean single)

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

charStreamback to summary
protected final CharStream charStream
encodingback to summary
protected final String encoding
errorHandlerback to summary
protected ErrorHandler errorHandler
filenameback to summary
protected final String filename
partialback to summary
protected final boolean partial

Deprecated

Annotations
@Deprecated
printFunctionback to summary
protected final boolean printFunction
unicodeLiteralsback to summary
protected final boolean unicodeLiterals

Constructor Detail

BaseParserback to summary
public BaseParser(CharStream stream, String filename, CompilerFlags flags)
BaseParserback to summary
public BaseParser(CharStream stream, String filename, String encoding)
BaseParserback to summary
public BaseParser(CharStream stream, String filename, String encoding, boolean partial)

Deprecated

Annotations
@Deprecated
BaseParserback to summary
private BaseParser(CharStream stream, String filename, String encoding, boolean partial, boolean printFunction, boolean unicodeLiterals)

Method Detail

parseExpressionback to summary
public mod parseExpression()
parseInteractiveback to summary
public mod parseInteractive()
parseModuleback to summary
public mod parseModule()
setAntlrErrorHandlerback to summary
public void setAntlrErrorHandler(ErrorHandler eh)
setupParserback to summary
protected PythonParser setupParser(boolean single)