Skip to content

Commit

Permalink
fix DFA
Browse files Browse the repository at this point in the history
  • Loading branch information
computer committed Sep 26, 2014
1 parent e12c4a4 commit 2d1e9df
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions Compiler/lexical.c
Original file line number Diff line number Diff line change
Expand Up @@ -531,7 +531,7 @@ void lAnalyzer(const char *fileName){

}else if(c == FEED_LINE){

tokenReaded[qc] = '\0';
tokenReaded[qc] = '\0'; //todo verificar se é para mostrar o pulo delinha também
printf("LINHA %d: %s\n", al, tokenReaded);
tokenReaded = (char*)malloc(INITIAL_TOKEN_BUFFER);
qc = 0;
Expand Down Expand Up @@ -890,8 +890,7 @@ void lAnalyzer(const char *fileName){

_Bool isSE(int character){

if(character == LETTER_T_LOWER || character == (LETTER_T_LOWER-32) || character == LETTER_N_LOWER ||
character == (LETTER_N_LOWER-32) || character == INVERTED_BAR ||
if(character == LETTER_T_LOWER || character == LETTER_N_LOWER || character == INVERTED_BAR ||
character == SIMPLE_QUOTATION_MARK || character == DOUBLE_QUOTATION_MARK)
return TRUE;

Expand Down

0 comments on commit 2d1e9df

Please sign in to comment.