{"id":28181012,"url":"https://github.com/sufremoak/asciiscript","last_synced_at":"2025-05-16T03:11:59.802Z","repository":{"id":289161391,"uuid":"970319658","full_name":"SufremOak/AsciiScript","owner":"SufremOak","description":null,"archived":false,"fork":false,"pushed_at":"2025-04-21T20:50:32.000Z","size":0,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-04-21T21:38:03.694Z","etag":null,"topics":["ascii","programming-language","scripting-language"],"latest_commit_sha":null,"homepage":"","language":"Shell","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/SufremOak.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null}},"created_at":"2025-04-21T20:39:58.000Z","updated_at":"2025-04-21T20:52:15.000Z","dependencies_parsed_at":"2025-04-21T21:48:12.301Z","dependency_job_id":null,"html_url":"https://github.com/SufremOak/AsciiScript","commit_stats":null,"previous_names":["sufremoak/asciiscript"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/SufremOak%2FAsciiScript","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/SufremOak%2FAsciiScript/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/SufremOak%2FAsciiScript/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/SufremOak%2FAsciiScript/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/SufremOak","download_url":"https://codeload.github.com/SufremOak/AsciiScript/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":254459089,"owners_count":22074606,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["ascii","programming-language","scripting-language"],"created_at":"2025-05-16T03:11:58.996Z","updated_at":"2025-05-16T03:11:59.782Z","avatar_url":"https://github.com/SufremOak.png","language":"Shell","readme":"# AsciiScript\n\nA modern, portable, and declarative scripting language designed for creating interactive documents and web content. AsciiScript features two implementations: a primary Shell Script (Bash) version and a high-performance C++ macro-based version.\n\n## Implementations\n\n### Shell Script (Primary)\n- Core implementation in Bash\n- Located in `/src/main.sh`\n- Native string manipulation and pattern matching\n- Easy to modify and extend\n- Excellent Unix/Linux system integration\n\n### C++ Macro (Performance)\n- Alternative implementation for high-performance needs\n- Located in `/cpp` directory\n- Compile-time macro processing\n- C++17 features for efficient parsing\n- Cross-platform via CMake\n\n## Features\n\n- **Declarative Syntax**: Clean and intuitive syntax for content creation\n- **Component-Based**: Reusable components for efficient development\n- **Style Integration**: Built-in styling system similar to CSS\n- **Modular System**: Import and use modules to extend functionality\n- **Error Handling**: Robust error handling with try-catch blocks\n- **Cross-Platform**: C++ based interpreter for maximum portability\n\n## Installation\n\n### Shell Script Version\n```bash\ngit clone https://github.com/yourusername/AsciiScript.git\ncd AsciiScript\nchmod +x src/main.sh\n./src/main.sh example.ascii\n```\n\n### C++ Version\n```bash\ngit clone https://github.com/yourusername/AsciiScript.git\ncd AsciiScript/cpp\nmkdir build \u0026\u0026 cd build\ncmake ..\nmake\n./asciiscript example.ascii\n```\n\n## Quick Start\n\n### Hello World Example\n```python\nascii(type=script)\n\n@script:\n    .function main() {\n        ascii.console(log =\u003e \"Hello from AsciiScript!\")\n        return self\n    }\n```\n\n### Creating a Document\n```python\nascii(type=document(article))\n\n@style: {\n    body {\n        font.family(\"Arial\"),\n        margin(2em)\n    }\n}\n\n@content:\n    @Heading(1): \"My First Document\"\n    @paragraph:\n        \"\"\"\n        This is a simple AsciiScript document.\n        \"\"\"\n    \u0026end(paragraph)\n```\n\n## Language Features\n\n### Variables and Data Types\n- Numbers\n- Strings\n- Booleans\n- Arrays\n- Objects\n\n### Control Flow\n- If statements\n- While loops\n- For loops\n- Try-catch blocks\n\n### Functions\n- Named functions\n- Anonymous functions\n- Arrow functions\n- Function parameters\n\n### Modules\n- Import system\n- Module aliases\n- Built-in modules\n\n### Components\n- Custom components\n- Component props\n- Nested components\n\n## Built-in Modules\n\n- `dom`: DOM manipulation utilities\n- `formatter`: String formatting tools\n- `structures`: Data structure implementations\n- `test`: Unit testing framework\n\n## Contributing\n\n1. Fork the repository\n2. Create your feature branch (`git checkout -b feature/amazing-feature`)\n3. Commit your changes (`git commit -m 'Add some amazing feature'`)\n4. Push to the branch (`git push origin feature/amazing-feature`)\n5. Open a Pull Request\n\n## License\n\nThis project is licensed under the MIT License - see the LICENSE file for details.\n\n## Credits\n\nCreated by Miguel Gargallo","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsufremoak%2Fasciiscript","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsufremoak%2Fasciiscript","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsufremoak%2Fasciiscript/lists"}