Skip to content

This is a small programing language for my Bachelor of Computer Science's senior project.

Notifications You must be signed in to change notification settings

justgage/cog-lang

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

73 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Senior project

A repo to hold the code from the programing language.

My proposal can be seen here

Here's a screenshot of the tokenizer (old now) Screenshot of Tokenizer

The Interpeter

The interpeter is found under the ocaml-parser/src/ directory. You can comile it with make considering you have OCaml, opam, and the packages core installed.

You can run an example by doing ./cog -f simple.cog

Here's some example code:

func add l r = l + r;
func subtract l r = add(l, (- r));

box left = 12;
box right = 100;

display(left, " minus ", right, " is ", subtract(left,right));

About

This is a small programing language for my Bachelor of Computer Science's senior project.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published