Skip to content
Snippets Groups Projects
Commit 983aae76 authored by christia.agodomou's avatar christia.agodomou
Browse files

tentative de merge

parents a34907a7 5af6f4fd
No related branches found
No related tags found
No related merge requests found
Showing
with 3 additions and 1023 deletions
......@@ -15,8 +15,8 @@ public class DeclarationVariable extends Declaration{
}
}
public Idf getIdentifier(){
return listeId.get(0);
public Idf getIdentifier(int i){
return listeId.get(i);
}
......
import java.util.LinkedHashMap;
/*
* Represent a function declaration instruction node inside the AST.
*/
......@@ -14,6 +12,7 @@ public class Entree{
public String getNom() {
return this.varName;
}
@Override
public boolean equals(Object obj) {
// TODO Auto-generated method stub
......
This diff is collapsed.
.class public Program
.super java/lang/Object
.method public static main([Ljava/lang/String;)V
.limit stack 20000
.limit locals 1
return
.end method
programme Program
debutprg
ecrire "Hello world!";
ecrire 1234567;
ecrire vrai;
ecrire faux;
finprg
.class public Program
.super java/lang/Object
.method public static main([Ljava/lang/String;)V
.limit stack 20000
.limit locals 1
return
.end method
programme Program
booleen x;
debutprg
ecrire "Enter a boolen:";
lire x;
ecrire "Result of not operator:";
ecrire non x;
finprg
.class public Program
.super java/lang/Object
.method public static main([Ljava/lang/String;)V
.limit stack 20000
.limit locals 1
return
.end method
programme Program
constant entier n = 12;
constant booleen b = vrai;
debutprg
ecrire n;
ecrire b;
finprg
.class public Program
.super java/lang/Object
.method public static main([Ljava/lang/String;)V
.limit stack 20000
.limit locals 1
return
.end method
programme Program
entier x;
entier y;
booleen z;
debutprg
x = 23456789;
y = -12;
ecrire x;
ecrire y;
z = vrai;
ecrire z;
z = faux;
ecrire z;
finprg
.class public Program
.super java/lang/Object
.method public static main([Ljava/lang/String;)V
.limit stack 20000
.limit locals 1
return
.end method
programme Program
entier x;
entier y;
debutprg
ecrire 6 + 2;
ecrire 6 - 2;
ecrire 6 / 2;
ecrire 6 * 2;
x = 20;
y = 4;
ecrire x + y;
ecrire x - y;
ecrire x / y;
ecrire x * y;
x = x + 4;
y = y - 2;
ecrire x + y;
ecrire x - y;
ecrire x / y;
ecrire x * y;
finprg
.class public Program
.super java/lang/Object
.method public static main([Ljava/lang/String;)V
.limit stack 20000
.limit locals 1
return
.end method
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment