Skip to content

A compiler for a graph-based language.

Notifications You must be signed in to change notification settings

ShvetankPrakash/YAGL

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

YAGL

"Yet Another Graph Language"

This repository contains a compiler that was developed for the YAGL language. YAGL was invented with the intention of making it easier to write & code graph algorithms, which are so pervasive in computer science.

Below is an example program written in YAGL. Please checkout the repo for more examples in 4115_project/final_demos.

import stdgraph.ygl

Graph example;
Node n(gen_name("1"));
Node n2(gen_name("2"));

example: + n + n2, n -> n2 -> n;

print_graph_lib(example);

String gen_name(String n) {
	String hidden = "ODE";
	String total = "";
	{
		String hidden = "N";
		total = total + hidden;
	}
	return total + hidden + n;
}

About

A compiler for a graph-based language.

Resources

Stars

Watchers

Forks

Packages

No packages published