PseudoTex

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).

Installing

For now there are two ways of installing PseudoTex, either by using cargo or by downloading the latest binary release.

Using cargo

shell λ ~/ $ cargo install pseudotex

Using latest release

shell λ ~/ $ wget https://github.com/bruno-anjos/PseudoTex

Running

```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 file name to write content to ```

Caveats

Semi Colons

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.

TODO

Contributing

If you'd like to contribute, please fork the repository and use a feature branch. Pull requests are warmly welcome.

Links

Project dependencies: - LALRPOP - clap - algorithm2e LaTex Package

Licensing

The code in this project is licensed under GPL-3.0.