Skip to content

pawel-piecyk/YAPL

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 

Repository files navigation

YAPL

Yet Another Programming Language. My university project of simple interpreted programming language written with Flex, Bison and C++. Syntax is a bit weird but it wasn't the main purpose of class ;-)

Sample code:

dspl "Euclidean algorithm (greatest common divisor of 1071 and 1029) %n";

def GCD: A, B
@b
	loop B<>0:
	@b
		set C <- A % B;
		set A <- B;
		set B <- C;
	@e
	
	dspl A;
@e

dspl "Value of GCD(1071, 1029) is: ";
exec GCD <- 1071,1029;

About

Yet Another Programming Language

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published