Skip to content

MarinaBeder/Compiler-Project

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

64 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Compiler

ANTLER Version

4.11.0

Example 1 

 
class output {
    public static void main(String[] args)  {
        int x=6;
        int y=10;
        int z=0;
        int r=0;
        if(y==10&&x==6) {
                r=1; }
        if(y==11||z==0)  {
            x= fun(10);
        }
        if(x==10||z==5) {
            r=10;
        }
    }
    static int fun(int x) {
        return 5;
    }
}


1

block number 1
block number 2
block number 3
block number 5

----------------------------------------------------------------------------

Example 2 

 
class output {
    public static void main(String[] args)  {
        int x=6;
        int y=10;
        int z=0;
        int r=0;

        if(z==0)  {
            x=5;}
        if(x==5){
            x=10;}
        if(x==10||z==5) {
            r=10; }
        if(y==10&&x==6) {
            z=0; }

        for(int i=0;i<5;i++){y=11;}
    }}

2

block number 1
block number 2
block number 3
block number 4
block number 6
block number 6
block number 6
block number 6
block number 6


------------------------------------------------------------------------

Example 3 

class output {
 public static void main(String[] args)  { 
        int x=6;
        int y=10;
        int z=0;
        int r=0;
        
      while(x>0){
            r=10;
            x--;}
      if(r==10||y==11)  {
            x=5;}
      if(x==15)  {
            x=5;}
      else{x=6;}
    }}

3

block number 1
block number 2
block number 2
block number 2
block number 2
block number 2
block number 2
block number 3
block number 5


About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 4

  •  
  •  
  •  
  •