Skip to content

A small tool that tries to convert typescript (or javascript) into equivalent pseudocode.

Notifications You must be signed in to change notification settings

lukasmoellerch/ts-to-pseudocode

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

ts-to-pseudocode

A small tool that tries to convert typescript (or javascript) into equivalent pseudocode.

Demo: https://pseudocode.lukas-moeller.ch

Features

Only exported functions are converted.

  • x | 0
  • Math.floor(x)
  • Math.ceil(x)
  • new Set()
  • x.length
  • x.size
  • union(a, b)
  • setminus(a, b)
  • for(var i = 0; i < x; i++) {}
  • Mathematical operators are converted accordingly (+, -, *, /, &&, ||, !, ^)
    • All divisions are converted into fractions

Dependencies

Awesome projects this editor depends on: