Skip to content
Snippets Groups Projects
Commit 335d7408 authored by lucien.noel's avatar lucien.noel
Browse files

jai rennomé les class entier et booleen pour que ça respecte les normes java

parent 983aae76
No related branches found
No related tags found
No related merge requests found
public class booleen extends Ttype{ public class Booleen extends Ttype{
public booleen() { public Booleen() {
super("booleen"); super("booleen");
} }
......
public class entier extends Ttype{ public class Entier extends Ttype{
public entier() { public Entier() {
super("entier"); super("entier");
} }
} }
...@@ -78,8 +78,8 @@ l_ident ::= IDENT:id {: ArrayList<Idf> liste = new ArrayList<Idf>(); ...@@ -78,8 +78,8 @@ l_ident ::= IDENT:id {: ArrayList<Idf> liste = new ArrayList<Idf>();
RESULT = idl;:}; RESULT = idl;:};
type ::= TINTEGER {: RESULT = (new entier());:} type ::= TINTEGER {: RESULT = (new Entier());:}
| TBOOLEAN {: RESULT = (new booleen());:}; | TBOOLEAN {: RESULT = (new Booleen());:};
declar_const ::= CONSTANT type:t IDENT:id EQUAL expr:a SEMICOLON {: RESULT = new DeclarationConstant(t ,new Idf(id,"", idleft, idright),a,"",aleft,aright);:}; declar_const ::= CONSTANT type:t IDENT:id EQUAL expr:a SEMICOLON {: RESULT = new DeclarationConstant(t ,new Idf(id,"", idleft, idright),a,"",aleft,aright);:};
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment