Skip to content

harishtpj/Calci

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

29 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

🧮 Calci

made-with-python python-version calci-version Maintainability

Calci - A Modern, Fast compiled language written in Python.

ℹ About

Calci is a Compiler written in Python which Compiles to C Language. This language has a very modern and simple syntax which lessens the learning curve. This syntax is derived from Pascal and C Languages. Inspired by the teeny tiny compiler project. The current version of Calci is v1.0. For more info click here

📃 Requirements

  • Python >= 3.6
  • Any C compiler (preferred tcc/gcc compiler)

💻 Running the compiler

Use command calci to run compiler

usage: calci [-h] [-l LANG] [-S] [-v] file

The Calci programming language compiler

positional arguments:
  file                  The File to compile

optional arguments:
  -h, --help            show this help message and exit
  -l LANG, --lang LANG  the Language to Transpile
  -S, --source          only Compiles Calci File to Given Language
  -v, --version         shows version info of Calci compiler

A Sample Hello, World! Program

Save the following file as hello.ca

# This is a Hello, World program written in Calci language

println "Hello, World!"
println "This is the first program written in calci lang"

run calci hello.ca to get executable. To get transpiled C code. run calci -S hello.ca

📝 License

Copyright © 2022 M.V.Harish Kumar.

This project is BSD-3 licensed.

About

A modern, fast compiler

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published