Start working on toolchain
This commit is contained in:
parent
7a6fae8e11
commit
9b62eed93c
5 changed files with 17 additions and 1 deletions
|
@ -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
4
m
Executable file
|
@ -0,0 +1,4 @@
|
|||
#!/usr/bin/guile -s
|
||||
!#
|
||||
|
||||
(display "hello world")
|
4
mc
Executable file
4
mc
Executable file
|
@ -0,0 +1,4 @@
|
|||
#!/usr/bin/guile -s
|
||||
!#
|
||||
|
||||
(display "hello world")
|
4
mconv
Executable file
4
mconv
Executable file
|
@ -0,0 +1,4 @@
|
|||
#!/usr/bin/guile -s
|
||||
!#
|
||||
|
||||
(display "hello world")
|
4
mplay
Executable file
4
mplay
Executable file
|
@ -0,0 +1,4 @@
|
|||
#!/usr/bin/guile -s
|
||||
!#
|
||||
|
||||
(display "hello world")
|
Loading…
Reference in a new issue