1
0
Commit Graph

98 Commits

Author SHA1 Message Date
c3b470f842
merge from WIP 2024-08-27 00:33:34 +03:00
63c5e5a628
b/c...py: rename rewrite_file to overwrite_file 2024-08-27 00:08:43 +03:00
6bc53a0169
b/c...py: type hint function rewrite_file completely 2024-08-27 00:08:43 +03:00
c043d0ce94
bytebeat_compiler.py: reformat command printing 2024-08-27 00:08:43 +03:00
0b0a6a4e0b
b/c...py: use os.getcwd() instead of . 2024-08-27 00:08:43 +03:00
23801c4eaa
b/c...py: do not use a temp. dir if keeping files
Do not use a temporary directory if keeping files
2024-08-27 00:08:37 +03:00
be5c7186ec
bytebeat_compiler.py: fix extra dots in paths 2024-08-26 22:54:19 +03:00
974f7eb53b
b/c...py: secure input and output files
Do not use environmental variables `INPUT_FILE` and `OUTPUT_FILE`
2024-08-26 22:44:58 +03:00
f70ef4c74d
b/c...py: compile into a temporary directory
Generate intermediate files into a temporary directory
2024-08-26 22:34:41 +03:00
4723c738c4
bytebeat_compiler.py: remove generated files 2024-08-26 21:58:00 +03:00
b9d6d50085
bytebeat_compiler.py: fix grammar 2024-08-26 21:58:00 +03:00
16384717a7
bytebeat_compiler.py: do not use sys.exit 2024-08-26 21:58:00 +03:00
8c7d7ac8f9
bytebeat_compiler.py: make use of shlex.join
When printing a command that is going to be ran, use `shlex.join(...)`
instead of `" ".join(...)`
2024-08-26 21:57:59 +03:00
b8323731cb
b/c...py: notify the user when reading STDIN
Notify the user when the script reads bytebeat code from STDIN
2024-08-26 21:57:59 +03:00
4e72ba90dc
b/c...py: extract function run_command 2024-08-26 21:57:59 +03:00
538837a780
b/c...py: use EXIT_SUCCESS and EXIT_FAILURE 2024-08-26 21:57:59 +03:00
e16688297f
b/c...py: run the runtime unit after compiling 2024-08-26 21:57:59 +03:00
e3d2ab71f2
use directory bin instead of build 2024-08-26 21:57:59 +03:00
bf0c103588
bytebeat_compiler.py: extract BITS_PER_BYTE 2024-08-26 21:56:00 +03:00
429d43f8c1
bytebeat_compiler.py: remove generated files 2024-08-26 21:40:33 +03:00
1e4f9ac26f
bytebeat_compiler.py: fix grammar 2024-08-26 21:39:36 +03:00
ee404d1ad2
bytebeat_compiler.py: do not use sys.exit 2024-08-26 19:30:07 +03:00
c6558c8c46
bytebeat_compiler.py: make use of shlex.join
When printing a command that is going to be ran, use `shlex.join(...)`
instead of `" ".join(...)`
2024-08-26 17:43:40 +03:00
e7e290b2f4
b/c...py: notify the user when reading STDIN
Notify the user when the script reads bytebeat code from STDIN
2024-08-26 17:38:58 +03:00
75ede327d6
b/c...py: extract function run_command 2024-08-26 17:36:09 +03:00
dee6773080
b/c...py: use EXIT_SUCCESS and EXIT_FAILURE 2024-08-26 17:30:07 +03:00
c4254b75b4
b/c...py: run the runtime unit after compiling 2024-08-26 17:28:12 +03:00
ffe0f40ea1
use directory bin instead of build 2024-08-20 18:46:47 +03:00
98f13f7a89
*.py: use a better shebang 2024-07-26 14:28:47 +03:00
ee2e5c123a
*.py: use a better shebang 2024-07-26 14:26:36 +03:00
cd927b83fb
bytebeat_compiler.py: extract BITS_PER_BYTE 2024-07-14 23:33:01 +03:00
ca282d20c8
bytebeat_compiler.py: search for compiler, fix section names
and reformat
2024-06-02 20:15:45 +03:00
31244bd18d
bytebeat_compiler.py: search for compiler, fix section names
and reformat
2024-06-02 19:34:49 +03:00
81bb2e80b4
bytebeat_compiler.py: add intro 2024-06-02 19:33:30 +03:00
83046f1443
bytebeat_compiler.py: reformat 2024-06-01 11:45:27 +03:00
98ff576f19
WIP: add files 2024-05-27 08:07:42 +03:00
3bab4c8373
bytebeat_compiler.py: rename w to time 2024-05-19 20:44:23 +03:00
f862603642
ANSI_CLEAR refactor 2024-05-19 20:38:06 +03:00
a66901b00d
b/c...py: use subprocess.run instead of os.system 2024-05-19 20:29:13 +03:00
9be6408890
b/c...py: optimize adding . before paths 2024-05-19 12:46:19 +03:00
91dddefc7b
b/c...py: fix terminology: Solve -> Resolve 2024-05-19 12:35:18 +03:00
0be65f7dd2
move *.h to include/ 2024-05-19 12:34:15 +03:00
c76c809d2a
separate WAVE product value and generation length 2024-05-19 11:41:52 +03:00
e7fd7131d1
bytebeat_compiler.py: fix wav_product calculation 2024-05-19 10:57:33 +03:00
b8b2719349
bytebeat_compiler.py: return the exit code the compiler returns 2024-04-14 16:28:21 +03:00
697a4e8408
bytebeat_compiler.py: comment: enclose the word "return" in backticks 2024-04-14 12:30:44 +03:00
8e698c9f3b
bytebeat_compiler.py: auto-return: enclose bytebeat in parentheses 2024-04-14 12:29:12 +03:00
cc2974afe1
bytebeat_compiler.py: line width wrap at 80 characters 2024-04-14 11:55:04 +03:00
c3a2de8333
C: precalculate PRODUCT in the Python script 2024-04-14 11:47:51 +03:00
c9825b9122
bytebeat_compiler.py: use cc instead of gcc as default compiler 2024-04-14 01:38:48 +03:00