summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
Diffstat (limited to 'include')
-rw-r--r--include/lexical.h14
-rw-r--r--include/map.h5
2 files changed, 18 insertions, 1 deletions
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
diff --git a/include/map.h b/include/map.h
index 1dea3e7..b1f2650 100644
--- a/include/map.h
+++ b/include/map.h
@@ -1,3 +1,8 @@
+/*
+ * Nome: Leonardo Koosuke Azuma
+ * SO: Arch Linux x86_64
+ * Compilador: gcc (GCC) 13.2.1 20230801
+ */
#ifndef _MYMAP_H
#define _MYMAP_H