summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
Diffstat (limited to 'include')
-rw-r--r--include/lexical.h34
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