-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathscanner_command_1.c
More file actions
45 lines (38 loc) · 1.36 KB
/
scanner_command_1.c
File metadata and controls
45 lines (38 loc) · 1.36 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
/* ************************************************************************** */
/* */
/* ::: :::::::: */
/* scanner_command_1.c :+: :+: :+: */
/* +:+ +:+ +:+ */
/* By: seungbki <seungbki@student.42seoul.kr> +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* Created: 2022/03/28 06:07:03 by seungbki #+# #+# */
/* Updated: 2022/03/28 06:07:25 by seungbki ### ########.fr */
/* */
/* ************************************************************************** */
#include "scanner_command.h"
#include "token.h"
void empty(void *token, char lexeme)
{
(void)token;
(void)lexeme;
}
void set_asc(void *token, char lexeme)
{
((t_token *)token)->id = 1;
(void)lexeme;
}
void increase_width(void *token, char lexeme)
{
((t_token *)token)->width += 1;
(void)lexeme;
}
void set_space(void *token, char lexeme)
{
((t_token *)token)->is_space = 1;
(void)lexeme;
}
void set_hash(void *token, char lexeme)
{
((t_token *)token)->is_hash = 1;
(void)lexeme;
}