1
0
Fork 0
forked from a/yue

Start working on toolchain

This commit is contained in:
Anthony Wang 2022-07-07 18:11:12 -05:00
parent 7a6fae8e11
commit 9b62eed93c
Signed by untrusted user: a
GPG key ID: BC96B00AEC5F2D76
5 changed files with 17 additions and 1 deletions

View file

@ -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.

4
m Executable file
View file

@ -0,0 +1,4 @@
#!/usr/bin/guile -s
!#
(display "hello world")

4
mc Executable file
View file

@ -0,0 +1,4 @@
#!/usr/bin/guile -s
!#
(display "hello world")

4
mconv Executable file
View file

@ -0,0 +1,4 @@
#!/usr/bin/guile -s
!#
(display "hello world")

4
mplay Executable file
View file

@ -0,0 +1,4 @@
#!/usr/bin/guile -s
!#
(display "hello world")