Skip to content
This repository has been archived by the owner on Jan 22, 2021. It is now read-only.

Chama de funções auxiliares no parser #19

Closed
lukerops opened this issue Nov 10, 2020 · 0 comments · Fixed by #20
Closed

Chama de funções auxiliares no parser #19

lukerops opened this issue Nov 10, 2020 · 0 comments · Fixed by #20
Assignees
Labels
enhancement New feature or request
Milestone

Comments

@lukerops
Copy link
Owner

Funções válidas:

check_var(); // Checa se a variável existe na tabela
new_var(); // Adiciona a variável na tabela

Setar a variável last_decl_type com o tipo encontrado:

typedef enum {
    VOID_TYPE,
    INT_TYPE,
    CHAR_TYPE,
    FLOAT_TYPE
} Type;

Setar a variável last_size_array com o tamanho do array na definição, exemplo:

char string[3];

teremos:

last_decl_type = CHAR_TYPE;
last_size_array = 3;
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants