From 954fc6b9d4bfee8b2eb1af11f4e62a66b9e8da57 Mon Sep 17 00:00:00 2001 From: leo Date: Thu, 18 Apr 2024 18:00:40 -0300 Subject: finalizado? --- include/lexical.h | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-) (limited to 'include/lexical.h') diff --git a/include/lexical.h b/include/lexical.h index a3168ef..040d383 100644 --- a/include/lexical.h +++ b/include/lexical.h @@ -1,3 +1,8 @@ +/* + * Nome: Leonardo Koosuke Azuma + * SO: Arch Linux x86_64 + * Compilador: gcc (GCC) 13.2.1 20230801 + */ #ifndef _MYLEX_H #define _MYLEX_H @@ -17,6 +22,13 @@ extern char proximo; extern int linha; extern int identificador_num; +extern FILE *fout; + +enum error_type{ + SIMBOLO_ESPECIAL_DESCONHECIDO, + IDENTIFICAR_NUMERO_MAL_FORMADO +}; + void init_special_char(); void init_simbolos_especiais(); void init_simbolos_especiais_compostos(); @@ -29,6 +41,6 @@ int is_numero(char tmp); void PROXIMO(FILE *fp); char* CODIGO(char *cod); -void ERRO(int error_code); +void ERRO(enum error_type error_code); #endif -- cgit v1.2.3