MDR is intented (but not limited) to be a markdown preprocessor.
It only supports a few commands
Define a piece of code
- you'll later include somwhere
- that you want written in a file
| #ifndef __GWION_ALL | |
| #include "gwion_util.h" | |
| #include "gwion_ast.h" | |
| #include "oo.h" | |
| #include "arg.h" | |
| #include "constant.h" | |
| #include "nspc.h" | |
| #include "env.h" | |
| #include "vm.h" | |
| #include "context.h" |
gwion is a object-oriented programming language, aimed at making music
strongly inspired by chuck, but adding a bunch high-level features:
templates, first-class functions and more.
| FROM archlinux/base:latest | |
| USER root | |
| RUN pacman --noconfirm -Suy | |
| RUN pacman --noconfirm -S base-devel git | |
| USER $NB_USER | |
| CMD bash |
| FROM fennecdjay/base | |
| WORKDIR /tmp | |
| USER root | |
| COPY ./ gwion | |
| RUN cd gwion && make install | |
| WORKDIR /home/$NB_USER | |
| USER $NB_USER |
| is-replit-tag-broken-5137:1 Unchecked runtime.lastError: Could not establish connection. Receiving end does not exist. | |
| is-replit-tag-broken-5137:1 Unchecked runtime.lastError: Could not establish connection. Receiving end does not exist. | |
| 78a1372659115b526d5619ba68627187667ff711.585cf98b770df5047c0f.js:1 Repl.it version 1825617 | |
| replEnvironment.js:1 Uncaught (in promise) DOMException: Failed to read the 'localStorage' property from 'Window': Access is denied for this document. | |
| at https://repl.it/_next/static/etnlDq_CD1-cNUu91YlU8/pages/replEnvironment.js:1:279219 | |
| at c (https://repl.it/_next/static/chunks/commons.9feaa24f2d3e7e2b6c75.js:1:53289) | |
| at Generator._invoke (https://repl.it/_next/static/chunks/commons.9feaa24f2d3e7e2b6c75.js:1:53077) | |
| at Generator.forEach.t.<computed> [as next] (https://repl.it/_next/static/chunks/commons.9feaa24f2d3e7e2b6c75.js:1:53712) | |
| at c (https://repl.it/_next/static/chunks/commons.9feaa24f2d3e7e2b6c75.js:1:53289) | |
| at e (https://repl.it/_next/static/chunks/com |
| #require Std | |
| #require Math | |
| #require Modules | |
| enum Pitch { C, D, E, F, G, A, B } | |
| class MusicObject { | |
| fun UGen update() {} | |
| fun UGen onStart() {} | |
| fun UGen onEnd() {} |
| #require TUI | |
| #require Std | |
| const global Event ev; | |
| [[0, 1, 2], [3, 4, 5], [6, 7, 8], [0, 3, 6], [1, 4, 7], [2, 5, 8], [0, 4, 8], [2, 4, 6]] => const int wins[][]; | |
| class TicTacToeBoard extends TUI.User { | |
| var int current; | |
| "X" => var string player; |