diff options
author | leo <leo@azuminha.com> | 2024-04-16 21:18:24 -0300 |
---|---|---|
committer | leo <leo@azuminha.com> | 2024-04-16 21:18:24 -0300 |
commit | 4eba85d0bf620b2f488c2cbeee6a84b2e4bf9fbf (patch) | |
tree | e592a312338ddbc312ced0ec2ddc27c38ce171bf /include | |
parent | 6a564da0f9c510c0222b05ba5da18c6ef73e8030 (diff) |
AAAAAAAAAAAAAAAAAAAAAAAAAAAA
Diffstat (limited to 'include')
-rw-r--r-- | include/lexical.h | 34 |
1 files changed, 34 insertions, 0 deletions
diff --git a/include/lexical.h b/include/lexical.h new file mode 100644 index 0000000..6898d6c --- /dev/null +++ b/include/lexical.h @@ -0,0 +1,34 @@ +#ifndef _MYLEX_H +#define _MYLEX_H + +#include "map.h" +#include <stdio.h> + +extern string_map special_char; +extern string_map simbolos_especiais; +extern string_map simbolos_especiais_composto; +extern string_map simbolos_especiais_composto_negrito; + +extern string_map simbolos_identificadores; +extern string_map simbolos_numeros; + + +extern char proximo; +extern int linha; +extern int identificador_num; + +void init_special_char(); +void init_simbolos_especiais(); +void init_simbolos_especiais_compostos(); +void init_simbolos_especiais_compostos_negrito(); + +void init_all_map(); + +int is_caracter(char tmp); +int is_numero(char tmp); + +void PROXIMO(FILE *fp); +char* CODIGO(char *cod); +void ERRO(); + +#endif |