Code Monkey home page Code Monkey logo

mosaic's Introduction

🧩 Mosaic is a tiny and versatile transpiler designed to (in theory) seamlessly convert source code written in a custom programming language into various target programming languages 🧩

The current programming language Mosaic uses is called Tile and is a superset of Lua, adding various elements from other languages and, in general terms, extending the programming language. Some structures and symbols are different though, for example, the for loop uses words for index = 0 to 8 step 2 do instead of commas, and the <> symbol is used to represent a non-equal comparison.

Mosaic also comes with a tiny bundler that packs a modular structure into a single file. (credits to Minipack for the inspo.)

To use the transpiler simply type:

lua main.lua (Tile file path) [(target Lua file path)|--display] [--ast]

The --display options prints the transpiled file to the terminal and the --ast option instead generates a JSON file containing the abstract syntax tree.

To use the bundler type:

lua bundler.lua (main Tile file path) (target Lua file path)

mosaic's People

Contributors

jotapapel avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.