Skip to content

ahmetozdemirrr/alanc

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

61 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Sample Code:

/* main.alan */

#include <standart.alan>

#define PI 3.14

function foo(int a, float b) : float
{
		if (a)
		{
				return foo(a - 1, b) * b;
		} 
    return b;
}

procedure poo(float input) : void
{
    bool b1 = true;
    bool b2 = false;

    if (b1 == b2)
    {
        b1 -> (bool) input;
    }

    else
    {
				print("Procedure end!");
        return;
  	} 
}

procedure main() : int
{
    int a;
		float b;

		input("Enter a number:", &a);
		input("Enter a number:", &b);

    poo(foo(a, b));

    return EXIT_SUCCESS;
}

// This is a comment and this is a expression ; x = y + 5 (but in a comment line)

About

Compiler of A Programming Language

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Contributors 2

  •  
  •