Skip to content

Software for algorithm's complexity analysis, based on developed language Algolite

License

Notifications You must be signed in to change notification settings

PeachyCad/algolite

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

44 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Algolite

Software for algorithm's complexity analysis, based on developed language Algolite.

Installation

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.

Using

  1. Write code in SourceAlgolite.txt using Algolite syntax.

  2. 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
  1. Execute compiled file and get finalOutput.cpp.

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

  1. 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
  1. Execute compiled file and get result.

Result

As the result you will get a .png picture with description of algorithm's complexity.

About

Software for algorithm's complexity analysis, based on developed language Algolite

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published