Algo is a compiler designed to translate pseudo code written in a custom language to JavaScript. Currently, it's in its budding stage and supports limited conversion to JavaScript.
- Converts pseudo code written in
.alg
files to JavaScript. - Simple and easy-to-understand syntax for writing pseudo code.
- Intuitive and minimalistic interface.
Before using Algo, ensure you have Node.js installed on your system. You can download and install Node.js from the official website: Node.js
To get started with Algo, follow these steps:
-
Clone the repository to your local machine:
git clone https://github.com/yourusername/algo-compiler.git
-
Install the required dependencies:
npm install -g
-
Start using Algo to convert your pseudo code to JavaScript!
-
Write your pseudo code in a
.alg
file. -
Run the Algo compiler with the following command:
algo your_file.alg
-
Follow the prompts:
- Select the mode:
-
Convert
: Only convert pseudo code to JavaScript. -
Run
: Immediately execute the code.
-
- If
Convert
mode is selected, optionally provide a custom output file name. - If no custom output file name is provided, the default name (output.js) is used.
- Select the mode:
-
The compiled JavaScript code will be generated according to your selections.
Pseudo Code (example.alg):
Start greet(name)
Print ("Hello, " + name + "!")
End
Compiled JavaScript (example.js):
function greet(name) {
console.log('Hello, ' + name + '!');
}
Algo is licensed under the BSD 3-Clause License. See LICENSE for more details.
Contributions are welcome! Feel free to open an issue or submit a pull request.
For detailed syntax guidelines, refer to Documentation.md.
Algo reads configuration from a config.lang
file in the project directory. If no config file is found, default values are used. Configuration options include:
-
Language
: The target language for conversion (e.g., JavaScript). -
Format
: The target language format for file creation (e.g., js for JavaScript). -
Version
: The version of the target language (optional).
Please note that Algo is still in its early stages of development, and the conversion capabilities are limited. There might be breaking changes in future updates. Use it with caution and report any bugs or issues you encounter.
For any inquiries or support, feel free to contact the project maintainer at naveenrameshcud@gmail.com.
Algo - Short for algorithm.
For a detailed list of changes, see changelog.md.