PseudoTex is a compiler that translates pseudocode into its LaTex representation
In university i had to do a few reports in LaTex that had pseudocode. Translating the simple pseudocode to the LaTex commands was a huge struggle so i decided to make this tool that translates a simple pseudocode language into the LaTex equivalent commands. I hope it makes you life easier :grin:.
The pseudocode that PseudoTex follows is somewhat formalized in this paper by João Leitão (check caveats).
For now there are two ways of installing PseudoTex, either by using cargo
or by downloading the latest binary release.
shell
λ ~/ $ cargo install pseudotex
Go to the repository Releases page and download the binary (Linux or macOS).
```shell λ ~/ $ pseudotex --help PseudoTex 1.0 Bruno Anjos bruno.vale.anjos@gmail.com pseudocode transpiler to latex representation
USAGE: pseudotex [OPTIONS]
FLAGS: -h, --help Prints help information -V, --version Prints version information
OPTIONS: -i, --input file name to read content from -o, --output
One main difference from the language examplified in the paper is that this every statement has to be followed by a semi colon. I believe this can be changed in the future, but since this made the parser easier to build i decided to take this approach.
If you'd like to contribute, please fork the repository and use a feature branch. Pull requests are warmly welcome.
Project dependencies: - LALRPOP - clap - algorithm2e LaTex Package
The code in this project is licensed under GPL-3.0.