HyperDbg Debugger
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
21
26
28
30
34extern unsigned int InputIdx;
35
39extern unsigned int CurrentLine;
40
41/*
42 * @brief current line start position
43 */
44extern unsigned int CurrentLineIdx;
45
46/*
47 * @brief current PTOKEN start position
48 */
49extern unsigned int CurrentTokenIdx;
50
52// Interfacing functions //
54
56GetToken(char * c, char * str);
57
59Scan(char * str, char * c);
60
61char
62sgetc(char * str);
63
64char
65IsKeyword(char * str);
66
67char
68IsId(char * str);
69
70char
71IsRegister(char * str);
72
73char
74IsVariableType(char * str);
75#endif // !SCANNER_H
PSCRIPT_ENGINE_TOKEN_LIST GlobalIdTable
lookup table for storing global Ids
Definition globals.c:14
PINCLUDE_NODE IncludeHead
Definition globals.c:17
unsigned int CurrentTokenIdx
Definition globals.c:21
unsigned int InputIdx
number of read characters from input
Definition globals.c:18
PUSER_DEFINED_FUNCTION_NODE UserDefinedFunctionHead
Definition globals.c:15
unsigned int CurrentLine
number of current reading line
Definition globals.c:19
PUSER_DEFINED_FUNCTION_NODE CurrentUserDefinedFunction
Definition globals.c:16
unsigned int CurrentLineIdx
Definition globals.c:20
char IsVariableType(char *str)
Check if string is variable type or not.
Definition scanner.c:1107
char IsId(char *str)
Check if string is Id or not.
Definition scanner.c:1127
PSCRIPT_ENGINE_TOKEN Scan(char *str, char *c)
Perform scanning the script engine.
Definition scanner.c:976
char IsRegister(char *str)
Check if string is register or not.
Definition scanner.c:1093
char IsKeyword(char *str)
Check whether a string is a keyword or not.
Definition scanner.c:1064
PSCRIPT_ENGINE_TOKEN GetToken(char *c, char *str)
reads a token from the input string
Definition scanner.c:22
char sgetc(char *str)
Returns the next character in the input string.
Definition scanner.c:1042
struct _SCRIPT_ENGINE_TOKEN * PSCRIPT_ENGINE_TOKEN
struct _SCRIPT_ENGINE_TOKEN_LIST * PSCRIPT_ENGINE_TOKEN_LIST
struct _INCLUDE_NODE * PINCLUDE_NODE
struct _USER_DEFINED_FUNCTION_NODE * PUSER_DEFINED_FUNCTION_NODE