C# Class NScumm.Dump.ScriptParser

ファイルを表示 Open project: scemino/nscumm

Protected Properties

Property Type Description
_br System.IO.BinaryReader
_opCode int
opCodes Func>.Dictionary

Public Methods

Method Description
Create ( GameInfo info ) : ScriptParser
Parse ( byte data ) : CompilationUnit

Protected Methods

Method Description
AddKnownVariables ( string>.IDictionary knownVariables ) : void
ExecuteOpCode ( ) : Statement
InitOpCodes ( ) : void
ReadByte ( ) : int
ReadCharacters ( ) : Expression
ReadVariable ( int var ) : Expression
ReadVariable2 ( Expression var ) : Expression
ReadVariable2 ( int var ) : Expression
ReadWord ( ) : int
ReadWordSigned ( ) : int
ScriptParser ( GameInfo info ) : System.IO

Method Details

AddKnownVariables() protected method

protected AddKnownVariables ( string>.IDictionary knownVariables ) : void
knownVariables string>.IDictionary
return void

Create() public static method

public static Create ( GameInfo info ) : ScriptParser
info NScumm.Scumm.IO.GameInfo
return ScriptParser

ExecuteOpCode() protected method

protected ExecuteOpCode ( ) : Statement
return Statement

InitOpCodes() protected abstract method

protected abstract InitOpCodes ( ) : void
return void

Parse() public method

public Parse ( byte data ) : CompilationUnit
data byte
return CompilationUnit

ReadByte() protected method

protected ReadByte ( ) : int
return int

ReadCharacters() protected method

protected ReadCharacters ( ) : Expression
return Expression

ReadVariable() protected method

protected ReadVariable ( int var ) : Expression
var int
return Expression

ReadVariable2() protected method

protected ReadVariable2 ( Expression var ) : Expression
var Expression
return Expression

ReadVariable2() protected method

protected ReadVariable2 ( int var ) : Expression
var int
return Expression

ReadWord() protected method

protected ReadWord ( ) : int
return int

ReadWordSigned() protected method

protected ReadWordSigned ( ) : int
return int

ScriptParser() protected method

protected ScriptParser ( GameInfo info ) : System.IO
info NScumm.Scumm.IO.GameInfo
return System.IO

Property Details

_br protected_oe property

protected BinaryReader,System.IO _br
return System.IO.BinaryReader

_opCode protected_oe property

protected int _opCode
return int

opCodes protected_oe property

protected Dictionary> opCodes
return Func>.Dictionary