aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAnthony Wang2022-07-07 18:11:12 -0500
committerAnthony Wang2022-07-07 18:11:12 -0500
commit9b62eed93c2ba0b5112ad804f97cabc0e95d6d5a (patch)
treeaf51388e7c937ae8b35836a78daa2a6a84641f77
parent7a6fae8e11d8babc0e1d14f71630fb243841d3db (diff)
Start working on toolchain
-rw-r--r--README.md2
-rwxr-xr-xm4
-rwxr-xr-xmc4
-rwxr-xr-xmconv4
-rwxr-xr-xmplay4
5 files changed, 17 insertions, 1 deletions
diff --git a/README.md b/README.md
index e5bc315..43b62cf 100644
--- a/README.md
+++ b/README.md
@@ -19,6 +19,6 @@ Each note consists of multiple characters:
## Toolchain
-The M compiler `mcc` will first interpret the Scheme program and generate an M intermediate format file with file extension `.min`. This file consists of all the music tone lines that the compiler ran into while interpreting the Scheme program. This can be then played by the `mplay` tool or converted to formats like `.mp3` with `mcon`.
+The M compiler `mc` will first interpret the Scheme program and generate an M intermediate format file with file extension `.min`. This file consists of all the music tone lines that the compiler ran into while interpreting the Scheme program. This can be then played by the `mplay` tool or converted to formats like `.mp3` with `mconv`.
The `m` wrapper tool automates this process and will compile and play an M file if no output is specified, or convert it to the desired output format if specified.
diff --git a/m b/m
new file mode 100755
index 0000000..8b18461
--- /dev/null
+++ b/m
@@ -0,0 +1,4 @@
+#!/usr/bin/guile -s
+!#
+
+(display "hello world")
diff --git a/mc b/mc
new file mode 100755
index 0000000..8b18461
--- /dev/null
+++ b/mc
@@ -0,0 +1,4 @@
+#!/usr/bin/guile -s
+!#
+
+(display "hello world")
diff --git a/mconv b/mconv
new file mode 100755
index 0000000..8b18461
--- /dev/null
+++ b/mconv
@@ -0,0 +1,4 @@
+#!/usr/bin/guile -s
+!#
+
+(display "hello world")
diff --git a/mplay b/mplay
new file mode 100755
index 0000000..8b18461
--- /dev/null
+++ b/mplay
@@ -0,0 +1,4 @@
+#!/usr/bin/guile -s
+!#
+
+(display "hello world")