Skip to content

Latest commit

 

History

History

metaprogramming

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 
 
 

Typescript Metaprogramming

This project is a result of research to understand Typescript metaprogramming capabilities. Resulting in showcase that Typescript Types are Turing Complete.

We showcase this by first simulating Addition and Substraction in math.ts and moving further into a more complext algorithm. Inside brackets.ts we run an algorith to detect whether a given bracket statement is valid or not.

For example ()(()()) is valid while ()())( is not.

Run the example

The best way to explore the examples is to use Visual Studio Code which can show you the result of each Type by hovering above it, as well as highlighting wrong results.

Otherwise you can use tsc to verify that it compiles:

yarn install
yarn build