summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorleo <leo@azuminha.com>2024-04-18 18:00:40 -0300
committerleo <leo@azuminha.com>2024-04-18 18:00:40 -0300
commit954fc6b9d4bfee8b2eb1af11f4e62a66b9e8da57 (patch)
tree2e54bccfcb9507f4919b67ddb0a4996f91dd608c /include
parent0d530f0e84c15387cd22ae1608c284befff8e87f (diff)
finalizado?
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