Skip to content

rytis-p/d_flat

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

d_flat

University project for the Programming Language Theory module.

A primitive transpiler for a very basic custom programming language D Flat.

Language categorization: procedural, statically + strongly typed.

Has got the standard procedural programming language kit: flow control (if), loops (for), functions, scopes (done implicitly due being translated into C). Available types: char, int, float, (hacky) string. Also got a special 'feature': inline C.

The whole code is located in the transpiler.cpp file. .df files are the D Flat example source files. Specified .df file is transpiled into a relatively readable result.c file, which is then compiled using a C compiler (in this case MSVC).

For example: a D Flat file foo.df can be built (using the build.bat file) with the command build foo.df

Launching the run.bat script with the command run will launch the compiled result executable.

Used references:

About

Transpiler for a custom programming language D Flat.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published