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
30unsigned int InputIdx;
31
35unsigned int CurrentLine;
36
37/*
38 * @brief current line start position
39 */
40unsigned int CurrentLineIdx;
41
42/*
43 * @brief current PTOKEN start position
44 */
45unsigned int CurrentTokenIdx;
46
48// Interfacing functions //
50
52GetToken(char * c, char * str);
53
55Scan(char * str, char * c);
56
57char
58sgetc(char * str);
59
60char
61IsKeyword(char * str);
62
63char
64IsId(char * str);
65
66char
67IsRegister(char * str);
68#endif // !SCANNER_H
char IsId(char *str)
eck if string is Id or not
Definition scanner.c:1006
unsigned int CurrentTokenIdx
Definition scanner.h:45
PTOKEN GetToken(char *c, char *str)
reads a token from the input string
Definition scanner.c:22
PTOKEN_LIST FunctionParameterIdTable
Definition scanner.h:25
PTOKEN_LIST IdTable
lookup table for storing Ids
Definition scanner.h:20
char IsRegister(char *str)
Check if string is register or not.
Definition scanner.c:992
unsigned int InputIdx
number of read characters from input
Definition scanner.h:30
PTOKEN Scan(char *str, char *c)
Perform scanning the script engine.
Definition scanner.c:875
char IsKeyword(char *str)
Check whether a string is a keyword or not.
Definition scanner.c:963
unsigned int CurrentLine
number of current reading line
Definition scanner.h:35
unsigned int CurrentLineIdx
Definition scanner.h:40
char sgetc(char *str)
returns last character of string
Definition scanner.c:941
this structure is a dynamic container of TOKENS
Definition common.h:83
read tokens from input stored in this structure
Definition common.h:72