C# Class UnityScript.Parser.UnityScriptParser

Inheritance: antlr.LLkParser
Afficher le fichier Open project: CarlosHBC/UnityDecompiled Class Usage Examples

Protected Properties

Свойство Type Description
_attributes AttributeCollection
_context Boo.Lang.Compiler.CompilerContext
_last IToken
_loopStack List

Méthodes publiques

Méthode Description
AddFunctionTo ( Boo.Lang.Compiler.Ast.TypeDefinition type, IToken nameToken, IToken getter, IToken setter ) : Method
EnterLoop ( object stmt ) : void
FlushAttributes ( INodeWithAttributes node ) : void
GetCurrentLoopLabel ( ) : string
GlobalVariablesBecomeFields ( ) : bool
IsConstructorName ( string name, TypeDefinition type ) : bool
IsLabelInUse ( Node node ) : bool
LeaveLoop ( object stmt ) : void
MacroName ( string baseName ) : string
ParseExpression ( TextReader expression, string fileName, Boo context ) : Expression
ParseExpression ( string expression, string fileName, Boo context ) : Expression
ParseIntegerLiteralExpression ( IToken token, string s, bool isLong ) : IntegerLiteralExpression
ParseReader ( TextReader reader, string fileName, Boo context, CompileUnit targetCompileUnit ) : void
SetEndSourceLocation ( Node node, IToken token ) : void
SetUpLoopLabel ( Node node ) : string
TabSizeFromContext ( Boo context ) : int
ToLexicalInfo ( IToken token ) : LexicalInfo
ToSourceLocation ( IToken token ) : SourceLocation
UnityScriptLexerFor ( TextReader reader, string fileName, int tabSize ) : UnityScriptLexer
UnityScriptParser ( ParserSharedInputState state ) : antlr
UnityScriptParser ( TokenBuffer tokenBuf ) : antlr
UnityScriptParser ( TokenStream lexer ) : antlr
anonymous_function_type ( ) : TypeReference
array_initializer ( ) : Expression
array_literal ( ) : Expression
assignment_expression ( ) : Expression
atom ( ) : Expression
attribute ( ) : void
attribute_constructor ( ) : Attribute
attribute_parameter ( Attribute attr ) : void
attributes ( ) : void
bitwise_and ( ) : Expression
bitwise_or ( ) : Expression
bitwise_xor ( ) : Expression
block ( Block b ) : void
bool_literal ( ) : BoolLiteralExpression
break_statement ( Block b ) : void
builtin_statement ( Block b ) : void
class_declaration ( TypeDefinition parent ) : TypeMember
comparison ( ) : Expression
compound_or_single_stmt ( Block b ) : void
compound_statement ( Block b ) : void
conditional_expression ( ) : Expression
consume ( ) : void
continue_statement ( Block b ) : void
declaration ( ) : Declaration
declaration_statement ( Block b ) : void
do_while_statement ( Block container ) : void
double_literal ( ) : DoubleLiteralExpression
enum_declaration ( TypeDefinition container ) : TypeMember
enum_member ( EnumDefinition container ) : void
eos ( ) : IToken
equality ( ) : Expression
expression ( ) : Expression
expression_list ( ExpressionCollection ec ) : void
expression_pair ( ) : ExpressionPair
expression_statement ( Block b ) : void
field_member ( TypeDefinition cd ) : TypeMember
finally_block ( TryStatement s ) : void
for_c ( Block container ) : Statement
for_in ( Block container ) : Statement
for_statement ( Block container ) : void
function_body ( Method method ) : void
function_expression ( ) : BlockExpression
function_member ( TypeDefinition cd ) : TypeMember
function_type_parameters ( ParameterDeclarationCollection parameters ) : void
hash_literal ( ) : HashLiteralExpression
identifier ( ) : IToken
if_statement ( Block container ) : void
import_directive ( Module container ) : void
integer_literal ( ) : IntegerLiteralExpression
interface_declaration ( TypeDefinition parent ) : TypeMember
interface_member ( TypeDefinition parent ) : void
literal ( ) : Expression
logical_and ( ) : Expression
logical_or ( ) : Expression
macro_application_block ( Block container ) : void
macro_application_test ( ) : void
member ( ) : Token
member_modifiers ( ) : TypeMemberModifiers
member_reference_expression ( Expression target ) : Expression
module_field ( Module m ) : void
module_member ( Module module ) : void
module_member_modifiers ( ) : TypeMemberModifiers
new_array_expression ( ) : Expression
new_expression ( ) : Expression
null_literal ( ) : NullLiteralExpression
parameter_declaration ( INodeWithParameters m ) : void
parameter_declaration_list ( INodeWithParameters m ) : void
paren_expression ( ) : Expression
postfix_unary_expression ( ) : Expression
pragma_directive ( Module container ) : void
prefix_unary_expression ( ) : Expression
qname ( ) : Token
re_literal ( ) : RELiteralExpression
reference_expression ( ) : Expression
reportError ( RecognitionException x ) : void
return_statement ( Block b ) : void
script_or_assembly_attribute ( Module m ) : void
self_literal ( ) : SelfLiteralExpression
shift ( ) : Expression
simple_reference_expression ( ) : Expression
simple_type_reference ( ) : TypeReference
slice ( SlicingExpression se ) : void
slicing_expression ( ) : Expression
start ( CompileUnit cu ) : void
statement ( Block b ) : void
string_literal ( ) : Expression
sum ( ) : Expression
super_literal ( ) : SuperLiteralExpression
switch_statement ( Block container ) : void
term ( ) : Expression
throw_statement ( Block b ) : void
try_statement ( Block container ) : void
type_reference ( ) : TypeReference
type_reference_list ( TypeReferenceCollection typeReferences ) : void
typeof_expression ( ) : Expression
unary_expression ( ) : Expression
while_statement ( Block container ) : void
yield_statement ( Block b ) : void

Méthodes protégées

Méthode Description
KeywordCannotBeUsedAsAnIdentifier ( IToken token ) : void
ReportError ( CompilerError error ) : void
SemicolonExpected ( ) : void
UnexpectedToken ( IToken token ) : void
UnityScriptParser ( TokenBuffer tokenBuf, int k ) : antlr
UnityScriptParser ( TokenStream lexer, int k ) : antlr
VirtualKeywordHasNoEffect ( IToken token ) : void
initialize ( ) : void
typeof_expression_alt ( ) : Expression
typeof_with_expression ( ) : Expression
typeof_with_typeref ( ) : Expression

Private Methods

Méthode Description
mk_tokenSet_0_ ( ) : long[]
mk_tokenSet_10_ ( ) : long[]
mk_tokenSet_11_ ( ) : long[]
mk_tokenSet_12_ ( ) : long[]
mk_tokenSet_13_ ( ) : long[]
mk_tokenSet_14_ ( ) : long[]
mk_tokenSet_15_ ( ) : long[]
mk_tokenSet_16_ ( ) : long[]
mk_tokenSet_17_ ( ) : long[]
mk_tokenSet_18_ ( ) : long[]
mk_tokenSet_19_ ( ) : long[]
mk_tokenSet_1_ ( ) : long[]
mk_tokenSet_20_ ( ) : long[]
mk_tokenSet_21_ ( ) : long[]
mk_tokenSet_22_ ( ) : long[]
mk_tokenSet_23_ ( ) : long[]
mk_tokenSet_24_ ( ) : long[]
mk_tokenSet_25_ ( ) : long[]
mk_tokenSet_26_ ( ) : long[]
mk_tokenSet_27_ ( ) : long[]
mk_tokenSet_28_ ( ) : long[]
mk_tokenSet_29_ ( ) : long[]
mk_tokenSet_2_ ( ) : long[]
mk_tokenSet_30_ ( ) : long[]
mk_tokenSet_31_ ( ) : long[]
mk_tokenSet_32_ ( ) : long[]
mk_tokenSet_33_ ( ) : long[]
mk_tokenSet_34_ ( ) : long[]
mk_tokenSet_35_ ( ) : long[]
mk_tokenSet_36_ ( ) : long[]
mk_tokenSet_37_ ( ) : long[]
mk_tokenSet_38_ ( ) : long[]
mk_tokenSet_39_ ( ) : long[]
mk_tokenSet_3_ ( ) : long[]
mk_tokenSet_40_ ( ) : long[]
mk_tokenSet_41_ ( ) : long[]
mk_tokenSet_42_ ( ) : long[]
mk_tokenSet_43_ ( ) : long[]
mk_tokenSet_44_ ( ) : long[]
mk_tokenSet_45_ ( ) : long[]
mk_tokenSet_46_ ( ) : long[]
mk_tokenSet_47_ ( ) : long[]
mk_tokenSet_48_ ( ) : long[]
mk_tokenSet_49_ ( ) : long[]
mk_tokenSet_4_ ( ) : long[]
mk_tokenSet_50_ ( ) : long[]
mk_tokenSet_51_ ( ) : long[]
mk_tokenSet_52_ ( ) : long[]
mk_tokenSet_53_ ( ) : long[]
mk_tokenSet_54_ ( ) : long[]
mk_tokenSet_55_ ( ) : long[]
mk_tokenSet_56_ ( ) : long[]
mk_tokenSet_57_ ( ) : long[]
mk_tokenSet_58_ ( ) : long[]
mk_tokenSet_59_ ( ) : long[]
mk_tokenSet_5_ ( ) : long[]
mk_tokenSet_60_ ( ) : long[]
mk_tokenSet_6_ ( ) : long[]
mk_tokenSet_7_ ( ) : long[]
mk_tokenSet_8_ ( ) : long[]
mk_tokenSet_9_ ( ) : long[]

Method Details

AddFunctionTo() public méthode

public AddFunctionTo ( Boo.Lang.Compiler.Ast.TypeDefinition type, IToken nameToken, IToken getter, IToken setter ) : Method
type Boo.Lang.Compiler.Ast.TypeDefinition
nameToken IToken
getter IToken
setter IToken
Résultat Boo.Lang.Compiler.Ast.Method

EnterLoop() public méthode

public EnterLoop ( object stmt ) : void
stmt object
Résultat void

FlushAttributes() public méthode

public FlushAttributes ( INodeWithAttributes node ) : void
node INodeWithAttributes
Résultat void

GetCurrentLoopLabel() public méthode

public GetCurrentLoopLabel ( ) : string
Résultat string

GlobalVariablesBecomeFields() public méthode

public GlobalVariablesBecomeFields ( ) : bool
Résultat bool

IsConstructorName() public static méthode

public static IsConstructorName ( string name, TypeDefinition type ) : bool
name string
type TypeDefinition
Résultat bool

IsLabelInUse() public méthode

public IsLabelInUse ( Node node ) : bool
node Node
Résultat bool

KeywordCannotBeUsedAsAnIdentifier() protected méthode

protected KeywordCannotBeUsedAsAnIdentifier ( IToken token ) : void
token IToken
Résultat void

LeaveLoop() public méthode

public LeaveLoop ( object stmt ) : void
stmt object
Résultat void

MacroName() public méthode

public MacroName ( string baseName ) : string
baseName string
Résultat string

ParseExpression() public static méthode

public static ParseExpression ( TextReader expression, string fileName, Boo context ) : Expression
expression TextReader
fileName string
context Boo
Résultat Expression

ParseExpression() public static méthode

public static ParseExpression ( string expression, string fileName, Boo context ) : Expression
expression string
fileName string
context Boo
Résultat Expression

ParseIntegerLiteralExpression() public static méthode

public static ParseIntegerLiteralExpression ( IToken token, string s, bool isLong ) : IntegerLiteralExpression
token IToken
s string
isLong bool
Résultat IntegerLiteralExpression

ParseReader() public static méthode

public static ParseReader ( TextReader reader, string fileName, Boo context, CompileUnit targetCompileUnit ) : void
reader TextReader
fileName string
context Boo
targetCompileUnit CompileUnit
Résultat void

ReportError() protected méthode

protected ReportError ( CompilerError error ) : void
error CompilerError
Résultat void

SemicolonExpected() protected méthode

protected SemicolonExpected ( ) : void
Résultat void

SetEndSourceLocation() public static méthode

public static SetEndSourceLocation ( Node node, IToken token ) : void
node Node
token IToken
Résultat void

SetUpLoopLabel() public méthode

public SetUpLoopLabel ( Node node ) : string
node Node
Résultat string

TabSizeFromContext() public static méthode

public static TabSizeFromContext ( Boo context ) : int
context Boo
Résultat int

ToLexicalInfo() public static méthode

public static ToLexicalInfo ( IToken token ) : LexicalInfo
token IToken
Résultat LexicalInfo

ToSourceLocation() public static méthode

public static ToSourceLocation ( IToken token ) : SourceLocation
token IToken
Résultat SourceLocation

UnexpectedToken() protected méthode

protected UnexpectedToken ( IToken token ) : void
token IToken
Résultat void

UnityScriptLexerFor() public static méthode

public static UnityScriptLexerFor ( TextReader reader, string fileName, int tabSize ) : UnityScriptLexer
reader TextReader
fileName string
tabSize int
Résultat UnityScriptLexer

UnityScriptParser() public méthode

public UnityScriptParser ( ParserSharedInputState state ) : antlr
state ParserSharedInputState
Résultat antlr

UnityScriptParser() public méthode

public UnityScriptParser ( TokenBuffer tokenBuf ) : antlr
tokenBuf TokenBuffer
Résultat antlr

UnityScriptParser() protected méthode

protected UnityScriptParser ( TokenBuffer tokenBuf, int k ) : antlr
tokenBuf TokenBuffer
k int
Résultat antlr

UnityScriptParser() public méthode

public UnityScriptParser ( TokenStream lexer ) : antlr
lexer TokenStream
Résultat antlr

UnityScriptParser() protected méthode

protected UnityScriptParser ( TokenStream lexer, int k ) : antlr
lexer TokenStream
k int
Résultat antlr

VirtualKeywordHasNoEffect() protected méthode

protected VirtualKeywordHasNoEffect ( IToken token ) : void
token IToken
Résultat void

anonymous_function_type() public méthode

public anonymous_function_type ( ) : TypeReference
Résultat TypeReference

array_initializer() public méthode

public array_initializer ( ) : Expression
Résultat Expression

array_literal() public méthode

public array_literal ( ) : Expression
Résultat Expression

assignment_expression() public méthode

public assignment_expression ( ) : Expression
Résultat Expression

atom() public méthode

public atom ( ) : Expression
Résultat Expression

attribute() public méthode

public attribute ( ) : void
Résultat void

attribute_constructor() public méthode

public attribute_constructor ( ) : Attribute
Résultat Attribute

attribute_parameter() public méthode

public attribute_parameter ( Attribute attr ) : void
attr Attribute
Résultat void

attributes() public méthode

public attributes ( ) : void
Résultat void

bitwise_and() public méthode

public bitwise_and ( ) : Expression
Résultat Expression

bitwise_or() public méthode

public bitwise_or ( ) : Expression
Résultat Expression

bitwise_xor() public méthode

public bitwise_xor ( ) : Expression
Résultat Expression

block() public méthode

public block ( Block b ) : void
b Block
Résultat void

bool_literal() public méthode

public bool_literal ( ) : BoolLiteralExpression
Résultat BoolLiteralExpression

break_statement() public méthode

public break_statement ( Block b ) : void
b Block
Résultat void

builtin_statement() public méthode

public builtin_statement ( Block b ) : void
b Block
Résultat void

class_declaration() public méthode

public class_declaration ( TypeDefinition parent ) : TypeMember
parent TypeDefinition
Résultat TypeMember

comparison() public méthode

public comparison ( ) : Expression
Résultat Expression

compound_or_single_stmt() public méthode

public compound_or_single_stmt ( Block b ) : void
b Block
Résultat void

compound_statement() public méthode

public compound_statement ( Block b ) : void
b Block
Résultat void

conditional_expression() public méthode

public conditional_expression ( ) : Expression
Résultat Expression

consume() public méthode

public consume ( ) : void
Résultat void

continue_statement() public méthode

public continue_statement ( Block b ) : void
b Block
Résultat void

declaration() public méthode

public declaration ( ) : Declaration
Résultat Declaration

declaration_statement() public méthode

public declaration_statement ( Block b ) : void
b Block
Résultat void

do_while_statement() public méthode

public do_while_statement ( Block container ) : void
container Block
Résultat void

double_literal() public méthode

public double_literal ( ) : DoubleLiteralExpression
Résultat DoubleLiteralExpression

enum_declaration() public méthode

public enum_declaration ( TypeDefinition container ) : TypeMember
container TypeDefinition
Résultat TypeMember

enum_member() public méthode

public enum_member ( EnumDefinition container ) : void
container EnumDefinition
Résultat void

eos() public méthode

public eos ( ) : IToken
Résultat IToken

equality() public méthode

public equality ( ) : Expression
Résultat Expression

expression() public méthode

public expression ( ) : Expression
Résultat Expression

expression_list() public méthode

public expression_list ( ExpressionCollection ec ) : void
ec ExpressionCollection
Résultat void

expression_pair() public méthode

public expression_pair ( ) : ExpressionPair
Résultat ExpressionPair

expression_statement() public méthode

public expression_statement ( Block b ) : void
b Block
Résultat void

field_member() public méthode

public field_member ( TypeDefinition cd ) : TypeMember
cd TypeDefinition
Résultat TypeMember

finally_block() public méthode

public finally_block ( TryStatement s ) : void
s TryStatement
Résultat void

for_c() public méthode

public for_c ( Block container ) : Statement
container Block
Résultat Statement

for_in() public méthode

public for_in ( Block container ) : Statement
container Block
Résultat Statement

for_statement() public méthode

public for_statement ( Block container ) : void
container Block
Résultat void

function_body() public méthode

public function_body ( Method method ) : void
method Method
Résultat void

function_expression() public méthode

public function_expression ( ) : BlockExpression
Résultat BlockExpression

function_member() public méthode

public function_member ( TypeDefinition cd ) : TypeMember
cd TypeDefinition
Résultat TypeMember

function_type_parameters() public méthode

public function_type_parameters ( ParameterDeclarationCollection parameters ) : void
parameters ParameterDeclarationCollection
Résultat void

hash_literal() public méthode

public hash_literal ( ) : HashLiteralExpression
Résultat HashLiteralExpression

identifier() public méthode

public identifier ( ) : IToken
Résultat IToken

if_statement() public méthode

public if_statement ( Block container ) : void
container Block
Résultat void

import_directive() public méthode

public import_directive ( Module container ) : void
container Module
Résultat void

initialize() protected méthode

protected initialize ( ) : void
Résultat void

integer_literal() public méthode

public integer_literal ( ) : IntegerLiteralExpression
Résultat IntegerLiteralExpression

interface_declaration() public méthode

public interface_declaration ( TypeDefinition parent ) : TypeMember
parent TypeDefinition
Résultat TypeMember

interface_member() public méthode

public interface_member ( TypeDefinition parent ) : void
parent TypeDefinition
Résultat void

literal() public méthode

public literal ( ) : Expression
Résultat Expression

logical_and() public méthode

public logical_and ( ) : Expression
Résultat Expression

logical_or() public méthode

public logical_or ( ) : Expression
Résultat Expression

macro_application_block() public méthode

public macro_application_block ( Block container ) : void
container Block
Résultat void

macro_application_test() public méthode

public macro_application_test ( ) : void
Résultat void

member() public méthode

public member ( ) : Token
Résultat Token

member_modifiers() public méthode

public member_modifiers ( ) : TypeMemberModifiers
Résultat TypeMemberModifiers

member_reference_expression() public méthode

public member_reference_expression ( Expression target ) : Expression
target Expression
Résultat Expression

module_field() public méthode

public module_field ( Module m ) : void
m Module
Résultat void

module_member() public méthode

public module_member ( Module module ) : void
module Module
Résultat void

module_member_modifiers() public méthode

public module_member_modifiers ( ) : TypeMemberModifiers
Résultat TypeMemberModifiers

new_array_expression() public méthode

public new_array_expression ( ) : Expression
Résultat Expression

new_expression() public méthode

public new_expression ( ) : Expression
Résultat Expression

null_literal() public méthode

public null_literal ( ) : NullLiteralExpression
Résultat NullLiteralExpression

parameter_declaration() public méthode

public parameter_declaration ( INodeWithParameters m ) : void
m INodeWithParameters
Résultat void

parameter_declaration_list() public méthode

public parameter_declaration_list ( INodeWithParameters m ) : void
m INodeWithParameters
Résultat void

paren_expression() public méthode

public paren_expression ( ) : Expression
Résultat Expression

postfix_unary_expression() public méthode

public postfix_unary_expression ( ) : Expression
Résultat Expression

pragma_directive() public méthode

public pragma_directive ( Module container ) : void
container Module
Résultat void

prefix_unary_expression() public méthode

public prefix_unary_expression ( ) : Expression
Résultat Expression

qname() public méthode

public qname ( ) : Token
Résultat Token

re_literal() public méthode

public re_literal ( ) : RELiteralExpression
Résultat RELiteralExpression

reference_expression() public méthode

public reference_expression ( ) : Expression
Résultat Expression

reportError() public méthode

public reportError ( RecognitionException x ) : void
x RecognitionException
Résultat void

return_statement() public méthode

public return_statement ( Block b ) : void
b Block
Résultat void

script_or_assembly_attribute() public méthode

public script_or_assembly_attribute ( Module m ) : void
m Module
Résultat void

self_literal() public méthode

public self_literal ( ) : SelfLiteralExpression
Résultat SelfLiteralExpression

shift() public méthode

public shift ( ) : Expression
Résultat Expression

simple_reference_expression() public méthode

public simple_reference_expression ( ) : Expression
Résultat Expression

simple_type_reference() public méthode

public simple_type_reference ( ) : TypeReference
Résultat TypeReference

slice() public méthode

public slice ( SlicingExpression se ) : void
se SlicingExpression
Résultat void

slicing_expression() public méthode

public slicing_expression ( ) : Expression
Résultat Expression

start() public méthode

public start ( CompileUnit cu ) : void
cu CompileUnit
Résultat void

statement() public méthode

public statement ( Block b ) : void
b Block
Résultat void

string_literal() public méthode

public string_literal ( ) : Expression
Résultat Expression

sum() public méthode

public sum ( ) : Expression
Résultat Expression

super_literal() public méthode

public super_literal ( ) : SuperLiteralExpression
Résultat SuperLiteralExpression

switch_statement() public méthode

public switch_statement ( Block container ) : void
container Block
Résultat void

term() public méthode

public term ( ) : Expression
Résultat Expression

throw_statement() public méthode

public throw_statement ( Block b ) : void
b Block
Résultat void

try_statement() public méthode

public try_statement ( Block container ) : void
container Block
Résultat void

type_reference() public méthode

public type_reference ( ) : TypeReference
Résultat TypeReference

type_reference_list() public méthode

public type_reference_list ( TypeReferenceCollection typeReferences ) : void
typeReferences TypeReferenceCollection
Résultat void

typeof_expression() public méthode

public typeof_expression ( ) : Expression
Résultat Expression

typeof_expression_alt() protected méthode

protected typeof_expression_alt ( ) : Expression
Résultat Expression

typeof_with_expression() protected méthode

protected typeof_with_expression ( ) : Expression
Résultat Expression

typeof_with_typeref() protected méthode

protected typeof_with_typeref ( ) : Expression
Résultat Expression

unary_expression() public méthode

public unary_expression ( ) : Expression
Résultat Expression

while_statement() public méthode

public while_statement ( Block container ) : void
container Block
Résultat void

yield_statement() public méthode

public yield_statement ( Block b ) : void
b Block
Résultat void

Property Details

_attributes protected_oe property

protected AttributeCollection _attributes
Résultat AttributeCollection

_context protected_oe property

protected CompilerContext,Boo.Lang.Compiler _context
Résultat Boo.Lang.Compiler.CompilerContext

_last protected_oe property

protected IToken _last
Résultat IToken

_loopStack protected_oe property

protected List _loopStack
Résultat List