Repository: alehander42/hivemind Branch: master Commit: 8a0727078b56 Files: 31 Total size: 42.3 KB Directory structure: gitextract_mc_17_3g/ ├── .gitignore ├── .travis.yml ├── Gemfile ├── LICENSE ├── README.md ├── Rakefile ├── bin/ │ └── hivemind ├── examples/ │ ├── a.hm │ ├── a_paren.hm │ ├── b.hm │ ├── shape.hm │ ├── shape_paren.hm │ └── shape_pythonic.hm ├── hivemind.gemspec ├── lib/ │ ├── hivemind/ │ │ ├── code_viewer.rb │ │ ├── combinators.rb │ │ ├── environment.rb │ │ ├── errors.rb │ │ ├── renderer.rb │ │ ├── runtime.rb │ │ ├── syntax.rb │ │ ├── universal_ast.rb │ │ └── vm.rb │ └── hivemind.rb ├── spec/ │ ├── hivemind/ │ │ ├── parser_spec.rb │ │ ├── universal_ast_spec.rb │ │ └── vm_spec.rb │ └── spec_helper.rb └── syntaxes/ ├── lolcode.syntax ├── paren.syntax └── pythonic.syntax ================================================ FILE CONTENTS ================================================ ================================================ FILE: .gitignore ================================================ #Logs application/logs/*.php # Content types /application/xml/types/*.xml # Custom builds and generated php files /core/documentation/build /core/views/admin/content/translations.php # Attachs and cache files # *.tmp /attach/cache/ /attach/ /application/cache/_bancha/*.css /application/cache/_bancha/*.js Gemfile.lock *.pyc *.doc *.txt ================================================ FILE: .travis.yml ================================================ language: ruby rvm: - 2.2.3 script: - bundle exec rake ================================================ FILE: Gemfile ================================================ source 'https://rubygems.org' group :development, :test do gem 'bundler' gem 'rspec' gem 'skeptic' gem 'rake' end ================================================ FILE: LICENSE ================================================ The MIT License (MIT) Copyright (c) 2016 Alexander Ivanov Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. ================================================ FILE: README.md ================================================ [![Build Status](https://travis-ci.org/alehander42/hivemind.svg?branch=master)](https://travis-ci.org/alehander42/hivemind) [![MIT License](http://img.shields.io/badge/License-MIT-blue.svg)](LICENSE) # hivemind A prototype of a multi-syntax programming language. Hivemind has a core language defined by its AST and configurable syntaxes acting like plugins. The concept of "syntax" for hivemind is similar to * a theme for a text editor * a skin for a gui app * a json/html/xml template for a MVC web app Syntaxes are defined using code-like examples for core ast nodes and they act in a bidirectional way: * they are used to parse source code using that syntax * and to render code in that syntax * **source in each syntax is automatically transltable to another syntax** Tools for the language would also support representations of source grouped by class or methods or as a graph Syntaxes look like that: A pythonic syntax: ```python #if_statement if : else: #assign = #call (<>) #attribute .