mirror of
https://github.com/tilleul/basic_renumber.git
synced 2024-11-30 01:50:11 +00:00
First commit
This commit is contained in:
parent
e940f390e3
commit
2e2bd5690b
21
README.md
21
README.md
@ -1,2 +1,21 @@
|
|||||||
# basic_renumber
|
# basic_renumber
|
||||||
Renumbers BASIC programs
|
Renumbers BASIC programs (yeah, those with the line numbers)
|
||||||
|
|
||||||
|
This is a very simple NodeJS (javascript) program that allows to renumber BASIC programs (contained in text files like .bas or anything) ... oh yeah ... it's not optimized at all ... it just works ... that's all...
|
||||||
|
|
||||||
|
It was aimed at Applesoft Basic at first, but it probably works with other BASICs as well ... haven't tried ...
|
||||||
|
|
||||||
|
The script will read a text file (containing one BASIC line beginning with an integer per line, each line separated by \n\r or \n) and it will renumber all lines and renumber the following:
|
||||||
|
- every GOTO ###
|
||||||
|
- every GOSUB ###
|
||||||
|
- every ON ERR GOTO #, ##, ###, ...
|
||||||
|
- same for ON ERR GOSUB
|
||||||
|
- every IF (condition) THEN ###
|
||||||
|
|
||||||
|
Not supported: GOTO/GOSUB to a VARIABLE. Like: GOTO MY_VAR.
|
||||||
|
|
||||||
|
Usage: `node path/to/renumber.js path/to/basic/file [path/to/new/basic/file] [line_increment]`
|
||||||
|
|
||||||
|
It's as simple as that...
|
||||||
|
|
||||||
|
(c) 2017 tilleul - The License is "Do What The F*ck You Want" (in case you're wondering the asterisk is a "U")
|
||||||
|
Loading…
Reference in New Issue
Block a user