Moritat - Your Compiling Best Friend
Moritat is a simple command-line tool designed to assist with compiling and running programs written in Ada, C, and C++. It aims to provide a user-friendly interface for common development tasks such as compilation and directory navigation.
-
Supported File Formats:
- Moritat supports Ada (.adb), Python (.py), C (.c), and C++ (.cpp) file formats.
-
Compile and Run:
- The
compile
command allows you to compile and run programs based on their file extension. - For Ada files, Moritat uses
gnatmake
to compile and provides instructions for running the Ada project. - For C and C++ files, Moritat uses
gcc
for compilation and provides instructions for running the executable.
- The
-
List Files in Current Directory:
- The
ls
command lists all files in the current directory.
- The
-
Change Directory:
- The
cd
command allows you to change the current directory.
- The
-
Help Command:
- The
help
command displays a list of available commands and their usage.
- The
-
Exit:
- The
exit
command terminates the Moritat program.
- The
-
Compile and Run:
- To compile and run a program, use the
compile
command followed by the file name.compile filename.adb
- To compile and run a program, use the
-
List Files in Current Directory:
- To list files in the current directory, use the
ls
command.ls
- To list files in the current directory, use the
-
Change Directory:
- To change the current directory, use the
cd
command followed by the desired directory.cd /path/to/directory
- To change the current directory, use the
-
Display Help:
- To view a list of available commands and their usage, use the
help
command.help
- To view a list of available commands and their usage, use the
-
Exit Program:
- To exit Moritat, use the
exit
command.
- To exit Moritat, use the
Moritat is written in standard C and should work on various platforms with a C compiler and standard libraries. It has been tested on Linux Arch system. It uses 'simple' which is terminal, that I wrote for my other projects (Swallow, Neutrino)
Moritat can be compiled using a standard C compiler such as gcc
. No additional dependencies are required.
Feel free to contribute to the project by submitting bug reports, feature requests, or pull requests on the GitHub repository.