Software for algorithm's complexity analysis, based on developed language Algolite.
For example, you can use g++ as a software to compile Algolite code to C++. Anyway, g++ is required to compile C++ code to executable file.
-
Write code in SourceAlgolite.txt using Algolite syntax.
-
Compile transpiler program. For example, for Windows you can use:
g++ AlgoliteTranspiler.cpp TranslatingVisitor.cpp -std=c++20 -O3 -o transpile_process.exe
For Unix you can use:
g++ AlgoliteTranspiler.cpp TranslatingVisitor.cpp -std=c++20 -O3 -o transpile_process.out
-
Execute compiled file and get finalOutput.cpp.
-
For better appearence of finalOutput.cpp you can use uncrustify with msvc.cfg (or use custom config). For example, you can use:
uncrustify -c msvc.cfg -f finalOutput.cpp --no-backup -o finalOutput.cpp
You can install uncrustify from here.
- Compile finalOutput.cpp. For example, for Windows you can use:
g++ -O3 -std=c++20 -o output_program.exe finalOutput.cpp pbPlots.cpp supportLib.cpp -lm -D _WIN32_WINNT=0x0A00
For Unix you can use:
g++ -O3 -std=c++20 -o output_program.out finalOutput.cpp pbPlots.cpp supportLib.cpp
- Execute compiled file and get result.
As the result you will get a .png picture with description of algorithm's complexity.