Skip to content

Commit

Permalink
Merge branch 'master' of github.com:SAnjos/cgcl
Browse files Browse the repository at this point in the history
  • Loading branch information
lgsanjos committed Nov 1, 2011
2 parents 4d8ed1c + bfab4b8 commit f9e0f05
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 0 deletions.
@@ -0,0 +1,18 @@
package analise.semantica.validacoes;

import analise.exceptions.AnaliseSemanticaException;
import analise.sintatica.ArvoreSintaticaAbstrataNo;

public class AnaliseSemanticaAddTypedef extends AnaliseSemanticaAcaoAbstrata {

@Override
public void executa(ArvoreSintaticaAbstrataNo no) throws AnaliseSemanticaException{

//"typedef" <type> "identifier"
if (no.getNome().equalsIgnoreCase("typedef")){

}

}

}
1 change: 1 addition & 0 deletions src/test/java/analise/lexica/AnaliseLexicaTest.java
Expand Up @@ -19,6 +19,7 @@ protected void setUp() throws Exception {
}

public void testValidaTokenKeywordBegin() {
assertEquals( 1 % 3, 1);
assertTrue(analisador.validaLexema("begin"));
}

Expand Down

0 comments on commit f9e0f05

Please sign in to comment.