Skip to content

mohitk05/ccc-lang

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

ccc-lang

A simple language to learn compiler frontends/interpreters at 37C3.

Refer the related blogpost here: https://mohitkarekar.com/posts/2023/compiler-frontend/

A simpler version to get started (contains only addition expressions): https://github.com/mohitk05/ccc-lang/tree/simple

Following are some example programs in ccc-lang:

let a = 1;
print(a);
let a = 1;
let b = a + 2;
print(b);
function add(a, b) {
  a + b
}
let a = 1;
let c = 2
let sum = add(a, c);
print(sum);
function add(a, b) { a + b };

let a = 1;
let c = 3;
let b = add(a, c);
print(b);

function sub(a, b) { a - b };
let d = sub(c, a);
print(d);

About

ccc-lang: A small language to learn compilers/interpreters (as seen at 37C3)

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages