https://github.com/lukasmoellerch/ts-to-pseudocode
A small tool that tries to convert typescript (or javascript) into equivalent pseudocode.
https://github.com/lukasmoellerch/ts-to-pseudocode
algorithms-and-data-structures documentation-generator javascript pseudocode typescript
Last synced: about 1 month ago
JSON representation
A small tool that tries to convert typescript (or javascript) into equivalent pseudocode.
- Host: GitHub
- URL: https://github.com/lukasmoellerch/ts-to-pseudocode
- Owner: lukasmoellerch
- Created: 2019-12-17T23:28:50.000Z (over 5 years ago)
- Default Branch: master
- Last Pushed: 2019-12-30T16:19:01.000Z (over 5 years ago)
- Last Synced: 2025-03-27T08:22:14.276Z (about 2 months ago)
- Topics: algorithms-and-data-structures, documentation-generator, javascript, pseudocode, typescript
- Language: TypeScript
- Homepage: https://pseudocode.lukas-moeller.ch
- Size: 135 KB
- Stars: 6
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# ts-to-pseudocode
A small tool that tries to convert typescript (or javascript) into equivalent pseudocode.Demo: [https://pseudocode.lukas-moeller.ch](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:
- [Typescript Compiler](https://www.typescriptlang.org)
- [Pseudocode.js](http://www.tatetian.io/pseudocode.js/)
- [KaTeX](https://katex.org)
- [Monaco Editor](https://microsoft.github.io/monaco-editor/)