joacarrilloco / bash2bash

Proyecto de lenguajes de programación

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

bash2bash

This projects executes automatic translations from Bash scripts to PowerShell scripts, providing an alternative to manual translations from UNIX based systems commands to Windos-DOS based systems commands. Due to the complexity of Bash the scope of the translations covers: cycles, conditionals, aritmetic expressions, a few system calls and file managing, ( For further details of the scope reffer to the grammar file ).

Usage

For running this project you have to configure ANTLR4 in your editor ( we recommend IntelliJ IDEA ). For executing a translation of an specific Bash script, you can modify the input_file. Translations can also be executed through and API in toher versions of this project but this is deprecated alt_text

Sample

Here is a Bash script used for encrypting some data, we are going to translate it using our tool

alt_text

Now you can see the funtional PowerShell script as a result of the translation process

alt_text

About

Proyecto de lenguajes de programación


Languages

Language:Java 94.0%Language:ANTLR 6.0%