HyperDbg Debugger
|
#include "pch.h"
Functions | |
PTOKEN | NewUnknownToken () |
Allocates a new token. | |
PTOKEN | NewToken (TOKEN_TYPE Type, char *Value) |
void | RemoveToken (PTOKEN *Token) |
Removes allocated memory of a token. | |
void | PrintToken (PTOKEN Token) |
Prints token @detail prints value and type of token. | |
void | AppendByte (PTOKEN Token, char c) |
Appends char to the token value. | |
void | AppendWchar (PTOKEN Token, wchar_t c) |
Appends wchar_t to the token value. | |
PTOKEN | CopyToken (PTOKEN Token) |
Copies a PTOKEN. | |
PTOKEN_LIST | NewTokenList (void) |
void | RemoveTokenList (PTOKEN_LIST TokenList) |
Removes allocated memory of a TOKEN_LIST. | |
void | PrintTokenList (PTOKEN_LIST TokenList) |
Prints each Token inside a TokenList. | |
PTOKEN_LIST | Push (PTOKEN_LIST TokenList, PTOKEN Token) |
Adds Token to the last empty position of TokenList. | |
PTOKEN | Pop (PTOKEN_LIST TokenList) |
Removes last Token of a TokenList and returns it. | |
PTOKEN | Top (PTOKEN_LIST TokenList) |
Returns last Token of a TokenList. | |
char | IsHex (char c) |
Checks whether input char belongs to hexadecimal digit-set or not. | |
char | IsDecimal (char c) |
Checks whether input char belongs to decimal digit-set or not. | |
char | IsLetter (char c) |
Checks whether input char belongs to alphabet set or not. | |
char | IsUnderscore (char c) |
Checks whether input char is underscore (_) or not. | |
char | IsBinary (char c) |
Checks whether input char belongs to binary digit-set or not. | |
char | IsOctal (char c) |
Checks whether input char belongs to octal digit-set or not. | |
PTOKEN | NewTemp (PSCRIPT_ENGINE_ERROR_TYPE Error, PUSER_DEFINED_FUNCTION_NODE CurrentFunctionSymbol) |
Allocates a new temporary variable and returns it. | |
PTOKEN | NewStackTemp (PSCRIPT_ENGINE_ERROR_TYPE Error) |
Allocates a new temporary variable in stack and returns it. | |
void | FreeTemp (PTOKEN Temp) |
Frees the memory allocated by Temp. | |
void | CleanTempList (void) |
Resets the temporary variables map. | |
void | CleanStackTempList (void) |
Resets the stack temporary variables map. | |
char | IsType1Func (PTOKEN Operator) |
Checks whether this Token type is OneOpFunc1. | |
char | IsType2Func (PTOKEN Operator) |
Checks whether this Token type is OneOpFunc2. | |
char | IsTwoOperandOperator (PTOKEN Operator) |
Checks whether this Token type is OperatorsTwoOperandList. | |
char | IsOneOperandOperator (PTOKEN Operator) |
Checks whether this Token type is OperatorsOneOperandList. | |
char | IsType4Func (PTOKEN Operator) |
Checks whether this Token type is VarArgFunc1. | |
char | IsType5Func (PTOKEN Operator) |
Checks whether this Token type is ZeroOpFunc1. | |
char | IsType6Func (PTOKEN Operator) |
Checks whether this Token type is TwoOpFunc1. | |
char | IsType7Func (PTOKEN Operator) |
Checks whether this Token type is TwoOpFunc2. | |
char | IsType8Func (PTOKEN Operator) |
Checks whether this Token type is ThreeOpFunc1. | |
char | IsType9Func (PTOKEN Operator) |
Checks whether this Token type is OneOpFunc3. | |
char | IsType10Func (PTOKEN Operator) |
Checks whether this Token type is TwoOpFunc3. | |
char | IsType11Func (PTOKEN Operator) |
Checks whether this Token type is ThreeOpFunc3. | |
char | IsType12Func (PTOKEN Operator) |
Checks whether this Token type is OneOpFunc4. | |
char | IsType13Func (PTOKEN Operator) |
Checks whether this Token type is TwoOpFunc4. | |
char | IsType14Func (PTOKEN Operator) |
Checks whether this Token type is ThreeOpFunc2. | |
char | IsType15Func (PTOKEN Operator) |
Checks whether this Token type is ThreeOpFunc4. | |
char | IsVariableType (PTOKEN Operator) |
Checks whether this Token type is VariableType. | |
char | IsNoneTerminal (PTOKEN Token) |
Checks whether this Token is noneterminal NoneTerminal token starts with capital letter. | |
char | IsSemanticRule (PTOKEN Token) |
Checks whether this Token is semantic rule SemanticRule token starts with '@'. | |
int | GetNonTerminalId (PTOKEN Token) |
Gets the Non Terminal Id object. | |
int | GetTerminalId (PTOKEN Token) |
Gets the Terminal Id object. | |
int | LalrGetNonTerminalId (PTOKEN Token) |
Gets the Non Terminal Id object. | |
int | LalrGetTerminalId (PTOKEN Token) |
Gets the Terminal Id object. | |
char | IsEqual (const PTOKEN Token1, const PTOKEN Token2) |
Checks whether the value and type of Token1 and Token2 are the same. | |
void | SetType (unsigned long long *Val, unsigned char Type) |
Set the Type object. | |
unsigned long long | DecimalToInt (char *str) |
Converts an decimal string to a integer. | |
unsigned long long | DecimalToSignedInt (char *str) |
Converts an decimal string to a signed integer. | |
unsigned long long | HexToInt (char *str) |
Converts an hexadecimal string to integer. | |
unsigned long long | OctalToInt (char *str) |
Converts an octal string to integer. | |
unsigned long long | BinaryToInt (char *str) |
Converts a binary string to integer. | |
void | RotateLeftStringOnce (char *str) |
Rotate a character array to the left by one time. | |
Common routines
void AppendByte | ( | PTOKEN | Token, |
char | c ) |
Appends char to the token value.
Token | |
char |
void AppendWchar | ( | PTOKEN | Token, |
wchar_t | c ) |
Appends wchar_t to the token value.
Token | |
char |
unsigned long long BinaryToInt | ( | char * | str | ) |
Converts a binary string to integer.
str |
void CleanStackTempList | ( | void | ) |
Resets the stack temporary variables map.
void CleanTempList | ( | void | ) |
Resets the temporary variables map.
Copies a PTOKEN.
unsigned long long DecimalToInt | ( | char * | str | ) |
Converts an decimal string to a integer.
str |
unsigned long long DecimalToSignedInt | ( | char * | str | ) |
Converts an decimal string to a signed integer.
str |
void FreeTemp | ( | PTOKEN | Temp | ) |
Frees the memory allocated by Temp.
Temp |
int GetNonTerminalId | ( | PTOKEN | Token | ) |
Gets the Non Terminal Id object.
Token |
int GetTerminalId | ( | PTOKEN | Token | ) |
Gets the Terminal Id object.
Token |
unsigned long long HexToInt | ( | char * | str | ) |
Converts an hexadecimal string to integer.
str |
char IsBinary | ( | char | c | ) |
Checks whether input char belongs to binary digit-set or not.
char |
char IsDecimal | ( | char | c | ) |
Checks whether input char belongs to decimal digit-set or not.
char |
Checks whether the value and type of Token1 and Token2 are the same.
Token1 | |
Token2 |
char IsHex | ( | char | c | ) |
Checks whether input char belongs to hexadecimal digit-set or not.
char |
char IsLetter | ( | char | c | ) |
Checks whether input char belongs to alphabet set or not.
char |
char IsNoneTerminal | ( | PTOKEN | Token | ) |
char IsOctal | ( | char | c | ) |
Checks whether input char belongs to octal digit-set or not.
char |
char IsOneOperandOperator | ( | PTOKEN | Operator | ) |
Checks whether this Token type is OperatorsOneOperandList.
Operator |
char IsSemanticRule | ( | PTOKEN | Token | ) |
Checks whether this Token is semantic rule SemanticRule token starts with '@'.
Token |
char IsTwoOperandOperator | ( | PTOKEN | Operator | ) |
Checks whether this Token type is OperatorsTwoOperandList.
Operator |
char IsType10Func | ( | PTOKEN | Operator | ) |
Checks whether this Token type is TwoOpFunc3.
Operator |
char IsType11Func | ( | PTOKEN | Operator | ) |
Checks whether this Token type is ThreeOpFunc3.
Operator |
char IsType12Func | ( | PTOKEN | Operator | ) |
Checks whether this Token type is OneOpFunc4.
Operator |
char IsType13Func | ( | PTOKEN | Operator | ) |
Checks whether this Token type is TwoOpFunc4.
Operator |
char IsType14Func | ( | PTOKEN | Operator | ) |
Checks whether this Token type is ThreeOpFunc2.
Operator |
char IsType15Func | ( | PTOKEN | Operator | ) |
Checks whether this Token type is ThreeOpFunc4.
Operator |
char IsType1Func | ( | PTOKEN | Operator | ) |
Checks whether this Token type is OneOpFunc1.
Operator |
char IsType2Func | ( | PTOKEN | Operator | ) |
Checks whether this Token type is OneOpFunc2.
Operator |
char IsType4Func | ( | PTOKEN | Operator | ) |
Checks whether this Token type is VarArgFunc1.
Operator |
char IsType5Func | ( | PTOKEN | Operator | ) |
Checks whether this Token type is ZeroOpFunc1.
Operator |
char IsType6Func | ( | PTOKEN | Operator | ) |
Checks whether this Token type is TwoOpFunc1.
Operator |
char IsType7Func | ( | PTOKEN | Operator | ) |
Checks whether this Token type is TwoOpFunc2.
Operator |
char IsType8Func | ( | PTOKEN | Operator | ) |
Checks whether this Token type is ThreeOpFunc1.
Operator |
char IsType9Func | ( | PTOKEN | Operator | ) |
Checks whether this Token type is OneOpFunc3.
Operator |
char IsUnderscore | ( | char | c | ) |
Checks whether input char is underscore (_) or not.
char |
char IsVariableType | ( | PTOKEN | Operator | ) |
Checks whether this Token type is VariableType.
Operator |
int LalrGetNonTerminalId | ( | PTOKEN | Token | ) |
Gets the Non Terminal Id object.
Token |
int LalrGetTerminalId | ( | PTOKEN | Token | ) |
Gets the Terminal Id object.
Token |
PTOKEN NewStackTemp | ( | PSCRIPT_ENGINE_ERROR_TYPE | Error | ) |
Allocates a new temporary variable in stack and returns it.
Error |
PTOKEN NewTemp | ( | PSCRIPT_ENGINE_ERROR_TYPE | Error, |
PUSER_DEFINED_FUNCTION_NODE | CurrentFunctionSymbol ) |
Allocates a new temporary variable and returns it.
Error |
PTOKEN NewToken | ( | TOKEN_TYPE | Type, |
char * | Value ) |
PTOKEN_LIST NewTokenList | ( | void | ) |
allocates a new TOKEN_LIST
PTOKEN NewUnknownToken | ( | void | ) |
Allocates a new token.
unsigned long long OctalToInt | ( | char * | str | ) |
Converts an octal string to integer.
str |
PTOKEN Pop | ( | PTOKEN_LIST | TokenList | ) |
void PrintToken | ( | PTOKEN | Token | ) |
Prints token @detail prints value and type of token.
Token |
void PrintTokenList | ( | PTOKEN_LIST | TokenList | ) |
Prints each Token inside a TokenList.
TokenList |
PTOKEN_LIST Push | ( | PTOKEN_LIST | TokenList, |
PTOKEN | Token ) |
Adds Token to the last empty position of TokenList.
Token | |
TokenList |
void RemoveToken | ( | PTOKEN * | Token | ) |
Removes allocated memory of a token.
Token |
void RemoveTokenList | ( | PTOKEN_LIST | TokenList | ) |
Removes allocated memory of a TOKEN_LIST.
TokenList |
void RotateLeftStringOnce | ( | char * | str | ) |
Rotate a character array to the left by one time.
str |
void SetType | ( | unsigned long long * | Val, |
unsigned char | Type ) |
Set the Type object.
Val | |
Type |
PTOKEN Top | ( | PTOKEN_LIST | TokenList | ) |
Returns last Token of a TokenList.
TokenList |