Skip to content
tranducquy0Public

About

No description, website, or topics provided.

Resources

Stars

0 stars

Watchers

0 watching

Forks

Latest commit

 

History

42 Commits

Folders and files

Repository files navigation

bashDSL: The "TypeScript of Bash"

Warning

this project is in beta stage (and also half AI driven), use it as your own risk

bashDSL is a simple and strict DSL that transpiles to POSIX-compliant Bash. It focuses on safety, strict typing, and modern development experience for shell scripting. Built with Python 3 Standard Library.

Features

  • Strict Typing: Supports INT and STRING types with validation.
  • Scoping: Implements function-level scope and local variable generation.
  • OOP Simulation: Provides namespaced classes and methods.
  • Precise Error Reporting: Visual pointers and context for compiler errors.
  • Automatic Cleanup: Top-level variables are automatically unset at the end of the script.
  • Redirection: Built-in support for stdout and stderr redirection.

Quick Start

Transpile a .shtm file to Bash:

python3 -m modules.cli.main <file.shtm>

Launch the interactive REPL:

python3 -m modules.cli.main

Run the Test Suite

python3 run_tests.py

Documentation

License

MIT License. See LICENSE for details.

About

No description, website, or topics provided.

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages