Skip to content

This is the version 2 of Csq programming language.

Notifications You must be signed in to change notification settings

AniketKumar2500/CsqV2

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

23 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

CsqV2

This is the version 2 and the second most advance version of Csq programming language. The most advance version of Csq is Csq3 whose repo is present at https://github.com/CsqLang/Csq3

Features

  • Easy Syntax
  • Fast Runtime
  • Having Libraries which can provide various supports
  • Platform independent (The translator haven't yet created for Windows but if you are in Windows so you could use Csq in Github codespace)

Specialties

  • Support OPPs
  • Support dynamic typing by using var and def keyword for functions
  • Allows to use C++ in Csq code

Building

  • Install all files via git
  • then compile all cpp files
  • at last go to Modules/fmt/ compile all headerfiles via g++

Examples

Hello World Program

print("Hello, World")

Create an array and print it.

array<int> arr = {3,4,3,4}
print(arr)

Create a function

  • Creating a function in CsqV2 can we done in two ways that is writing function using lamda in .csq file and other one is to create using a .csqm file.
  • //In csq file:

    def foo lam(){
    .....
    }

  • //In csqm file and importing via import statement from .csq:
    //test.csqm > def foo(){
    .....
    }

    //main.csq

    import test
    foo()

  • Working of import statement

    import pd.dframe

    Importing C headerfile

    #include<stdio.h>

    About

    This is the version 2 of Csq programming language.

    Resources

    Stars

    Watchers

    Forks

    Releases

    No releases published

    Packages

    No packages published