C# Class Mono.CSharp.CSharpParser

The C# Parser
显示文件 Open project: runefs/Marvin Class Usage Examples

Public Properties

Property Type Description
ErrorOutput System.IO.TextWriter
InteractiveResult Class
RoleContracts Interface>.Dictionary
UnexpectedEOF bool
eof_token int
undo Undo
yacc_verbose_flag int

Protected Properties

Property Type Description
yyCheck short[]
yyDgoto short[]
yyFinal int
yyGindex short[]
yyMax int
yyNames string[]
yyRindex short[]
yySindex short[]
yyTable short[]
yydebug jay.yydebug.yyDebug

Public Methods

Method Description
CSharpParser ( Mono.CSharp.SeekableStreamReader reader, Mono.CSharp.CompilationSourceFile file ) : System.Text
CSharpParser ( Mono.CSharp.SeekableStreamReader reader, Mono.CSharp.CompilationSourceFile file, Report report ) : System.Text
GetCurrentRoleContractName ( string roleName ) : string
GetCurrentRoleContractName ( string containerName, string roleName ) : string
parse ( ) : void
yyerror ( string message ) : void
yyerror ( string message, string expected ) : void
yyname ( int token ) : string

Protected Methods

Method Description
yyDefault ( Object first ) : Object
yyExpecting ( int state ) : string[]
yyExpectingTokens ( int state ) : int[]

Private Methods

Method Description
CSharpParser ( ) : System.Text
CheckAttributeTarget ( string a, Mono.CSharp.Location l ) : string
CheckToken ( int error, int yyToken, string msg, Mono.CSharp.Location loc ) : void
ConsumeStoredComment ( ) : string
Error_DuplicateParameterModifier ( Mono.CSharp.Location loc, Parameter mod ) : void
Error_ExpectingTypeName ( Mono.CSharp.Expression expr ) : void
Error_MissingInitializer ( Mono.CSharp.Location loc ) : void
Error_NamedArgumentExpected ( Mono.CSharp.NamedArgument a ) : void
Error_ParameterModifierNotValid ( string modifier, Mono.CSharp.Location loc ) : void
Error_SyntaxError ( int token ) : void
Error_SyntaxError ( int error_code, int token, string msg ) : void
Error_TypeExpected ( Mono.CSharp.Location loc ) : void
Error_UnsafeCodeNotAllowed ( Mono.CSharp.Location loc ) : void
FeatureIsNotAvailable ( Mono.CSharp.Location loc, string feature ) : void
FindField ( string name, Mono.CSharp.Location l ) : Field
FindMethod ( string name, Mono.CSharp.Location l ) : MemberCore
GetCurrentRoleContractName ( ) : string
GetExpecting ( ) : string
GetLocation ( object obj ) : Mono.CSharp.Location
GetSymbolName ( int token ) : string
GetTokenName ( int token ) : string
IsUnaryOperator ( Operator op ) : bool
MakeName ( MemberName class_name ) : MemberName
StoreModifierLocation ( object token, Mono.CSharp.Location loc ) : void
Warning_EmptyStatement ( Mono.CSharp.Location loc ) : void
checkForInteraction ( Expression exp ) : void
end_anonymous ( ParametersBlock anon_block ) : AnonymousMethodExpression
end_block ( Location loc ) : Block
pop_current_class ( ) : DeclSpace
push_current_class ( TypeContainer tc, object partial_token ) : void
start_anonymous ( bool isLambda, ParametersCompiled parameters, bool isAsync, Location loc ) : void
start_block ( Location loc ) : void
syntax_error ( Location l, string msg ) : void
token ( ) : int
value ( ) : Object
yyName ( int token ) : String
yyparse ( yyParser yyLex ) : Object
yyparse ( yyParser yyLex, Object yyd ) : Object

Method Details

CSharpParser() public method

public CSharpParser ( Mono.CSharp.SeekableStreamReader reader, Mono.CSharp.CompilationSourceFile file ) : System.Text
reader Mono.CSharp.SeekableStreamReader
file Mono.CSharp.CompilationSourceFile
return System.Text

CSharpParser() public method

public CSharpParser ( Mono.CSharp.SeekableStreamReader reader, Mono.CSharp.CompilationSourceFile file, Report report ) : System.Text
reader Mono.CSharp.SeekableStreamReader
file Mono.CSharp.CompilationSourceFile
report Report
return System.Text

GetCurrentRoleContractName() public method

public GetCurrentRoleContractName ( string roleName ) : string
roleName string
return string

GetCurrentRoleContractName() public static method

public static GetCurrentRoleContractName ( string containerName, string roleName ) : string
containerName string
roleName string
return string

parse() public method

public parse ( ) : void
return void

yyDefault() protected method

protected yyDefault ( Object first ) : Object
first Object
return Object

yyExpecting() protected method

protected yyExpecting ( int state ) : string[]
state int
return string[]

yyExpectingTokens() protected method

protected yyExpectingTokens ( int state ) : int[]
state int
return int[]

yyerror() public method

public yyerror ( string message ) : void
message string
return void

yyerror() public method

public yyerror ( string message, string expected ) : void
message string
expected string
return void

yyname() public static method

public static yyname ( int token ) : string
token int
return string

Property Details

ErrorOutput public_oe property

public TextWriter,System.IO ErrorOutput
return System.IO.TextWriter

InteractiveResult public_oe property

public Class,Mono.CSharp InteractiveResult
return Class

RoleContracts public_oe static_oe property

public static Dictionary RoleContracts
return Interface>.Dictionary

UnexpectedEOF public_oe property

public bool UnexpectedEOF
return bool

eof_token public_oe property

public int eof_token
return int

undo public_oe property

public Undo undo
return Undo

yacc_verbose_flag static_oe public_oe property

static public int yacc_verbose_flag
return int

yyCheck protected_oe static_oe property

protected static short[] yyCheck
return short[]

yyDgoto protected_oe static_oe property

protected static short[] yyDgoto
return short[]

yyFinal protected_oe static_oe property

protected static int yyFinal
return int

yyGindex protected_oe static_oe property

protected static short[] yyGindex
return short[]

yyMax protected_oe property

protected int yyMax
return int

yyNames protected_oe static_oe property

protected static string[] yyNames
return string[]

yyRindex protected_oe static_oe property

protected static short[] yyRindex
return short[]

yySindex protected_oe static_oe property

protected static short[] yySindex
return short[]

yyTable protected_oe static_oe property

protected static short[] yyTable
return short[]

yydebug protected_oe property

protected jay.yydebug.yyDebug yydebug
return jay.yydebug.yyDebug