C# Class Pytocs.Syntax.Parser

Parses the Python language grammar
Datei anzeigen Open project: uxmal/pytocs Class Usage Examples

Public Methods

Method Description
Parse ( ) : IEnumerable
ParseEval ( ) : void
ParseSingleStatement ( ) : void
Parser ( string filename, Lexer lexer ) : System
and_expr ( ) : Exp
and_test ( ) : Exp
arglist ( Exp core, int posStart ) : Application
argument ( ) : Argument
arith_expr ( ) : Exp
assert_stmt ( ) : Statement
atom ( ) : Exp
augassign ( ) : Op
break_stmt ( ) : Statement
classdef ( ) : ClassDef
comment_stmt ( ) : CommentStatement
comp_for ( ) : CompFor
comp_if ( ) : CompIf
comp_iter ( ) : CompIter
comparison ( ) : Exp
compound_stmt ( ) : Statement
continue_stmt ( ) : Statement
decorated ( ) : Decorated
decorators ( ) : List
del_stmt ( ) : Statement
dictorsetmaker ( int posStart ) : Exp
dotted_as_name ( ) : AliasedName
dotted_as_names ( ) : List
dotted_name ( ) : DottedName
dotted_name_list ( ) : List
except_clause ( ) : AliasedExp
exec_stmt ( ) : ExecStatement
expr ( ) : Exp
expr_stmt ( ) : Statement
exprlist ( ) : Exp
factor ( ) : Exp
for_stmt ( ) : ForStatement
funcdef ( ) : FunctionDef
global_stmt ( ) : Statement
id ( ) : Identifier
if_stmt ( ) : IfStatement
import_as_name ( ) : AliasedName
import_as_names ( ) : List
import_from ( ) : Statement
import_name ( ) : Statement
import_stmt ( ) : Statement
lambdef ( ) : Lambda
lambdef_nocond ( ) : Lambda
nonlocal_stmt ( ) : Statement
not_test ( ) : Exp
or_test ( ) : Exp
parameters ( ) : List
pass_stmt ( ) : Statement
power ( ) : Exp
print_stmt ( ) : Statement
raise_stmt ( ) : Statement
return_stmt ( ) : Statement
shift_expr ( ) : Exp
simple_stmt ( ) : Statement
sliceop ( ) : Exp
small_stmt ( ) : Statement
star_expr ( ) : Exp
stmt ( ) : Statement
subscript ( ) : Slice
subscriptlist ( ) : List
suite ( ) : SuiteStatement
term ( ) : Exp
test ( ) : Exp
test_nocond ( ) : Exp
testlist ( ) : Exp
testlist_comp ( bool tuple ) : Exp
testlist_star_expr ( ) : Exp
trailer ( Exp core ) : Exp
try_stmt ( ) : TryStatement
typedarglist ( ) : List
typedargslist ( ) : List
varargslist ( ) : List
vfpdef ( ) : Identifier
while_stmt ( ) : WhileStatement
with_item ( ) : WithItem
with_stmt ( ) : WithStatement
xor_expr ( ) : Exp
yield_arg ( int posStart ) : Exp
yield_expr ( ) : Exp
yield_stmt ( ) : Statement

Private Methods

Method Description
Error ( string str ) : void
Expect ( TokenType tokenType ) : Token
Peek ( ) : bool
Peek ( ISet tokentypes ) : bool
Peek ( TokenType tokenType ) : bool
Peek ( TokenType tokenType, Token &token ) : bool
Peek ( TokenType tokenType, object value ) : bool
PeekAndDiscard ( TokenType tok ) : bool
PeekAndDiscard ( TokenType tok, Token &token ) : bool
Unexpected ( ) : Exception
Unexpected ( Token token ) : Exception
decorator ( ) : Decorator
fpdef ( ) : Parameter
fplist ( ) : List

Method Details

Parse() public method

public Parse ( ) : IEnumerable
return IEnumerable

ParseEval() public method

public ParseEval ( ) : void
return void

ParseSingleStatement() public method

public ParseSingleStatement ( ) : void
return void

Parser() public method

public Parser ( string filename, Lexer lexer ) : System
filename string
lexer Lexer
return System

and_expr() public method

public and_expr ( ) : Exp
return Exp

and_test() public method

public and_test ( ) : Exp
return Exp

arglist() public method

public arglist ( Exp core, int posStart ) : Application
core Exp
posStart int
return Application

argument() public method

public argument ( ) : Argument
return Argument

arith_expr() public method

public arith_expr ( ) : Exp
return Exp

assert_stmt() public method

public assert_stmt ( ) : Statement
return Statement

atom() public method

public atom ( ) : Exp
return Exp

augassign() public method

public augassign ( ) : Op
return Op

break_stmt() public method

public break_stmt ( ) : Statement
return Statement

classdef() public method

public classdef ( ) : ClassDef
return ClassDef

comment_stmt() public method

public comment_stmt ( ) : CommentStatement
return CommentStatement

comp_for() public method

public comp_for ( ) : CompFor
return CompFor

comp_if() public method

public comp_if ( ) : CompIf
return CompIf

comp_iter() public method

public comp_iter ( ) : CompIter
return CompIter

comparison() public method

public comparison ( ) : Exp
return Exp

compound_stmt() public method

public compound_stmt ( ) : Statement
return Statement

continue_stmt() public method

public continue_stmt ( ) : Statement
return Statement

decorated() public method

public decorated ( ) : Decorated
return Decorated

decorators() public method

public decorators ( ) : List
return List

del_stmt() public method

public del_stmt ( ) : Statement
return Statement

dictorsetmaker() public method

public dictorsetmaker ( int posStart ) : Exp
posStart int
return Exp

dotted_as_name() public method

public dotted_as_name ( ) : AliasedName
return AliasedName

dotted_as_names() public method

public dotted_as_names ( ) : List
return List

dotted_name() public method

public dotted_name ( ) : DottedName
return DottedName

dotted_name_list() public method

public dotted_name_list ( ) : List
return List

except_clause() public method

public except_clause ( ) : AliasedExp
return AliasedExp

exec_stmt() public method

public exec_stmt ( ) : ExecStatement
return ExecStatement

expr() public method

public expr ( ) : Exp
return Exp

expr_stmt() public method

public expr_stmt ( ) : Statement
return Statement

exprlist() public method

public exprlist ( ) : Exp
return Exp

factor() public method

public factor ( ) : Exp
return Exp

for_stmt() public method

public for_stmt ( ) : ForStatement
return ForStatement

funcdef() public method

public funcdef ( ) : FunctionDef
return FunctionDef

global_stmt() public method

public global_stmt ( ) : Statement
return Statement

id() public method

public id ( ) : Identifier
return Identifier

if_stmt() public method

public if_stmt ( ) : IfStatement
return IfStatement

import_as_name() public method

public import_as_name ( ) : AliasedName
return AliasedName

import_as_names() public method

public import_as_names ( ) : List
return List

import_from() public method

public import_from ( ) : Statement
return Statement

import_name() public method

public import_name ( ) : Statement
return Statement

import_stmt() public method

public import_stmt ( ) : Statement
return Statement

lambdef() public method

public lambdef ( ) : Lambda
return Lambda

lambdef_nocond() public method

public lambdef_nocond ( ) : Lambda
return Lambda

nonlocal_stmt() public method

public nonlocal_stmt ( ) : Statement
return Statement

not_test() public method

public not_test ( ) : Exp
return Exp

or_test() public method

public or_test ( ) : Exp
return Exp

parameters() public method

public parameters ( ) : List
return List

pass_stmt() public method

public pass_stmt ( ) : Statement
return Statement

power() public method

public power ( ) : Exp
return Exp

print_stmt() public method

public print_stmt ( ) : Statement
return Statement

raise_stmt() public method

public raise_stmt ( ) : Statement
return Statement

return_stmt() public method

public return_stmt ( ) : Statement
return Statement

shift_expr() public method

public shift_expr ( ) : Exp
return Exp

simple_stmt() public method

public simple_stmt ( ) : Statement
return Statement

sliceop() public method

public sliceop ( ) : Exp
return Exp

small_stmt() public method

public small_stmt ( ) : Statement
return Statement

star_expr() public method

public star_expr ( ) : Exp
return Exp

stmt() public method

public stmt ( ) : Statement
return Statement

subscript() public method

public subscript ( ) : Slice
return Slice

subscriptlist() public method

public subscriptlist ( ) : List
return List

suite() public method

public suite ( ) : SuiteStatement
return SuiteStatement

term() public method

public term ( ) : Exp
return Exp

test() public method

public test ( ) : Exp
return Exp

test_nocond() public method

public test_nocond ( ) : Exp
return Exp

testlist() public method

public testlist ( ) : Exp
return Exp

testlist_comp() public method

public testlist_comp ( bool tuple ) : Exp
tuple bool
return Exp

testlist_star_expr() public method

public testlist_star_expr ( ) : Exp
return Exp

trailer() public method

public trailer ( Exp core ) : Exp
core Exp
return Exp

try_stmt() public method

public try_stmt ( ) : TryStatement
return TryStatement

typedarglist() public method

public typedarglist ( ) : List
return List

typedargslist() public method

public typedargslist ( ) : List
return List

varargslist() public method

public varargslist ( ) : List
return List

vfpdef() public method

public vfpdef ( ) : Identifier
return Identifier

while_stmt() public method

public while_stmt ( ) : WhileStatement
return WhileStatement

with_item() public method

public with_item ( ) : WithItem
return WithItem

with_stmt() public method

public with_stmt ( ) : WithStatement
return WithStatement

xor_expr() public method

public xor_expr ( ) : Exp
return Exp

yield_arg() public method

public yield_arg ( int posStart ) : Exp
posStart int
return Exp

yield_expr() public method

public yield_expr ( ) : Exp
return Exp

yield_stmt() public method

public yield_stmt ( ) : Statement
return Statement