-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathutils.h
More file actions
30 lines (29 loc) · 1.09 KB
/
Copy pathutils.h
File metadata and controls
30 lines (29 loc) · 1.09 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
#ifndef UTILS_H
#define UTILS_H
#include "type.h"
int is_pointvirgule(Token t);
int is_crochet(Token t);
int is_openingParenthesis(Token t);
int is_closingParenthesis(Token t);
int is_openingBrace(Token t);
int is_closingBrace(Token t);
int is_token_pointvirgule(TokenList *t, int *index);
int taille_liste(const char *liste[]);
char find_separator(char word);
char find_puntuation(char word);
int find_single_operator(char *word);
int find_duo_operator(char first, char second);
int find_duo_assigment(char first, char second);
int find_key_word(char *word);
int is_wordcondition(char *word);
int is_type(char *word);
int is_comparaison_op(char *word);
void print_ast(ASTNode *n, int depth);
void add_child(ASTNode *parent, ASTNode *child);
ASTNode *new_ATS(NodeType type, ASTNode *l, ASTNode *r, Token tok, int line);
void free_AST(ASTNode *node);
void add_AT(Analyse_Table *table, TokenType type, Token token, const char *name, int index_block);
void print_symbol_table(Analyse_Table *table);
Pile *create_block(Pile *parent, int index);
int is_block_visible(Pile *current, int block_index);
#endif // UTILS_H