Skip to content

A simple interpreted scripting language created as part of CSOC INFOSEC

License

Notifications You must be signed in to change notification settings

Jayesh-Dev21/CarbonLang

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Carbon (Programming Language)

A simple interpreted scripting language created as part of CSOC INFOSEC.

Overview

Carbon is a basic scripting language featuring a custom lexer and transpiler. It reads .crb script files, parses them line by line, and executes them via an interpreter written in C.

Features

  • Custom syntax, lexer, and transpiler
  • Strict .crb extension check for scripts
  • Simple file handling and output
  • Example script included

Directory Structure

.
├── carbon_run
├── .gitignore
├── Instructions.txt
├── main.c
├── Makefile
├── README.md
├── script.crb
└── src/dependencies
    ├── lexer.c
    ├── lexer.h
    ├── transpiler.c
    └── transpiler.h

To run CarbonLang use-->

./carbon_run <filename.crb>

Outpur in Terminal

❯ ./carbon_run file.crb
Hello, Carbon
No, new line See I told you.
Text
Hi, this works Carbon is awesome
CoCo is a good girl

Cleaning Up

To remove the compiled executable:

make clean

About

A simple interpreted scripting language created as part of CSOC INFOSEC

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published