This package has been deprecated

Author message:

This project has been renamed. Install using npm i algo-compiler instead.

algo-complier

1.0.5 • Public • Published

Algo

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.

Features

  • Converts pseudo code written in .alg files to JavaScript.
  • Simple and easy-to-understand syntax for writing pseudo code.
  • Intuitive and minimalistic interface.

Prerequisites

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

Getting Started

To get started with Algo, follow these steps:

  1. Clone the repository to your local machine:

    git clone https://github.com/yourusername/algo-compiler.git
  2. Install the required dependencies:

    npm install -g
  3. Start using Algo to convert your pseudo code to JavaScript!

Usage

  1. Write your pseudo code in a .alg file.

  2. Run the Algo compiler with the following command:

    algo your_file.alg
  3. 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.
  4. The compiled JavaScript code will be generated according to your selections.

Example

Pseudo Code (example.alg):

Start greet(name)
Print ("Hello, " + name + "!")
End

Compiled JavaScript (example.js):

function greet(name) {
  console.log('Hello, ' + name + '!');
}

License

Algo is licensed under the BSD 3-Clause License. See LICENSE for more details.

Contributing

Contributions are welcome! Feel free to open an issue or submit a pull request.

Documentation

For detailed syntax guidelines, refer to Documentation.md.

Configuration

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

Disclaimer

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.

Contact

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.

Readme

Keywords

none

Package Sidebar

Install

npm i algo-complier

Weekly Downloads

3

Version

1.0.5

License

BSD

Unpacked Size

41.9 kB

Total Files

15

Last publish

Collaborators

  • naveen_r_sam