Skip to content

pulzarlang/Pulzar

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Pulzar Programming language v0.4

Pulzar is new experimental programming language that has flexible syntax and gives freedom to the programmer. In future it would try to foucus on quantum computing.


Note that Pulzar is in early stage of development

Pulzar supports both functional & OO programming. It supports both static and dynamic typing. The staticlly typed variables have strong typing.

The latest version can be both runnned at run time or be compiled to executable

Example of Pulzar v0.4:

  Program Console;
  include math;
 |** This is comment **|
  int n = 5!;
  var boolean = False;
  var x = 10;
  echo n;
  if x mod 2 == 0 {
      echo "Yes";
      if x != 10 {
          echo "Not good";
      }
  }
 
  var i, a;
  for i :: i < 10 :: ++i {
      a = i ** 2 / (2**i - i);
      echo x;
  }
  func circle : r { 
      echo pi * r ** 2;
  }

  func print_name : name 
  {
      echo "Hello" + "\s" + name;
  }
  print "Enter r:";
  input a;
  circle : a;
  echo "Enter name:";
  input b;
  print_name : b;

Features

This are feautures what pulzar can do now:

  • printing
  • input
  • Variable declaration
  • Variable definition
  • Arrays
  • Math
  • If statements
  • Else statements
  • Else if statements
  • Nested Conditional statements
  • For loops
  • While loop
  • Nested loops
  • Functions
  • Function calls
  • Math library
  • Imports libaries & files
  • Pointers
  • Macros
  • OOP

Contribiution

All contribution will be highly appreciated and might be rewarded.