HyperDbg Debugger
Toggle main menu visibility
Loading...
Searching...
No Matches
scanner.h
Go to the documentation of this file.
1
12
#pragma once
13
14
#ifndef SCANNER_H
15
# define SCANNER_H
16
20
extern
PSCRIPT_ENGINE_TOKEN_LIST
GlobalIdTable
;
21
25
extern
PUSER_DEFINED_FUNCTION_NODE
UserDefinedFunctionHead
;
26
27
extern
PUSER_DEFINED_FUNCTION_NODE
CurrentUserDefinedFunction
;
28
29
extern
PINCLUDE_NODE
IncludeHead
;
30
34
extern
unsigned
int
InputIdx
;
35
39
extern
unsigned
int
CurrentLine
;
40
41
/*
42
* @brief current line start position
43
*/
44
extern
unsigned
int
CurrentLineIdx
;
45
46
/*
47
* @brief current PTOKEN start position
48
*/
49
extern
unsigned
int
CurrentTokenIdx
;
50
52
// Interfacing functions //
54
55
PSCRIPT_ENGINE_TOKEN
56
GetToken
(
char
* c,
char
* str);
57
58
PSCRIPT_ENGINE_TOKEN
59
Scan
(
char
* str,
char
* c);
60
61
char
62
sgetc
(
char
* str);
63
64
char
65
IsKeyword
(
char
* str);
66
67
char
68
IsId
(
char
* str);
69
70
char
71
IsRegister
(
char
* str);
72
73
char
74
IsVariableType
(
char
* str);
75
#endif
// !SCANNER_H
GlobalIdTable
PSCRIPT_ENGINE_TOKEN_LIST GlobalIdTable
lookup table for storing global Ids
Definition
globals.c:14
IncludeHead
PINCLUDE_NODE IncludeHead
Definition
globals.c:17
CurrentTokenIdx
unsigned int CurrentTokenIdx
Definition
globals.c:21
InputIdx
unsigned int InputIdx
number of read characters from input
Definition
globals.c:18
UserDefinedFunctionHead
PUSER_DEFINED_FUNCTION_NODE UserDefinedFunctionHead
Definition
globals.c:15
CurrentLine
unsigned int CurrentLine
number of current reading line
Definition
globals.c:19
CurrentUserDefinedFunction
PUSER_DEFINED_FUNCTION_NODE CurrentUserDefinedFunction
Definition
globals.c:16
CurrentLineIdx
unsigned int CurrentLineIdx
Definition
globals.c:20
IsVariableType
char IsVariableType(char *str)
Check if string is variable type or not.
Definition
scanner.c:1107
IsId
char IsId(char *str)
Check if string is Id or not.
Definition
scanner.c:1127
Scan
PSCRIPT_ENGINE_TOKEN Scan(char *str, char *c)
Perform scanning the script engine.
Definition
scanner.c:976
IsRegister
char IsRegister(char *str)
Check if string is register or not.
Definition
scanner.c:1093
IsKeyword
char IsKeyword(char *str)
Check whether a string is a keyword or not.
Definition
scanner.c:1064
GetToken
PSCRIPT_ENGINE_TOKEN GetToken(char *c, char *str)
reads a token from the input string
Definition
scanner.c:22
sgetc
char sgetc(char *str)
Returns the next character in the input string.
Definition
scanner.c:1042
PSCRIPT_ENGINE_TOKEN
struct _SCRIPT_ENGINE_TOKEN * PSCRIPT_ENGINE_TOKEN
PSCRIPT_ENGINE_TOKEN_LIST
struct _SCRIPT_ENGINE_TOKEN_LIST * PSCRIPT_ENGINE_TOKEN_LIST
PINCLUDE_NODE
struct _INCLUDE_NODE * PINCLUDE_NODE
PUSER_DEFINED_FUNCTION_NODE
struct _USER_DEFINED_FUNCTION_NODE * PUSER_DEFINED_FUNCTION_NODE
hyperdbg
script-engine
header
scanner.h
Generated by
1.17.0