Property | Type | Description | |
---|---|---|---|
AddTrailers | |||
AddTrailers | |||
BadSourceError | |||
CheckSuiteEofError | void | ||
CheckUniqueArgument | void | ||
CheckUniqueParameter | void | ||
CompleteParameterName | void | ||
CreateParser | |||
CreateParserWorker | |||
Eat | bool | ||
EatEndOfInput | IronPython.Compiler.Token | ||
EatNewLine | bool | ||
EatNoEof | bool | ||
Error | |||
ErrorStmt | IronPython.Compiler.Ast.ExpressionStatement | ||
FetchLookahead | void | ||
FinishArgListOrGenExpr | IronPython.Compiler.Ast.Arg[] | ||
FinishArgumentList | IronPython.Compiler.Ast.Arg[] | ||
FinishAssignments | |||
FinishBytesPlus | System.Bytes | ||
FinishCallExpr | IronPython.Compiler.Ast.CallExpression | ||
FinishDictComp | |||
FinishDictOrSetValue | |||
FinishExpressionListAsExpr | |||
FinishKeywordArgument | |||
FinishLambdef | |||
FinishListComp | |||
FinishListValue | |||
FinishOldLambdef | |||
FinishParsing | IronPython.Compiler.Ast.PythonAst | ||
FinishSetComp | |||
FinishSlice | |||
FinishSmallStmt | |||
FinishStringConversion | |||
FinishStringPlus | string | ||
FinishTupleOrGenExp | |||
FinishUnaryNegate | |||
FixName | string | ||
GetAssignOperator | IronPython.Compiler.Ast.PythonOperator | ||
GetBinaryOperator | IronPython.Compiler.Ast.PythonOperator | ||
GetEnd | int | ||
GetErrorMessage | string | ||
GetPrivatePrefix | string | ||
GetSourceSpan | Microsoft.Scripting.SourceSpan | ||
GetStart | int | ||
InternalParseInteractiveInput | |||
IsPrivateName | bool | ||
MakeTupleOrExpr | |||
MakeTupleOrExpr | |||
MarkFunctionContainsFinally | void | ||
MaybeEat | bool | ||
MaybeEatNewLine | bool | ||
MaybeParseAsName | string | ||
NestGenExpr | Statement | ||
NeverTestToken | bool | ||
NextToken | Token | ||
ParseAndTest | Expression | ||
ParseAsNameList | void | ||
ParseAssertStmt | AssertStatement | ||
ParseClassDef | ClassDefinition | ||
ParseClassOrFuncBody | Statement | ||
ParseCompFor | ComprehensionFor | ||
ParseCompIf | ComprehensionIf | ||
ParseCompIter | ComprehensionIterator[] | ||
ParseComparison | Expression | ||
ParseConditionalTest | Expression | ||
ParseDecorated | Statement | ||
ParseDecorators | List |
||
ParseDelStmt | Statement | ||
ParseExecStmt | ExecStatement | ||
ParseExpr | Expression | ||
ParseExpr | Expression | ||
ParseExprList | List |
||
ParseExprStmt | Statement | ||
ParseExpression | Expression | ||
ParseExpressionList | List |
||
ParseFactor | Expression | ||
ParseFileWorker | PythonAst | ||
ParseFinallySuite | Statement | ||
ParseForStmt | ForStatement | ||
ParseFromImportStmt | FromImportStatement | ||
ParseFuncDef | FunctionDefinition | ||
ParseGenExprFor | ForStatement | ||
ParseGenExprIf | IfStatement | ||
ParseGeneratorExpression | Expression | ||
ParseGlobalStmt | GlobalStatement | ||
ParseIfStmt | IfStatement | ||
ParseIfStmtTest | IfStatementTest | ||
ParseImportStmt | ImportStatement | ||
ParseLambdaHelperEnd | Expression | ||
ParseLambdaHelperStart | FunctionDefinition | ||
ParseListCompFor | ComprehensionFor | ||
ParseListCompIter | ComprehensionIterator[] | ||
ParseLoopSuite | Statement | ||
ParseModuleName | ModuleName | ||
ParseNotTest | Expression | ||
ParseOldExpression | Expression | ||
ParseOldExpressionList | List |
||
ParseOldExpressionListAsExpr | Expression | ||
ParseOrTest | Expression | ||
ParseParameter | Parameter | ||
ParseParameterName | Parameter | ||
ParsePower | Expression | ||
ParsePrimary | Expression | ||
ParsePrintStmt | PrintStatement | ||
ParseRaiseStmt | RaiseStatement | ||
ParseRelativeModuleName | ModuleName | ||
ParseReturnStmt | Statement | ||
ParseSimpleStmt | Statement | ||
ParseSliceEnd | Expression | ||
ParseSmallStmt | Statement | ||
ParseStmt | Statement | ||
ParseSublist | Expression | ||
ParseSublistParameter | Expression | ||
ParseSubscriptList | Expression | ||
ParseSuite | Statement | ||
ParseTarget | Expression | ||
ParseTargetList | List |
||
ParseTestList | List |
||
ParseTestListAsExpr | Expression | ||
ParseTestListAsExpr | Expression | ||
ParseTestListAsExprError | Expression | ||
ParseTestListAsExpression | Expression | ||
ParseTryStatement | Statement | ||
ParseTryStmtHandler | TryStatementHandler | ||
ParseVarArgsList | Parameter[] | ||
ParseWhileStmt | WhileStatement | ||
ParseWithItem | WithItem | ||
ParseWithStmt | WithStatement | ||
ParseYieldExpression | Expression | ||
ParseYieldStmt | Statement | ||
Parser | System | ||
PeekToken | Token | ||
PeekToken | bool | ||
PeekToken | bool | ||
PopFunction | FunctionDefinition | ||
PushFunction | void | ||
ReadName | string | ||
ReadNameMaybeNone | string | ||
ReadNames | string[] | ||
ReportSyntaxError | void | ||
ReportSyntaxError | void | ||
ReportSyntaxError | void | ||
ReportSyntaxError | void | ||
ReportSyntaxError | void | ||
ReportSyntaxError | void | ||
SetPrivatePrefix | string | ||
StartParsing | void |
Method | Description | |
---|---|---|
CreateParser ( CompilerContext context, PythonOptions options ) : |
||
Dispose ( ) : void | ||
GetNextAutoIndentSize ( string text, int autoIndentTabWidth ) : int |
Given the interactive text input for a compound statement, calculate what the indentation level of the next line should be
|
|
ParseFile ( bool makeModule ) : PythonAst | ||
ParseFile ( bool makeModule, bool returnValue ) : PythonAst | ||
ParseInteractiveCode ( ScriptCodeParseResult &properties ) : PythonAst |
Parse one or more lines of interactive input
|
|
ParseSingleStatement ( ) : PythonAst | ||
ParseTopExpression ( ) : PythonAst | ||
Reset ( ) : void | ||
Reset ( SourceUnit sourceUnit, ModuleOptions languageFeatures ) : void |
Method | Description | |
---|---|---|
AddTrailers ( |
||
AddTrailers ( |
||
BadSourceError ( |
||
CheckSuiteEofError ( IronPython.Compiler.TokenWithSpan cur ) : void | ||
CheckUniqueArgument ( List |
||
CheckUniqueParameter ( HashSet |
||
CompleteParameterName ( |
||
CreateParser ( CompilerContext context, PythonOptions options, bool verbatim ) : |
||
CreateParserWorker ( CompilerContext context, PythonOptions options, bool verbatim ) : |
||
Eat ( TokenKind kind ) : bool | ||
EatEndOfInput ( ) : IronPython.Compiler.Token | ||
EatNewLine ( ) : bool |
Eats a new line token throwing if the next token isn't a new line. Python always tokenizes to have only 1 new line character in a row. But we also craete NLToken's and ignore them except for error reporting purposes. This gives us the same errors as CPython and also matches the behavior of the standard library tokenize module. This function eats any present NL tokens and throws them away.
|
|
EatNoEof ( TokenKind kind ) : bool | ||
Error ( ) : |
||
ErrorStmt ( ) : IronPython.Compiler.Ast.ExpressionStatement | ||
FetchLookahead ( ) : void | ||
FinishArgListOrGenExpr ( ) : IronPython.Compiler.Ast.Arg[] | ||
FinishArgumentList ( |
||
FinishAssignments ( |
||
FinishBytesPlus ( System.Bytes s ) : System.Bytes | ||
FinishCallExpr ( |
||
FinishDictComp ( |
||
FinishDictOrSetValue ( ) : |
||
FinishExpressionListAsExpr ( |
||
FinishKeywordArgument ( |
||
FinishLambdef ( ) : |
||
FinishListComp ( |
||
FinishListValue ( ) : |
||
FinishOldLambdef ( ) : |
||
FinishParsing ( |
||
FinishSetComp ( |
||
FinishSlice ( |
||
FinishSmallStmt ( |
||
FinishStringConversion ( ) : |
||
FinishStringPlus ( string s ) : string | ||
FinishTupleOrGenExp ( ) : |
||
FinishUnaryNegate ( ) : |
||
FixName ( string name ) : string | ||
GetAssignOperator ( IronPython.Compiler.Token t ) : IronPython.Compiler.Ast.PythonOperator | ||
GetBinaryOperator ( IronPython.Compiler.OperatorToken token ) : IronPython.Compiler.Ast.PythonOperator | ||
GetEnd ( ) : int | ||
GetErrorMessage ( IronPython.Compiler.Token t, int errorCode ) : string | ||
GetPrivatePrefix ( string name ) : string | ||
GetSourceSpan ( ) : Microsoft.Scripting.SourceSpan | ||
GetStart ( ) : int | ||
InternalParseInteractiveInput ( bool &parsingMultiLineCmpdStmt, bool &isEmptyStmt ) : |
||
IsPrivateName ( string name ) : bool | ||
MakeTupleOrExpr ( List |
||
MakeTupleOrExpr ( List |
||
MarkFunctionContainsFinally ( ) : void | ||
MaybeEat ( TokenKind kind ) : bool | ||
MaybeEatNewLine ( ) : bool |
Maybe eats a new line token returning true if the token was eaten. Python always tokenizes to have only 1 new line character in a row. But we also craete NLToken's and ignore them except for error reporting purposes. This gives us the same errors as CPython and also matches the behavior of the standard library tokenize module. This function eats any present NL tokens and throws them away.
|
|
MaybeParseAsName ( ) : string | ||
NestGenExpr ( Statement current, Statement nested ) : Statement | ||
NeverTestToken ( Token t ) : bool | ||
NextToken ( ) : Token | ||
ParseAndTest ( ) : Expression | ||
ParseAsNameList ( List |
||
ParseAssertStmt ( ) : AssertStatement | ||
ParseClassDef ( ) : ClassDefinition | ||
ParseClassOrFuncBody ( ) : Statement | ||
ParseCompFor ( ) : ComprehensionFor | ||
ParseCompIf ( ) : ComprehensionIf | ||
ParseCompIter ( ) : ComprehensionIterator[] | ||
ParseComparison ( ) : Expression | ||
ParseConditionalTest ( Expression trueExpr ) : Expression | ||
ParseDecorated ( ) : Statement | ||
ParseDecorators ( ) : List |
||
ParseDelStmt ( ) : Statement | ||
ParseExecStmt ( ) : ExecStatement | ||
ParseExpr ( ) : Expression | ||
ParseExpr ( int precedence ) : Expression | ||
ParseExprList ( ) : List |
||
ParseExprStmt ( ) : Statement | ||
ParseExpression ( ) : Expression | ||
ParseExpressionList ( bool &trailingComma ) : List |
||
ParseFactor ( ) : Expression | ||
ParseFileWorker ( bool makeModule, bool returnValue ) : PythonAst | ||
ParseFinallySuite ( Statement finallySuite ) : Statement | ||
ParseForStmt ( ) : ForStatement | ||
ParseFromImportStmt ( ) : FromImportStatement | ||
ParseFuncDef ( ) : FunctionDefinition | ||
ParseGenExprFor ( ) : ForStatement | ||
ParseGenExprIf ( ) : IfStatement | ||
ParseGeneratorExpression ( Expression expr ) : Expression | ||
ParseGlobalStmt ( ) : GlobalStatement | ||
ParseIfStmt ( ) : IfStatement | ||
ParseIfStmtTest ( ) : IfStatementTest | ||
ParseImportStmt ( ) : ImportStatement | ||
ParseLambdaHelperEnd ( FunctionDefinition func, Expression expr ) : Expression | ||
ParseLambdaHelperStart ( string name ) : FunctionDefinition | ||
ParseListCompFor ( ) : ComprehensionFor | ||
ParseListCompIter ( ) : ComprehensionIterator[] | ||
ParseLoopSuite ( ) : Statement | ||
ParseModuleName ( ) : ModuleName | ||
ParseNotTest ( ) : Expression | ||
ParseOldExpression ( ) : Expression | ||
ParseOldExpressionList ( bool &trailingComma ) : List |
||
ParseOldExpressionListAsExpr ( ) : Expression | ||
ParseOrTest ( ) : Expression | ||
ParseParameter ( int position, HashSet |
||
ParseParameterName ( HashSet |
||
ParsePower ( ) : Expression | ||
ParsePrimary ( ) : Expression | ||
ParsePrintStmt ( ) : PrintStatement | ||
ParseRaiseStmt ( ) : RaiseStatement | ||
ParseRelativeModuleName ( ) : ModuleName | ||
ParseReturnStmt ( ) : Statement | ||
ParseSimpleStmt ( ) : Statement | ||
ParseSliceEnd ( ) : Expression | ||
ParseSmallStmt ( ) : Statement | ||
ParseStmt ( ) : Statement | ||
ParseSublist ( HashSet |
||
ParseSublistParameter ( HashSet |
||
ParseSubscriptList ( ) : Expression | ||
ParseSuite ( ) : Statement | ||
ParseTarget ( ) : Expression | ||
ParseTargetList ( bool &trailingComma ) : List |
||
ParseTestList ( ) : List |
||
ParseTestListAsExpr ( ) : Expression | ||
ParseTestListAsExpr ( Expression expr ) : Expression | ||
ParseTestListAsExprError ( ) : Expression | ||
ParseTestListAsExpression ( ) : Expression | ||
ParseTryStatement ( ) : Statement | ||
ParseTryStmtHandler ( ) : TryStatementHandler | ||
ParseVarArgsList ( TokenKind terminator ) : Parameter[] | ||
ParseWhileStmt ( ) : WhileStatement | ||
ParseWithItem ( ) : WithItem | ||
ParseWithStmt ( ) : WithStatement | ||
ParseYieldExpression ( ) : Expression |
Peek if the next token is a 'yield' and parse a yield expression. Else return null. Called w/ yield already eaten.
|
|
ParseYieldStmt ( ) : Statement | ||
Parser ( CompilerContext context, Tokenizer tokenizer, ErrorSink errorSink, ParserSink parserSink, ModuleOptions languageFeatures ) : System | ||
PeekToken ( ) : Token | ||
PeekToken ( Token check ) : bool | ||
PeekToken ( TokenKind kind ) : bool | ||
PopFunction ( ) : FunctionDefinition | ||
PushFunction ( FunctionDefinition function ) : void | ||
ReadName ( ) : string | ||
ReadNameMaybeNone ( ) : string | ||
ReadNames ( ) : string[] | ||
ReportSyntaxError ( Token t, IndexSpan span, int errorCode, bool allowIncomplete ) : void | ||
ReportSyntaxError ( TokenWithSpan t ) : void | ||
ReportSyntaxError ( TokenWithSpan t, int errorCode ) : void | ||
ReportSyntaxError ( int start, int end, string message ) : void | ||
ReportSyntaxError ( int start, int end, string message, int errorCode ) : void | ||
ReportSyntaxError ( string message ) : void | ||
SetPrivatePrefix ( string name ) : string | ||
StartParsing ( ) : void |
public static CreateParser ( CompilerContext context, PythonOptions options ) : |
||
context | CompilerContext | |
options | PythonOptions | |
return |
public static GetNextAutoIndentSize ( string text, int autoIndentTabWidth ) : int | ||
text | string | |
autoIndentTabWidth | int | |
return | int |
public ParseFile ( bool makeModule ) : PythonAst | ||
makeModule | bool | |
return | PythonAst |
public ParseFile ( bool makeModule, bool returnValue ) : PythonAst | ||
makeModule | bool | |
returnValue | bool | |
return | PythonAst |
public ParseInteractiveCode ( ScriptCodeParseResult &properties ) : PythonAst | ||
properties | ScriptCodeParseResult | |
return | PythonAst |
public Reset ( SourceUnit sourceUnit, ModuleOptions languageFeatures ) : void | ||
sourceUnit | SourceUnit | |
languageFeatures | ModuleOptions | |
return | void |